gemma2_9b_7gb / venv.sh
aka7774's picture
Upload 6 files
5653716 verified
raw
history blame
499 Bytes
#!/usr/bin/bash
python3 -m venv venv
curl -kL https://bootstrap.pypa.io/get-pip.py | venv/bin/python
venv/bin/python -m pip install gradio
venv/bin/python -m pip install -r requirements.txt
venv/bin/python -m pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121
venv/bin/python -m pip install flash-attn --no-build-isolation
venv/bin/python -m pip install "unsloth[cu121-ampere-torch230] @ git+https://github.com/unslothai/unsloth.git"