Forked from mberman84/gist:f092a28e4151dd5cecebfc58ac1cbc0e
Created
September 6, 2023 03:31
-
-
Save soltrinox/88c67b41b362297c8f8c88609056991d to your computer and use it in GitHub Desktop.
Steps to install Textgen WebUI
This file contains 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
# this tutorial assumes conda and git are both installed on your computer | |
conda create -n tg python=3.10.9 | |
conda activate tg | |
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 | |
git clone https://github.com/oobabooga/text-generation-webui.git | |
cd text-generation-webui | |
pip install -r requirements.txt | |
# GPU only: | |
pip uninstall -y llama-cpp-python | |
set CMAKE_ARGS="-DLLAMA_CUBLAS=on" | |
set FORCE_CMAKE=1 | |
pip install llama-cpp-python --no-cache-dir | |
# If you get: ERROR: Failed building wheel for llama-cpp-python | |
set "CMAKE_ARGS=-DLLAMA_OPENBLAS=on" | |
set "FORCE_CMAKE=1" | |
pip install llama-cpp-python --no-cache-dir | |
# Put checker.py in your text-generation-webui folder | |
python checker.py #Make sure you have cuda and it is enabled | |
# If you get CUDA Setup failed despite GPU being available.: | |
pip install bitsandbytes-windows | |
# If you get AttributeError: module 'bitsandbytes.nn' has no attribute 'Linear4bit'. Did you mean: 'Linear8bitLt'? | |
pip install git+https://github.com/huggingface/peft@27af2198225cbb9e049f548440f2bd0fba2204aa --force-reinstall --no-deps | |
python server.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment