# Fine-tuning a small open model on one GPU. NVIDIA only: the stack is CUDA. # # python3 -m venv .venv && source .venv/bin/activate # pip install -r requirements.txt # # Deliberately unpinned. These move fast enough that a version pinned in a write-up is # usually wrong within months, and a reader who hits a genuine incompatibility is better # served by the traceback than by my snapshot of a working afternoon. # # Install torch first if pip resolves a build without CUDA for your setup: # pip install torch --index-url https://download.pytorch.org/whl/cu124 torch transformers datasets accelerate peft trl bitsandbytes