Guest User

Flux quant

a guest
Nov 9th, 2024
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
  2. bash miniconda.sh -b -p $HOME/miniconda
  3. $HOME/miniconda/bin/conda init
  4. source ~/.bashrc
  5.  
  6. export CONDA_ALWAYS_YES="true"
  7. # Update conda and create a new environment with Python 3.11
  8. conda update -n base -c defaults conda -y
  9. conda create -n nunchaku python=3.11 -y
  10. conda activate nunchaku
  11. pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu124
  12. pip install diffusers ninja wheel transformers accelerate sentencepiece protobuf
  13. pip install huggingface_hub peft opencv-python einops gradio spaces GPUtil hf_transfer
  14. conda install -c conda-forge gxx=11 gcc=11 -y
  15. conda install -c "nvidia/label/cuda-12.4.0" cuda-toolkit=12.4
  16. conda install -c "nvidia/label/cuda-12.4.0" libcublas-dev
  17. git clone https://github.com/mit-han-lab/nunchaku.git
  18. cd nunchaku
  19. git submodule init
  20. git submodule update
  21. pip install https://pub-9db04cf2c9c24dc7bfc1b1b6719dcc4d.r2.dev/nunchaku-0.0.0b0-cp311-cp311-linux_x86_64.whl
  22. huggingface-cli login --token {your huggingface token for Flux dev} --add-to-git-credential
  23. export HF_HUB_ENABLE_HF_TRANSFER=1
  24. cd app/t2i && python generate.py
Advertisement
Add Comment
Please, Sign In to add comment