Skip to content

test(eval): set the chat-template ARC acc_norm floor from measurement - #6682

Merged
Qubitium merged 1 commit into
mainfrom
test/eval-arc-floor
Dec 1, 2026
Merged

Qubitium merged 1 commit into
mainfrom
test/eval-arc-floor

Conversation

@Qubitium

@Qubitium Qubitium commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

tests/test_eval_runtime.py::TestEvalRuntime::test_eval_direct requires the
chat-template ARC-Challenge acc_norm to be >= 0.34, but the same checkpoint
has scored 0.3379 on GPU since at least 2026-10-01. The 0.34 floor is
only 0.15 binomial standard errors above the observed score (n=1172,
SE=0.0138), so the test is a coin flip on a number that has not moved in
months, not a quality gate.

This is a test-only change. It was found while verifying #6676: before that
fix, every evalution-backed eval failed on device_map=None; after it, the
quality gate became visible again.

What Changed

  • tests/test_eval_runtime.py: set the chat-template ARC acc_norm floor to
    0.32 (1.3 SE below the observed 0.337884, just above the 95% one-sided
    lower confidence bound 0.315) and record the measurements in the comment.

No product code changed.

Measurements (same model, evalution 0.0.17, GPU 3, full 1172 samples)

Ref Commit acc acc_norm vs 0.34
parent of #6473 aff56aa1a 0.3072 0.3378839590443686 fail
Transformers 5.23 port d2dfb9385 0.3072 0.3378839590443686 fail
pre-port 0071b1aa0 0.3072 0.3378839590443686 fail
Oct 1 4c5d902a8 0.3097 0.3370307167235495 fail
with #6676 42dbe43cf 0.3072 0.3378839590443686 fail at 0.34, pass at 0.32

The score is bit-identical at the parent of the device_map=None rejection
(#6473), at the Transformers 5.23 port, and with #6676, so this is not a
quality regression from either change. The test's commented historical value
0.3515 is the raw-prompt acc, not the chat-template acc_norm:

Prompt / backend acc acc_norm
chat template, AUTO/Marlin 0.3072 0.3379
chat template, ExLlamaV2 0.3106 0.3396
chat template, Torch/Triton 0.3123 0.3396
raw prompt, AUTO/Marlin 0.3515 0.3771
raw prompt, ExLlamaV2 0.3515 0.3763

The backend spread with the chat template is 0.17 points; the 3.9-point
difference is the prompt format. The April 2026 code cannot be evaluated with
the current transformers 5.23 stack (transformers.utils.hub.create_repo is
gone), so the old commented value is not a comparable baseline.

Tests

Red on main + #6676 (the threshold is the failure once the device_map
rejection is fixed):

PYTHONPATH=$PWD CUDA_VISIBLE_DEVICES=3 CUDA_DEVICE_ORDER=PCI_BUS_ID \
  HF_HOME=/root/.cache/huggingface HF_HUB_OFFLINE=1 \
  /root/venv/bin/python -P -m pytest -p no:cacheprovider -q --timeout 1800 \
  tests/test_eval_runtime.py::TestEvalRuntime::test_eval_direct
# AssertionError: 0.3378839590443686 not greater than or equal to 0.34

Green on this PR with #6676 applied (the PR branch itself only changes the
threshold; #6676 is still a separate draft):

# same command with the 0.32 floor
# 1 passed in 50.31s; arc_challenge acc_norm 0.3379

bash format/check.sh → All checks passed! (ruff 0.14.2).

  • Unit tests have been executed and passed, or the reason they are not applicable is documented.
  • I added a new simple/fast unit test for this change, or documented why that is not applicable.

Measured Impact

Not applicable: test-only threshold change; no VRAM, performance, or accuracy
path changed.

Model Support / Module Plan

Not applicable: no model definition or module plan changed.

AWQ onboarding safety

Not applicable: no AWQ code changed.

Logic Flow Documentation

Not applicable: no control flow changed.

Review Requirements

  • Reviewed this PR.
  • Checked that the code matches existing project structure, APIs, and conventions.
  • Avoided unnecessary monkeypatching and used the project's normal extension points where possible.
  • Minimized and compacted the impacted code surface.
  • Considered and eliminated potential regressions.

Kernel Accuracy Requirements

Not applicable: no kernel changed.

Notes

The threshold is still a quality gate: 0.32 catches a >5% drop from the
observed 0.3379, and the raw-prompt path (0.3771) is unaffected. If the
chat-template formatting changes again, the measurement comment makes the
next adjustment evidence-based rather than a blind loosening.

🤖 Generated with Claude Code

The test requires chat-template ARC-Challenge acc_norm >= 0.34, but the same checkpoint has scored 0.3378839590443686 on GPU 3 since at least 4c5d902 (Oct 1): identical at aff56aa (parent of the device_map=None rejection), d2dfb93 (Transformers 5.23 port), 0071b1a (pre-port) and with #6676. The 0.34 floor is 0.15 binomial SE above the observed score (n=1172, SE=0.0138), so it is not a meaningful quality gate.

The commented 0.3515 is the raw-prompt acc, not the chat-template acc_norm: the same checkpoint scores 0.3771 acc_norm without the chat template and 0.3379 with it; the backend spread with the chat template is only 0.17 points (Marlin 0.3379 vs ExLlamaV2/Torch 0.3396).

Set the floor to 0.32 (1.3 SE below the observed score, just above the 95% one-sided lower bound 0.315) and record the measurements so the next adjustment is evidence-based.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Qubitium
Qubitium marked this pull request as ready for review December 1, 2026 18:59
@Qubitium
Qubitium merged commit eab6ac8 into main Dec 1, 2026
6 checks passed
@Qubitium
Qubitium deleted the test/eval-arc-floor branch December 1, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant