Skip to content

train 1119200034: #2890 #3863 (CI only) - #4059

Closed
ashhart wants to merge 7 commits into
mainfrom
lead/train-1119200034
Closed

ashhart wants to merge 7 commits into
mainfrom
lead/train-1119200034

Conversation

@ashhart

@ashhart ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #2890 #3863 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.

BobClawblaw and others added 7 commits November 19, 2026 20:00
… storing fp32 sums

tfp::gemm_nax takes D's element type as a last template parameter, T by default, so every existing kernel
instantiates as before. TF_GEMM_NAX_KERNEL_TO(NAME, T, TD, ...) is TF_GEMM_NAX_KERNEL with D stored as TD, for a
caller that keeps the fp32 sums for an epilogue of its own; TF_GEMM_NAX_KERNEL's text is unchanged.
…with its q, k and v biases and YaRN at HF's rounding points

The family admits model_type qwen2 for the checkpoints checked against Hugging Face: the q, k and v biases join
the projections' fp32 sums before their one rounding (ll_matvec_bias_* beside the shared ll_matvec_*, which stay
core/bf16_matvec.metal's; a prompt chunk's GEMM stores its sums through ll_gemm_f32_*, gemm_nax with fp32 output,
and ll_bias_round adds the bias and rounds once), and the rope carries transformers' static YaRN table for 128-wide
heads (rope_yarn.yarnOf; the 64-wide table unchanged), computed once at parse, with its attention factor on the bf16
cosines and sines. Config refuses a root rope_theta that disagrees with rope_parameters', a layer_types entry that is
not full_attention, and reads a null rope_parameters as absent. Every changed and new kernel is under the contract
with five more planted controls; the controls' source edits now name the shared matvec's loop and the GEMM macro
lines (#2787 left gemm_untransposed's edit matching nothing). --drafter is refused by name for a checkpoint no
drafter was checked with, Qualified.copy_drafts turns the lane core's copies off for Bimo-7B-CyberAgent, and the
template's lack of a think block is declared to the server. tools/zig/llama_f64_reference.py takes the Qwen2 layout.
…and serving checks on the M5 Ultra, its copy-draft measurement and the quality suite's thinking-off results)
Metal's precise::cos and sin are not correctly rounded, and YaRN's factor lifts
them past 1, where a bf16 step is coarsest, so a rotation output can move two
ulps. The bound now adds, per output, the widest move a neighbouring bf16 cosine
or sine gives. Without it 17 of 20 seeds failed the shapes gate at Bimo's
geometry by up to 1.25 of the bound; with it seeds 1 to 20 pass and the
factor-skipped control stays red. The kernel is unchanged.
…cache (#3860)

hostCacheBytes only knew /proc/meminfo, so on Windows it returned 0 and
the qwen3_5 host prompt cache was silently disabled whatever
--prompt-cache-gib said. GlobalMemoryStatusEx gives the same total and
available physical memory on Windows; the Linux procfs path stays.

A 36k-token three-turn conversation on an RTX 5090 now shows
cached=32768 and ttft 10.9 s cold, 1.1-1.2 s on the follow-up turns.
@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner Author

Stopped at #2890.

@ashhart ashhart closed this Nov 19, 2026
@ashhart
ashhart deleted the lead/train-1119200034 branch November 19, 2026 22:30
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.

3 participants