Repository navigation
inkling2: Small's pin moves to revision 885d78bf, log_scaling_n_floor 8192 in the fixtures and the contract reference - #6215
Conversation
Synthena Initial Review — Initial diff check passed (awaiting device run) (
|
|
I applied both commits onto the current #4841 serving head. The combined checkout exposed one stale assertion in
|
|
READY to land on this head. Read-only review found no problems: the Inkling 2 Small fixtures pin revision 885d78bf and the contract reference uses Small's and Mini's log-scaling floor (8,192), with both floors still admitted; serving reads the same values as before. The train runs the M3 Ultra and GB10 regression cells before landing.
|
…oor 8192 tools/zig/inkling2_fixtures.py names thinkingmachines/Inkling-2-Small at 885d78bfca61a7e9a498e33cfa7ad35850533b8c and rebuilds the fixtures from it: config.json (log_scaling_n_floor 8192), chat_template.jinja (generation markers) and prompt_cases.json (its files line; prompts and ids unchanged). The EXL3 admission test takes the release's 8192 and keeps 128000 as the second admitted floor. Refs ashhart#3476
floor_pos follows the release's log_scaling_n_floor; the tau pins move to positions 8191, 8192, 300000 and 1048575, and tauAt keeps a second floor (128000) under test. Refs ashhart#3476
07044a4 to
e21cd38
Compare
|
Thank you @Nipale-ai. 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
Before, the Inkling 2 Small pin named revision
2ad1157withlog_scaling_n_floor128000: intools/zig/inkling2_fixtures.py:11, inzig/src/families/inkling2/fixtures/config.json:20and in the attention contract's reference (floor_pos, now atzig/src/core/contract/inkling2_attn_ref.zig:15). After, the pin names885d78bfca61a7e9a498e33cfa7ad35850533b8c, the head ofthinkingmachines/Inkling-2-Small(2026-11-20), and the fixtures and the reference carry 8192. This is the pin move asked for in #3476 on 11-22.tools/zig/inkling2_fixtures.py:RELEASEnames the new revision.fixtures/config.json: rebuilt by the tool.log_scaling_n_flooris the only line that differs between the two revisions.fixtures/chat_template.jinja: rebuilt by the tool; the release's template now wraps an assistant message in generation markers. It is byte for bytefixtures/release_chat_template.jinja, which this change leaves in place.fixtures/prompt_cases.json: rebuilt by the tool. Only itsfilesline changes: the 24 chat cases and the 6 raw cases (prompts, ids, decoded text) are equal under both templates.mini_tokenizer.jsonandmini_cases.jsondo not change, sincetokenizer.jsonhas the same bytes at both revisions.zig/src/core/contract/inkling2_attn_ref.zig:floor_posis 8192. The tau pins move to positions 8191, 8192, 300000 and 1048575, the position that must still give 1 moves from 127998 to 8190, and thetauAttest keeps a second floor (128000) under test.zig/src/families/inkling2/config_test.zig: Small's parse test now stateslog_floor8192, as the Mini and tiny Mini tests already do.zig/src/families/inkling2/exl3_pack_test.zig: Small's config carries 8192 now, so the second flooradmitSmallConfigis shown to take is 128000.THIRD_PARTY_NOTICES.md: the revision.What the new value reaches:
config.json(config.zig:274); that is unchanged.ref.floor_postotf_ink2_prepand takesref.taufor the expected value (zig/tests/cuda/contract_inkling2_attn_prep.zig:164,:204), so its global prep entry and the "without tau" control now run at 8192. The GPU run is under Checks.zig/tests/hip/contract_inkling2_prep.zig:195) and takestauAtwith it (:263); it does not readfloor_pos. The Metal contract has a reference of its own with 8192 (zig/tests/contract/metal_inkling2_attention_ref.zig:58) and does not import this one.exl3_config.admitSource(exl3_config.zig:116-119) requires the text fields of a pack's source config to equal those of the pinnedconfig.json. After this change a source config with 8192 passes that comparison and one with 128000 returnserror.InklingGeometry. Onmainonlyexl3_pack_test.zigcalls it, and no test covers that refusal.exl3_pack.admitSmallConfigtakes both floors (exl3_pack.zig:81) and is not touched.Not touched:
fixtures/tiny_config.json(tiny-random/inkling-2@0a57c72ehas 128000 itself),fixtures/release_chat_template.jinjaandkernels_test.zig:67(a recorded launch with stand-in values).#4841 (open) adds
zig/src/families/inkling2/shape.zigwithlog_floor: f32 = 128000as a default and a test that expects 128000 fromfixtures/config.json. The two changes share one file,THIRD_PARTY_NOTICES.md, in different sections. The one that lands second has to move that expectation to 8192.Not part of this change: #4125's entry that plants a non-finite value at a masked key inside a loaded tile. It follows as its own pull request.
1380e428c(pin, fixtures, family tests, notice) and07044a4be(contract reference).atc overlap --json --base origin/main, on this head: incomplete (limitations: otherPullRequestsLimit, pullFilesUnavailable, pullRequestsLimit, timeLimit). It reports six overlaps of one shared file each, 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: serve Ripple-65B on two GB10s with up to 1M tokens of context #2522 and ricursive: speed up Ripple-65B on two GB10s #2523, allclean, and no worktree overlap.atc check 3476 --json: incomplete (pullRequestsLimit).Checks on this head
07044a4be, basef25ae9711.python3 tools/pr_check.py --base origin/main, which runs it): 0 errors, lean 88 vs 88, 0 new; three advisory warnings (no--prnumber yet, and two inherited import cycles).Build Summaryline:zig build test-kernel-contract --summary all: 399 passed, 0 failed.zig build test-inkling2-host --summary all: 236 passed, 0 failed, 7 skipped.zig build test-inkling2-cuda-host --summary all: 111 passed, 0 failed.zig build test-server-inkling2-reply-host --summary all: 102 passed, 0 failed, 1 skipped.zig build test-inkling2-thinking-budget-host --summary all: 44 passed, 0 failed. These two steps hold the server tests that loadfixtures/chat_template.jinja(their names start withInkling 2 reply:orInkling 2 thinking budget:).zig build test-inkling2-metal-host --summary all: 319 passed, 1 failed, 12 skipped. The failure isTFQ5 Metal: Split-K heuristic saturates cores on small-R projections(expected 1, found 2); it fails the same way on the basef25ae9711on this machine, with the same counts, and is reported in Metal host tests: two failures on main on an M5 Ultra (gpu_tokens ring boundary, TFQ5 split-K count) #5814.zig fmt --check build.zig zigandgit diff --check origin/main HEAD: clean.zig build test-cuda-host --summary all: 12025 passed, 0 failed, 53 skipped.zig build test-inkling2-hip-host -Dhip=true --summary all: 121 passed, 0 failed, 2 skipped.expected 8192, found 128000); with this head's reference tests andfloor_posleft at 128000, the tau pin fails at position 8192 (0x3ff0000ccc999aabexpected,0x3ff0000000000000found). The other edited test lines (exl3_pack_test.zig,tauAtat 128000,tau(8190)) hold on both values.2ad1157,--checkreports all 13 filessame; on this head with the files of885d78bf, all 13same. Its other inputs weretiny-random/inkling-2@0a57c72e(its files whole), and extracted safetensors headers forhf-internal-testing/tiny-inkling2-mini@ee242a48andthinkingmachines/Inkling-2-Mini@ed40e7da.@log; a Pythonmath.logcross-check gives the same four bit patterns, and the same method reproduces the four patternsmainpins for 128000.zig build install-cuda-contract-runner -Dnvcc=/usr/local/cuda/bin/nvcc, thentf-cuda-test kernel-contract "inkling2 attn", on the basef25ae9711and on the base with this head's diff applied. Both runs exit 0 with the same result:(filtered) SUMMARY 7 kernels: 7 pass gates 1-4, 0 fail, 0 known findings; 5 controls: 5 red as planted, 0 missed; 0 limit problems. The "without tau" control's first output is 2.9375 in both runs; the float64 value it is held to moves from 3.1875 to 4.zig build test test-golden: not attempted; the macOS machine used has 23 GiB of free disk.Receipt
n/a: the change cannot reach inference. It moves a pinned revision, test fixtures, a contract reference constant and tests; serving reads
log_scaling_n_floorfrom the checkpoint's config, andadmitSource, the one non-test function that embeds the pinned config, has no caller outside tests onmain.Checklist