TSRACT: .NET Language Model Training and Exploration Tool
C#
2
5 commits
updated Aug 27, 2023
TSRACT is an open-source tool that allows you to train language model LoRAs and run inference on a local GPU. It is designed to be run and accessed locally on a single machine. You can deploy this to cloud GPU services such as RunPod and access it remotely.
TSRACT Windows compatibility is shaky at this time. Still sorting out CUDA/bitsandbytes-related issues. My goal is to have this work as a one-click setup on both Windows and Linux.
Start a new pod using the RunPod Pytorch 2.0.1 template, be sure to include 40-50GB of storage and open ports 8888,5000. 8888 will be for the JupyterLab console and 5000 will be for TSRACT.
apt-get update && apt-get install -y dotnet-sdk-7.0
git clone https://github.com/TSRACT-AI/TSRACT.git && cd TSRACT
chmod +x ./start-linux-baremetal.sh
./start-linux-baremetal.sh
From the RunPod Connect dialog, click the button to connect on port 5000.
You should pre-download models as the auto-downloader does not currently report progress to the TSRACT UI. Working on it! You can run python download-base-model.py to download openlm-research/open_llama_7b to get started.
ℹ️ Note: If you will be training LoRAs, you must do pip install wandb && wandb login and enter your API key, if you are only running inference you can skip this step.
--listen-all-bindings=true command line argument to bypass the localhost restriction. Be careful not to show anyone your RunPod Pod ID as they will be able to determine the RunPod access URL for your instance.TSRACT: .NET Language Model Training and Exploration Tool
C#
2
5 commits
updated Aug 27, 2023
TSRACT is an open-source tool that allows you to train language model LoRAs and run inference on a local GPU. It is designed to be run and accessed locally on a single machine. You can deploy this to cloud GPU services such as RunPod and access it remotely.
TSRACT Windows compatibility is shaky at this time. Still sorting out CUDA/bitsandbytes-related issues. My goal is to have this work as a one-click setup on both Windows and Linux.
Start a new pod using the RunPod Pytorch 2.0.1 template, be sure to include 40-50GB of storage and open ports 8888,5000. 8888 will be for the JupyterLab console and 5000 will be for TSRACT.
apt-get update && apt-get install -y dotnet-sdk-7.0
git clone https://github.com/TSRACT-AI/TSRACT.git && cd TSRACT
chmod +x ./start-linux-baremetal.sh
./start-linux-baremetal.sh
From the RunPod Connect dialog, click the button to connect on port 5000.
You should pre-download models as the auto-downloader does not currently report progress to the TSRACT UI. Working on it! You can run python download-base-model.py to download openlm-research/open_llama_7b to get started.
ℹ️ Note: If you will be training LoRAs, you must do pip install wandb && wandb login and enter your API key, if you are only running inference you can skip this step.
--listen-all-bindings=true command line argument to bypass the localhost restriction. Be careful not to show anyone your RunPod Pod ID as they will be able to determine the RunPod access URL for your instance.