Repository navigation
test(inkling): real-model parity against mlx-lm #2086 on oQ3e — top-1 97.8% at the mlx-lm bf16/fp32 noise floor, always in top-5 (#650) - #755
Merged
Conversation
… teacher-forced positions, top-1 97.8% (mlx-lm bf16 vs its own fp32 97.97%), always in top-5 (#650) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012cicguZMN3jhNGmf5327oh
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the real-model parity part of #650 P1, which was waiting on #739. It does not wait any more: the mlx-lm side now reads the oQ3e pack directly, with the same key mapping that
Inkling2Checkpoint.fromOQuses.What is added
realModelTop1MatchesReferenceinInklingReferenceParityTests, env-gated onBASALT_E2E=1andBASALT_E2E_INKLING_MODEL_PATH.Fixtures/Inkling2/mlxlm2086_oq3e_top5.json(87 KB): token ids and mlx-lm top-5 per position.How the reference was made
jundot/mlx-lm@e2b5bbd3bd) in a venv, loadingmlx-community/Inkling-2-Mini-oQ3e-mtpat 5552e32.sanitizewas replaced by a Python port offromOQ: the same renames, row splits ofin_proj/q_proj/k_proj/v_proj, conv reshapes, loop gates and message queries.load_weights(strict=True)passes, so every key and shape matches.global_scaleargument ongather_qmm, so a shim drops it. The value is alwaysNonefor affine weights.Results (Apple M-series 24 GB, commit 244eef6 + this test)
logs/inkling-real-parity-2026-11-24.log.Decode, same prompt, 256 tokens, greedy
--mtp, 3 runs--mtp.relative_attention,depth_attentionandexpert_routingMetal kernels would give. That is K1 in [P2] model: Inkling 2 Mini (inkling2_loop, 26.4B-A3.4B looped MoE, 5.4B effective) on 16–64 GB Macs — partial-depth loop driver with per-visit caches, relative attention + per-token sink kernel, native NVFP4/MXFP8 experts, Inkling frame tool calls #650 P2, which is with the senior.🤖 Generated with Claude Code
https://claude.ai/code/session_012cicguZMN3jhNGmf5327oh