Also, check GitHub Issues for the repository.
We download packages and checkpoints to the home directory by default. To change this, you can set the following variables.
This is also needed if you get No space left on device errors when setting up or downloading checkpoints.
export UV_CACHE_DIR=<new_dir>/.cache
export PIP_CACHE_DIR=<new_dir>/.cache
export HF_HOME=<new_dir>/checkpointsError message: fatal error: Python.h: No such file or directory
This is fixed by installing uv managed python:
curl -LsSf https://astral.sh/uv/install.sh | sh
uv python install --reinstallRe-install the package:
rm -rf .venv
uv sync --extra=cu128Fix: Update NVIDIA drivers to latest version compatible with CUDA CUDA 12.8.1
Check driver compatibility:
nvidia-smi | grep "CUDA Version:"When using nvcr.io/nvidia/pytorch:25.xx-py3 containers, you will need to unset PYTHONPATH to be compatible with Python 3.10:
unset PYTHONPATHFix: Use 2B models instead of 14B, multi-GPU, or reduce batch size/resolution
Logs are saved to <output_dir>/*.log.
To profile, pass the --profile flag. A pyinstrument profile will be exported to <output_dir>/profile.pyisession.
View the profile:
pyinstrument --load=<output_dir>/profile.pyisessionExport the profile:
pyinstrument --load=<output_dir>/profile.pyisession -r html -o <output_dir>/profile.htmlSee pyinstrument.