Skip to content

tests(qwen36): provenance for the tensor-kind lists -- index hashes, the regenerating one-liner, an index-backed check - #1613

Merged
JustVugg merged 1 commit into
JustVugg:devfrom
kreuzzelg:qwen36-tensor-kinds-provenance
Sep 18, 2026
Merged

JustVugg merged 1 commit into
JustVugg:devfrom
kreuzzelg:qwen36-tensor-kinds-provenance

Conversation

@kreuzzelg

Copy link
Copy Markdown
Contributor

Follow-up to #1326, the auditability request from the review: the name lists in tests/test_qwen36_tensor_kinds.py were transcribed by hand from the two real model.safetensors.index.json files, and the contract rests on them.

  • The header now carries the sha256 of both indexes (Qwen/Qwen3.8-2.4T-A95B e36c40d4…28ee, Qwen/Qwen3.6-35B-A3B 41b93561…be83) and the one line that regenerates a collapsed list from an index (re.sub(r"\.(\d+)\.", ".N.", name) over weight_map, sorted, unique).
  • IndexBackedTest runs the lists against the real files when QWEN36_INDEX_DIR points at them; skipped in CI, where the indexes are not in the tree. For the 2.4T index the collapsed output is QWEN38_2P4T (46 names). For the 35B index it is the same 46 under model.language_model. plus 21 model.visual.* kinds (the 333 vision tensors collapse to 21; the three listed are among them, the prefix is what the contract keys on).

Verified here with both files: 9 tests, 0 skipped, clean under -W error::ResourceWarning; without the files: 7 run, 2 skipped, as CI will see it.

Thanks to Claude Code for the help along the way.

https://claude.ai/code/session_01X2HPETYXNwT4RmQkdMMyPS

…the regenerating one-liner, an index-backed check

Asked for in the JustVugg#1326 review: the name lists were transcribed by hand from
the two real model.safetensors.index.json files and the contract rests on
them. The header now carries the sha256 of both indexes and the one line
that regenerates a collapsed list from an index; IndexBackedTest runs the
lists against the real files when QWEN36_INDEX_DIR points at them (skipped
in CI, where the indexes are not in the tree). For the 2.4T index the
collapsed output is QWEN38_2P4T exactly; for the 35B index it is the same
46 names under model.language_model. plus 21 model.visual.* kinds.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X2HPETYXNwT4RmQkdMMyPS
@JustVugg
JustVugg merged commit 4ce91a0 into JustVugg:dev Sep 18, 2026
28 checks passed
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.

2 participants