Forked from mberman84/gist:9e008131d96af27256cc9cb53ad834cf
Created
September 6, 2023 03:32
-
-
Save soltrinox/e1fd169b93a4e1e8ece029fea0d635ef to your computer and use it in GitHub Desktop.
Code LLaMA Installation
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
# Make sure you have Anaconda installed | |
# This tutorial assumes you have an Nvidia GPU, but you can find the non-GPU version on the Textgen WebUI github | |
# More information found here: https://github.com/oobabooga/text-generation-webui | |
conda create -n textgen python=3.10.9 | |
conda activate textgen | |
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 | |
git clone https://github.com/oobabooga/text-generation-webui | |
cd text-generation-webui | |
python -m pip install -r requirements.txt | |
python -m torch.utils.collect_env # optional, checks that you have CUDA enabled | |
# if you have trouble with CUDA being enabled in torch, try this: | |
conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia | |
# if you run into the chardet and cchardet issues I did, try this: | |
python -m pip install chardet | |
python -m pip install cchardet | |
python server.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment