Repository navigation
test(qwen35): the resumed == fresh checks' fresh runs resume from nothing - #2374
Conversation
|
Thanks @AbrahamCete, this is exactly what #2353 needed. Both checks evict before their fresh run, and both now fail by name when the eviction is removed: |
…hing The fresh runs of check_invariants' resumed check and check_radix's stress ran inside the resumed runs' keepPrompts scope, on the same prompts, so they resumed too and each check compared two resumed runs. Each fresh run now evicts every kept prompt first, and its check fails by name when a fresh reply still restored tokens.
c1e213b to
6021724
Compare
|
Thank you @AbrahamCete. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
|
Thanks @AbrahamCete! This is in TensorFold 1.2.4, out now: https://github.com/ashhart/TensorFold/releases/tag/v1.2.4 |
What this changes
Two qwen35 checks compare a run resumed from kept prompt caches with a fresh run. In both, the fresh run ran inside the resumed run's
keepPromptsscope, on the same prompts, so it resumed too, and the check compared two resumed runs (#2353):resumed()inzig/tests/qwen35/check_invariants.zig("lanes long greedy: resumed == fresh");stress()inzig/tests/qwen35/check_radix.zig("radix: N requests, resumed == fresh", and "radix: all together == fresh", which uses the same fresh run).Each fresh run now evicts every kept prompt first, and its check fails by name when a fresh reply still restored tokens:
the fresh run of <prompt> resumed <n> tokens.zig/tests/qwen35/serve_check.pyhas the same gap, but the server has no per-request way to skip the prompt cache and no eviction endpoint, so a fresh request on a warm server needs a design choice. As offered in #2353, I left it to you.check_invariants.zigandcheck_radix.zig;serve_check.pyremains.main53311e7. One commit,c1e213bb1, adding four lines in two files. It merges cleanly ontomaineaf79c5 (git merge-tree); none of the 15 commits since 53311e7 touchzig/tests/qwen35/.atc overlap --json(2026-11-06 15:20Z,--base 53311e7e1): two changed files, and no open pull request it checked shares them, so there is no conflict. The run was incomplete (otherPullRequestsLimit,pullFilesUnavailable,timeLimit). Two local worktrees share a file and merge cleanly.Checks on this head
c1e213bb1, onmain53311e7.python3 tools/zig/lean_check.py, on the base and on this head: 252 and 252, 0 new.git archivetrees:zig build test -Dhip=true --summary all: 612/612 steps, 7732/7796 tests passed, 64 skipped.tf-qwen35-test check <Qwen3.8-27B-MLX-4bit> --only invariantson gfx1151: 42 passed, 0 failed, 5 skipped, withlanes long greedy: resumed == fresh: 4 streams, 192 tokens, 896 prompt tokens from the kept cachesandradix: 14 requests, resumed == fresh: 27 of 28 resumed, 48 tokens each. The skips are the fourdrafted == serialchecks ("the model has no draft head") andradix memory: too few ids, as onmain.The same on
Qwen3.6-35B-A3B-MLX-4bit-MTP: 46 passed, 0 failed, 1 skipped (radix memory: too few ids).This head with both eviction lines removed, on the 27B: both checks fail by name, 37 passed, 2 failed, 5 skipped. The three checks after the failing one in
stress()do not run.zig fmt --checkandgit diff --check: clean.c1e213bb1, 7/7:zig,zig-windows,zig-macos-dev-tools,fmt,release-paths, andbenchmark-clientson Ubuntu and Windows.test-golden, because no golden runstf-qwen35-test check.serve_check.py, which this does not change. Chips other than gfx1151, which I don't have; the change is in the checks' host-side setup, not in a kernel.Receipt
n/a: the change is in
tf-qwen35-test check, a test harness. The server, the engines and the kernels are unchanged. The GPU checks above ran on a Ryzen AI Max+ 395 (gfx1151), Ubuntu 26.04, Zig 0.17.0, hipcc with HIP 7.1.52801 and Ubuntu clang 21.1.8, withTensorFold/Qwen3.8-27B-MLX-4bit(revision22d8d538) andQwen3.6-35B-A3B-MLX-4bit-MTP.Checklist
mainthey passed while comparing two resumed runs.)