Download runpod/evaluate_v2_100m.sh from Infinity08/KAWK50M-Project: direct link, hf CLI and curl.
- Browser
- Download file 1.53 kB
-
https://huggingface.co/datasets/Infinity08/KAWK50M-Project/resolve/main/runpod/evaluate_v2_100m.sh
- Command line
-
hf download hf://datasets/Infinity08/KAWK50M-Project/runpod/evaluate_v2_100m.sh
-
curl -L -o evaluate_v2_100m.sh https://huggingface.co/datasets/Infinity08/KAWK50M-Project/resolve/main/runpod/evaluate_v2_100m.sh
1.53 kB
| set -euo pipefail | |
| PROJECT_DIR="${PROJECT_DIR:-/workspace/KAWK50M}" | |
| REPORT_DIR="${REPORT_DIR:-reports/v2-100m}" | |
| V2_CHECKPOINT="${V2_CHECKPOINT:-runs/kawk50m-v2-100m-5090/checkpoint-00000763}" | |
| V0_CHECKPOINT="${V0_CHECKPOINT:-runs/kawk50m-100m-5090/checkpoint-00000763}" | |
| CLEAN_DIR="${CLEAN_DIR:-data/clean-v2-full}" | |
| cd "${PROJECT_DIR}" | |
| source "${PROJECT_DIR}/.venv/bin/activate" | |
| mkdir -p "${REPORT_DIR}" | |
| if [[ ! -s "${REPORT_DIR}/v0-evaluation.json" ]]; then | |
| python -m scripts.evaluate \ | |
| --checkpoint "${V0_CHECKPOINT}" \ | |
| --tokenizer-dir artifacts/tokenizer-20k-pilot \ | |
| --validation-bin data/tokenized-pilot/validation.bin \ | |
| --sequence-length 1024 \ | |
| --batch-size 32 \ | |
| --eval-batches 20 \ | |
| --max-new-tokens 100 \ | |
| --temperature 0.5 \ | |
| --top-k 25 \ | |
| --top-p 0.9 \ | |
| --repetition-penalty 1.2 \ | |
| --seed 42 \ | |
| > "${REPORT_DIR}/v0-evaluation.json" | |
| fi | |
| if [[ ! -s "${REPORT_DIR}/v2-byte-evaluation.json" ]]; then | |
| python -m scripts.evaluate_text \ | |
| --checkpoint "${V2_CHECKPOINT}" \ | |
| --input "${CLEAN_DIR}/validation-*.jsonl" \ | |
| --max-documents 500 \ | |
| > "${REPORT_DIR}/v2-byte-evaluation.json" | |
| fi | |
| if [[ ! -s "${REPORT_DIR}/v0-byte-evaluation.json" ]]; then | |
| python -m scripts.evaluate_text \ | |
| --checkpoint "${V0_CHECKPOINT}" \ | |
| --tokenizer-dir artifacts/tokenizer-20k-pilot \ | |
| --input "${CLEAN_DIR}/validation-*.jsonl" \ | |
| --max-documents 500 \ | |
| > "${REPORT_DIR}/v0-byte-evaluation.json" | |
| fi | |
| echo "KAWK50M v0/v2 100M A/B evaluation complete." | |