Repository navigation
qwen27 metal: drop q27_norm, q27_mlp and q27_gdn_post, which nothing launches (#2251) - #2816
Conversation
|
Thanks @jschmied. A whole-word search of main finds
|
2252756 to
9421f57
Compare
|
Thank you @jschmied. 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. |
Main dropped q27_norm, its Norm parameters and normThreads as unlaunched (#2816), but the GGUF path launches that kernel with FP32 gains. It returns, unchanged, as qwen27/gguf_norm.metal, compiled after glue.metal only by the GGUF kernels, with its ABI back in glue.zig and its size check. The runtime source set compiles it too.
|
Thanks @jschmied! This is in TensorFold 1.2.8, out now: https://github.com/ashhart/TensorFold/releases/tag/v1.2.8
|
From #2251 section 4: Qwen3.8-27B's Metal glue kernels that no host code, test, tool or build step launches.
What changes
qwen27/glue.metallosesq27_norm(and itsNormstruct),q27_mlpandq27_gdn_post(and itsPoststruct).zig/src,zig/tests,tools, the build files or the contract registry.norm_xs/norm_input/mlp_xs, and the GDN post-norm oncore/deltanet.qwen27/glue.zigloses the host mirrors only these kernels used:Norm,normThreads,Post, their size and offset checks, and the norm-geometry test.Elementstays, becauseq27_gateuses it.moe.metalcomment no longer citesq27_mlp.q27_prompt_qkis not the only kernel in its file that nothing launches.prompt_glue.metal'sq27_prompt_product,_siluand_decayaren't launched either. All four are reached only throughprompt_gpu.Kernels, which nothing builds with pipelines. The same goes forprompt_state_gpu.Kernels.zig/tests/qwen27/runtime.zig's "force analysis of native interfaces" line.qwen27/disk.zig'ssourceHashcovers every embedded source. Qwen27 prompt states saved to disk before this are recomputed once.Checks (M3 Pro, main 14dea6c against this branch)
Kernel contract (
tf-kernel-contract --only qwen27 --rotary-accuracy rotary.json): main and branch both giveSUMMARY 30 kernels: 30 pass gates 1-4, 0 fail, 0 known findings; 3 controls: 3 red as planted, 0 missed; 0 limit problems. The outputs are identical apart from the SUMMARY's timings.Builds and tests: the native build, including Qwen27's metallib, passes, as do
test-kernel-symbols-host,test-qwen27,test-qwen27-startup-hostandtest-qwen27-quant-host. Lean 386, 0 new;zig fmt --checkandgit diff --checkclean.x86 CI (Linux build + host tests on 2252756): green.
Overlap: no open PR touches these three files.
No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.