Repository navigation
test(inkling2): tiny-inkling2-mini config and model header fixtures with parse, weight map and visit plan tests - #5369
Conversation
|
Thanks, @AbrahamCete. The generator preserves the tiny Mini config byte for byte, records its exact checkpoint revision, and emits only model-header metadata. The tests check all 622 mapped tensors, the NVFP4/MXFP8 layer boundary, the 30-visit plan, the previous-pass visits and the four output-query sources. This is ready to land, and it goes into a landing train next, which runs CI and the device checks. No engine or kernel behavior changes here, and no device run is needed. I found no remaining code correction.
|
|
@AbrahamCete, one small thing: this PR is still marked as a draft, so our landing train skips it. Mark it ready for review when you're happy and it goes straight into the next train.
|
…ith parse, weight map and visit plan tests
c3fb824 to
f96a790
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. |
What this changes
TensorFold has no fixture for
hf-internal-testing/tiny-inkling2-mini, the tiny checkpoint the HIP gate on #4265 requires. This adds its config and a metadata-only model header table, with host tests for parsing, the weight map and the 30-visit plan, as asked in #4265 (issuecomment-7215811144). No engine, kernel or weights.tools/zig/inkling2_fixtures.pytakes a required--tiny-miniinput, the checkpoint'sconfig.jsonandmodel.safetensorsor its extractedmodel.header.json, pinned at revisionee242a48af34ff0729518f4ac28cfcb847e470ab. It writestiny_mini_config.json, a byte copy, andtiny_mini_model_header.txt, the folded table of 622 tensors under the taginkling2-tiny-mini-model. The 11 files it already wrote come out byte-equal.config_test.zig: the config parses to hidden 256, 18 layers, 30 visits, 4 query and 2 KV heads, 16 experts with top-4, expert width 256, relative extent 128 on local layers and 256 on global ones, the loop core 6 to 12 over 3 passes with gate rank 64, and no drafter.names_test.zig: the weight map names exactly the 622 tensors; the experts are NVFP4 on layers 0 to 13 and MXFP8 on 14 to 17; the visit plan runs the 6-layer core 3 times, passes 2 and 3 read the previous pass from visits 6 and 12, and the output query has 4 sources.THIRD_PARTY_NOTICES.mdnames the checkpoint, its revision, and that its model card states no licence.Main's config parser, weight map and visit plan already accept tiny-mini, so no production code changes. The HIP kernels are what still fix Mini's shapes; those follow in the order agreed on #4265.
main3f5551a. Commit:atc overlap --json(ATC 0.9.6, 2026-11-27 10:28Z, base 3f5551a): six open pull requests shareTHIRD_PARTY_NOTICES.md(Native Vulkan backend for Qwen3.5-2B (opt-in): engine and kernel-contract registration (stacked on #1526) #1544, gemma4 Metal: Gemma 4 E4B (NVIDIA Nemotron 3.5 Bolt E4B) on M1 to M4, per-layer inputs and shared KV #2273, Ling-3.1-flash on CUDA, on one or two GB10s #2340, ricursive: Ripple-65B-Preview's DFlash2 drafter on native CUDA #2475, ricursive: load Ripple's EXL3 packs through main's shared EXL3 code #2514, ricursive: speed up Ripple-65B on two GB10s #2523), each in another section. It marks ricursive: Ripple-65B-Preview's DFlash2 drafter on native CUDA #2475 as conflicting;git merge-treeshows ricursive: Ripple-65B-Preview's DFlash2 drafter on native CUDA #2475 conflicts withmainon the same files without this branch, so that conflict is inherited. The run is incomplete (limits on pull requests, their files and time).Checks on this head
main3f5551a.python3 tools/zig/lean_check.py, on the base and on this head: 123 and 123, 0 new.zig build test-inkling2-host: 60 of 65 passed, 5 skipped; onmain, 56 of 61 passed, 5 skipped. Before the fixtures existed, the build failed on the two missing@embedFilefiles.zig build test test-goldenon a clean tree of this head, on Linux x86_64: 14,227 of 14,331 passed, 103 skipped, 1 failed. The failure isstage_hip_test"every staged call on HIP memory equals the reference, whole and in parts", which fails the same way on a clean tree ofmain3f5551a on the same machine (zig build test-tp: 148 of 150 passed, 1 skipped, 1 failed).tools/zig/inkling2_fixtures.py --checkwith transformers 5.20.0, tokenizers 0.23.3 and jinja2 3.1.6, over the four checkpoints' files (safetensors headers only): all 13 files the same, exit 0. Before this change, the same run of the old script reproduced its 11 files.zig fmt --check build.zig zigandgit diff --check: clean.zigfails at its "environment names" step (tools/zig/env_names.py: 761 variables read, 13 problems, none in this diff). That failure is inherited: on this run's merge ref and on itsmainparent 4516363, the script reports the same 13 problems and exits 1.Receipt
n/a: test fixtures and host tests only; nothing reaches inference. The host tests above are the evidence.
Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (n/a: no engine)--drafter, no slower than without it, greedy and sampled. (n/a: no engine)