run_e2e.sh 625 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. set -euo pipefail
  3. IFS=$'\n\t'
  4. command -v modal >/dev/null 2>&1 || { echo >&2 "modal command not found. Install modal first! Aborting."; exit 1; }
  5. echo 'downloading LLaMA 3.2 3B Instruct model'
  6. echo 'make sure to create a Secret called huggingface on Modal and accept the LLaMA 3.2 license'
  7. modal run download.py
  8. echo 'deploying vLLM inference server'
  9. modal deploy inference.py
  10. echo 'running HumanEval generation'
  11. modal run generate.py --data-dir test --no-dry-run --n 1000 --subsample 100
  12. echo 'running HumanEval evaluation'
  13. modal run eval.py
  14. echo 'generating graphs for pass@k and fail@k'
  15. modal run plot.py