HumanEval: temp=0 top_p=0.9 (minimal deviation)
Browse files- scripts/job_he.sh +9 -7
scripts/job_he.sh
CHANGED
|
@@ -6,9 +6,11 @@
|
|
| 6 |
# emits <|endoftext|> at all 768 positions (score 0), because temperature<1 scales
|
| 7 |
# the logits up, top_p<1 then keeps only the argmax, and Dream's confidence metric
|
| 8 |
# (negative entropy) collapses to exactly 0 at 242/256 positions -> all ties.
|
| 9 |
-
#
|
| 10 |
-
#
|
| 11 |
-
#
|
|
|
|
|
|
|
| 12 |
set -uo pipefail
|
| 13 |
pip install -q "transformers==4.46.2" "huggingface_hub<1.0" "datasets<4" "accelerate" 2>&1 | tail -1
|
| 14 |
python -c "
|
|
@@ -53,18 +55,18 @@ run () {
|
|
| 53 |
########## Claim 4 — HumanEval, full 768 steps, temp 0 (signal intact)
|
| 54 |
# paper: baseline 52.66 | CCD 57.31 (+4.65) | CCD-DS 56.71 (+4.05) @ 253.2 steps (3.04x)
|
| 55 |
for m in baseline ccd ccd_ds; do
|
| 56 |
-
run "c4_he_${m}.json" --task humaneval --method $m --limit $N_HE --temperature 0.0 --top-p
|
| 57 |
done
|
| 58 |
# "repaired" CCD-DS at the V the reported 3.04x actually needs (V >= 12.2 at d=3)
|
| 59 |
run "c4_he_ccd_ds_V12.json" --task humaneval --method ccd_ds --limit $N_HE \
|
| 60 |
-
--temperature 0.0 --top-p
|
| 61 |
|
| 62 |
########## Claim 6 — temperature robustness (reduced to 256 steps to stay in budget)
|
| 63 |
for t in 0.0 0.1 0.4 0.7 1.0; do
|
| 64 |
run "c6_he_baseline_t${t}.json" --task humaneval --method baseline --limit $N_TEMP \
|
| 65 |
-
--temperature $t --top-p
|
| 66 |
run "c6_he_ccd_ds_t${t}.json" --task humaneval --method ccd_ds --limit $N_TEMP \
|
| 67 |
-
--temperature $t --top-p
|
| 68 |
done
|
| 69 |
|
| 70 |
echo "=================== HUMANEVAL DONE ==================="
|
|
|
|
| 6 |
# emits <|endoftext|> at all 768 positions (score 0), because temperature<1 scales
|
| 7 |
# the logits up, top_p<1 then keeps only the argmax, and Dream's confidence metric
|
| 8 |
# (negative entropy) collapses to exactly 0 at 242/256 positions -> all ties.
|
| 9 |
+
# Claim 4 therefore keeps the paper's top_p=0.9 and changes ONLY temperature
|
| 10 |
+
# 0.1 -> 0, the minimal deviation that restores the signal (1 zero / 256 distinct)
|
| 11 |
+
# -- applied identically to BOTH arms so the comparison stays fair.
|
| 12 |
+
# Claim 6 sweeps temperature at the paper's OWN top_p=0.9, which is the faithful
|
| 13 |
+
# test of Fig. 3b and also exposes the collapse at temperature 0.1 and 0.4.
|
| 14 |
set -uo pipefail
|
| 15 |
pip install -q "transformers==4.46.2" "huggingface_hub<1.0" "datasets<4" "accelerate" 2>&1 | tail -1
|
| 16 |
python -c "
|
|
|
|
| 55 |
########## Claim 4 — HumanEval, full 768 steps, temp 0 (signal intact)
|
| 56 |
# paper: baseline 52.66 | CCD 57.31 (+4.65) | CCD-DS 56.71 (+4.05) @ 253.2 steps (3.04x)
|
| 57 |
for m in baseline ccd ccd_ds; do
|
| 58 |
+
run "c4_he_${m}.json" --task humaneval --method $m --limit $N_HE --temperature 0.0 --top-p 0.9
|
| 59 |
done
|
| 60 |
# "repaired" CCD-DS at the V the reported 3.04x actually needs (V >= 12.2 at d=3)
|
| 61 |
run "c4_he_ccd_ds_V12.json" --task humaneval --method ccd_ds --limit $N_HE \
|
| 62 |
+
--temperature 0.0 --top-p 0.9 --buffer-V 12
|
| 63 |
|
| 64 |
########## Claim 6 — temperature robustness (reduced to 256 steps to stay in budget)
|
| 65 |
for t in 0.0 0.1 0.4 0.7 1.0; do
|
| 66 |
run "c6_he_baseline_t${t}.json" --task humaneval --method baseline --limit $N_TEMP \
|
| 67 |
+
--temperature $t --top-p 0.9 --steps 256
|
| 68 |
run "c6_he_ccd_ds_t${t}.json" --task humaneval --method ccd_ds --limit $N_TEMP \
|
| 69 |
+
--temperature $t --top-p 0.9 --steps 256
|
| 70 |
done
|
| 71 |
|
| 72 |
echo "=================== HUMANEVAL DONE ==================="
|