Skip to content

Instantly share code, notes, and snippets.

@frandi
Last active September 30, 2023 14:38
Show Gist options
  • Save frandi/7f931965617de927a50108fb7d02ffb4 to your computer and use it in GitHub Desktop.
Save frandi/7f931965617de927a50108fb7d02ffb4 to your computer and use it in GitHub Desktop.
install text generation web ui
  1. Install CUDA
  1. set env var (.profile)
export PATH=/usr/local/cuda-12.2/compat:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-12.2/compat:$LD_LIBRARY_PATH
  1. install miniconda
  1. install pytorch
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
  • optional, checks that you have CUDA enabled
python -m torch.utils.collect_env 
  1. clone Text Generation Web UI
git clone https://github.com/oobabooga/text-generation-webui
cd text-generation-webui
python -m pip install -r requirements.txt
  1. start web ui
python server.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment