Repository navigation
docs(spec): record the temperature 0 block-history argmax flip (#2778) - #2879
Conversation
…p#2778) A temperature 0 run through a block verification path (--prompt-lookup or a draft model) can leave the plain-decode stream near a logit tie: the verify block builds post-first-row K/V at M = block width, a different quantized kernel path than the one-token decode step, so the logits differ at rounding scale and the argmax can flip where the reference's top two logits are tied or nearly tied. This is the temperature 0 contract, not a defect; no code change is made. - docs/temperature-0-block-history-flip.md: the investigation, teacher-forced and end-to-end measurements, repro commands, and the limits of the evidence (the issue's original 35-logit swing at position 197 is not reproduced). - scripts/matched_width_trace.sh, scripts/compare_matched_width.py: the matched-context (PREFILL = 128 + j) trace harness and comparator that redo every Evidence 1 figure. - CHANGELOG: a Known limitations entry under Unreleased pointing at the document (lablup#2778, does not block 0.8.0). Every number in the document is traceable to a command recorded there.
The script carries a #!/usr/bin/env python3 shebang, so tests/ test_script_executable_modes.py requires Git mode 100755. It was added as 100644, which failed the python-tooling CI job. Mode only; content is unchanged.
The finding is a behaviour contract, not a defect, and it applies to the next release rather than to the already-issued v0.8.0 section, so the entry belongs under ## [Unreleased]. Text is unchanged from the reviewed revision; only its placement moved.
|
Status update at head CI fix. The first green-checking head ( CHANGELOG placement. The Current state. 3 commits, |
The maintainer decision on lablup#2778 leaves the root cause open, but the doc and the CHANGELOG entry called the flip a contract and not a bug. Restate them as a known issue with the measured environment, and keep the position 197 swing explicitly unexplained. Correct claims that do not hold against the tree: benchmarks.md records byte-identical block widths and an exactness probe, so bit-equality across M is not impossible; the unmatched and matched passes cover different positions; the control arm paragraph said arms B and C agree on 0 of 512; the j=0 control counted 384 rows where only 48 exist. Mark the K/V arithmetic explanation as a hypothesis, cite the KV dump posted on the issue, and record that the runs predate the 9f806b36 pin. Make the repro commands runnable from the fixture directory, and validate input in both scripts with argparse and clear errors instead of tracebacks.
|
Hardening review, pushed as Findings fixed
The PR body marks #2778 criterion 2 (cause named) as done; the revised doc does not support that, so #2778 stays open. Security and performance: analysis scripts only, writing under the caller's output directory; no runtime path changes. Validation: the 214 Python tooling tests, env var docs, license header and reserved path checks pass, plus a synthetic end-to-end script run with bad-input cases. |
Refs #2778. Does not close it.
What this is
Documents the deterministic temperature-0 argmax flip observed when a KV history is block-built versus plainly built, and ships the two comparison scripts used to pin it down.
Replaces #2868, which carried 5 unrelated commits from a stale fork base (imagegen and others already merged upstream) inflating the diff to ~70 files / +10430. This branch replays the work directly onto current
upstream/main(f45a92cc) as a short linear series (docs, then a script-executable-mode fix, then a CHANGELOG placement fix), so the PR-visible diff is exactly the intended work.Diff
Verification
git diff --stat upstream/main b885845f=> 4 files, +446, 0 deletions.Scope note
This is a spec/documentation change. The temperature-0 flip is characterized and reproducible but not fixed in code here.
Acceptance-criteria status for #2778, stated against the issue's own four criteria:
docs/temperature-0-block-history-flip.md.So
Refs #2778, notCloses: merging this leaves criterion 1 outstanding, which is the intended state.