Repository navigation
Conversation
… 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.
Owner
Author
|
Stopped at #2890. |
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.
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.