fast.sh 529 B

1234567891011121314151617181920
  1. #/bin/sh
  2. # Wrapper script to speed up builds by disabling some permutations and reduce compatibility matrix
  3. # Don't use for release builds, but suitable for local developer iteration
  4. # Only build cuda v12
  5. export OLLAMA_SKIP_CUDA_11_GENERATE=1
  6. # Major versions only
  7. export CUDA_V12_ARCHITECTURES="60;70;80;90"
  8. # Skip ROCm
  9. export OLLAMA_SKIP_ROCM_GENERATE=1
  10. # Disable various less common quants and fattn
  11. export OLLAMA_FAST_BUILD=1
  12. if [ $# -ne 1 ] ; then
  13. echo "Usage: ./scripts/fast.sh <build_script>"
  14. exit 1
  15. fi
  16. exec $1