Jakubrd4 commited on
Commit
860f8dd
·
verified ·
1 Parent(s): 6e6c86e

Upload variant_a/scripts/run_eval.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. variant_a/scripts/run_eval.sh +38 -0
variant_a/scripts/run_eval.sh ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ export PATH="/venv/main/bin:$PATH"
4
+ export PYTHONDONTWRITEBYTECODE=1
5
+ export CUDA_VISIBLE_DEVICES=0
6
+ export WORK=/dev/shm/eval
7
+ export QUIP_DIR="$WORK/quip-sharp"
8
+
9
+ log() { echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"; }
10
+
11
+ log "============================================"
12
+ log " Polish LLM Eval — QuIP# Bielik Variant A"
13
+ log "============================================"
14
+
15
+ # Phase 1: Setup
16
+ log "Phase 1: Running setup..."
17
+ bash /dev/shm/eval/setup_eval.sh 2>&1
18
+ log "Setup done"
19
+
20
+ # Phase 2: Run evaluation
21
+ log "Phase 2: Running Polish eval (5-shot)..."
22
+
23
+ cd "$WORK/lm-evaluation-harness"
24
+
25
+ python "$WORK/eval_polish_quip.py" \
26
+ --model_path "$WORK/model" \
27
+ --tokenizer "speakleash/Bielik-11B-v2.3-Instruct" \
28
+ --output_dir "$WORK/results_a" \
29
+ --num_fewshot 5 \
30
+ --batch_size 1 \
31
+ --tasks polish_generate_few polish_mc \
32
+ 2>&1 | tee "$WORK/eval_log.txt"
33
+
34
+ log "============================================"
35
+ log " Evaluation complete!"
36
+ log " Results: $WORK/results_a/"
37
+ log " Log: $WORK/eval_log.txt"
38
+ log "============================================"