Guest User

Untitled

a guest
Mar 27th, 2023
579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. wsl -l -v
  2. wsl --unregister Ubuntu-22.04
  3.  
  4. wsl --set-default-version 2
  5.  
  6. cuda information link: https://github.com/bycloudai/SwapCudaVersionWindows
  7.  
  8. *downoad ubuntu 22.04.2 LTS
  9.  
  10. sudo apt update
  11. sudo apt upgrade
  12.  
  13. curl -sL "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" > "Miniconda3.sh"
  14.  
  15. bash Miniconda3.sh
  16.  
  17. conda create -n textgen python=3.10.9
  18. conda activate textgen
  19.  
  20. pip3 install torch torchvision torchaudio
  21.  
  22. git clone https://github.com/oobabooga/text-generation-webui
  23. cd text-generation-webui
  24. pip install -r requirements.txt
  25.  
  26. conda activate textgen
  27. conda install -c conda-forge cudatoolkit-dev
  28.  
  29.  
  30. mkdir repositories
  31. cd repositories
  32. git clone https://github.com/qwopqwop200/GPTQ-for-LLaMa
  33. cd GPTQ-for-LLaMa
  34. sudo apt install build-essential
  35. python setup_cuda.py install
  36.  
  37. make shortcut
  38.  
  39. cd ~/text-generation-webui
  40. conda activate textgen
  41. ln -s /mnt/f/OoBaboogaMarch17/text-generation-webui/models models
  42.  
  43. **check if 4bit is working
  44. cd ~/text-generation-webui
  45. conda activate textgen
  46. python server.py --wbits 4 --groupsize 128 --cai-chat
  47.  
  48. cd ~/text-generation-webui
  49. conda activate textgen
  50. python server.py --listen --load-in-8bit --cai-chat
  51.  
  52.  
  53. cd ~/text-generation-webui/repositories/GPTQ-for-LLaMa
  54. conda activate textgen
  55. python convert_llama_weights_to_hf.py --input_dir ~/text-generation-webui/models --model_size 13B --output_dir ~/text-generation-webui/models/
  56.  
Advertisement
Add Comment
Please, Sign In to add comment