Download scripts/02b_eval_student.sh from huohuo0345/0716: direct link, hf CLI and curl.
- Browser
- Download file 463 Bytes
-
https://huggingface.co/datasets/huohuo0345/0716/resolve/main/scripts/02b_eval_student.sh
- Command line
-
hf download hf://datasets/huohuo0345/0716/scripts/02b_eval_student.sh
-
curl -L -o 02b_eval_student.sh https://huggingface.co/datasets/huohuo0345/0716/resolve/main/scripts/02b_eval_student.sh
463 Bytes
| source "$(dirname "$0")/_env.sh" | |
| adapter_args=() | |
| if [[ -f "$STUDENT_ADAPTER/adapter_config.json" ]]; then | |
| adapter_args=(--adapter-path "$STUDENT_ADAPTER") | |
| fi | |
| CUDA_VISIBLE_DEVICES="${EVAL_GPU:-0}" python -m src.evaluate \ | |
| --model "$STUDENT_MODEL" \ | |
| "${adapter_args[@]}" \ | |
| --data-dir "$DATA_DIR" \ | |
| --output "$OUTPUT_ROOT/eval/student_predictions.jsonl" \ | |
| --num-views "${EVAL_VIEWS:-1}" \ | |
| --max-samples "${EVAL_MAX_SAMPLES:-500}" | |