Repository navigation
pr-set : pin #464, repin #378 #385 #386 #431 #448 for upstream b12859..b12927 - #465
danielhanchen wants to merge 4 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
#378, #385, #386 and #431 merge upstream aa631e0 (FA bias API cleanup, b12859); #378 also keeps the Inkling router soft_max off the new short-row kernels (CUDA b12878, Vulkan b12916). #448 merges b12922 (few-row MMQ for NVFP4 adds a dst argument to ggml_cuda_should_use_mmq_few). feature-checks: add inkling2-expert-scales (MUL_MAT_ID with weight scales).
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
1 similar comment
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…2878 Metal kernel
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Superseded by #473, which carries every change in this PR on top of it and has merged. |
Related to unslothai/unsloth#20277
The prebuilt is the aged upstream
b####tag plus the pins inpr-set.json, merged in order (git merge, thenadditive_merge.pyfor pure add/add conflicts only). Pins are our ggml-org PRs plus small unslothai PRs; when upstream absorbs a pin, the pin is deleted.This PR pins #464 and repins five pins so the nightly can move past b12858 again:
aa631e031e(b12859): FA bias API cleanup (set_bias/set_sinks, bias state fromsrc[6]/src[7],kq_bdropped frombuild_attn_mha(), dense bias cast to the mask type)git merge --no-ff aa631e031e, upstream side verbatim, the pin's banded-op guard kept on the renamedbias/bias_idxs. Plus: the Inkling dense relative bias stays F32 on the non-FA path (upstream's F16 mask cast moved Inkling-Small by KLD 0.196), and the 8-wide MoE routersoft_maxgets a-infcolumn on CUDA / ROCm / MUSA / Vulkan so it stays on the block kernel (ggml-org#33187 in b12878 and ggml-org#33197 in b12916 moved rows of up to 8 to a one-thread-per-row kernel that rounds differently; Inkling-Small IQ1_S turned that into KLD 0.17). The same ggml-org#33187 gave Metal a short-row kernel too; Metal used its float4 kernel for the 8-wide row before, so on Metal the row is padded to 12 (a multiple of 4) to stay on it, while the other backends keep the single-infcolumn4a8e8b9472git merge --no-ff aa631e031e, chunking kept on the renamedbias/bias_idxsand the newbuild_attn_iswa_impl()arguments81d72fc723dense_bias_maskgoes with the lambda upstream removedf475657fd6d257c9835694f17f659f(b12922):ggml_cuda_should_use_mmq_few()gains adstargumentgit merge --no-ff b12922, upstream's call plus the pin's block; own diff byte-identical8139c2dbe7The 2026-12-01 nightly failed in Resolve tag (#378 refused on b12900). Every pin branch moved by fast-forward; #378 / #385 / #386 / #431 now sit on
base/upstream-aa631e031, #448 onbase/upstream-94f17f659.feature-checks.jsongainsinkling2-expert-scales(MUL_MAT_ID with weight scales,scale_gran=[12]), the op the Inkling 2 experts need on every GPU backend (Vulkan refused it from b12818 until ggml-org#29791 in b12881).Evidence
The #378 Metal padding (
4a8e8b9472) only changes the graph when the layer sits on a Metal device; on CUDA, ROCm, MUSA, Vulkan and CPU the graph is the same as at9dd84c2ea1, so the numbers below carry over. Rerun with it:audit47/47,sim47/47 on b12921 through b12927,verify --cudaon b12921 (all steps, feature_matrix--gpu33/33). The Metal path itself is not run here (no Apple GPU); it rests on the b12858 Metal dispatch pickingkernel_soft_max_4with 32 threads for widths 8 and 12 alike, where the extra-inflanes add exact zeros.All local, B200 + CPU. The aged tag now is b12921, the newest is b12927 (published 14:07Z, so it is the base a run after 20:07Z picks).
auditon this set: 47/47 pins clean, feature-checks coverage ok.simon b12921, b12922, b12924, b12926 and b12927: 47/47 merge,pin_contractintact,merge_checksclean. With master's set, model : Inkling 1 (ggml-org#25731) on b12533 for the prebuilt #378, model : chunk the Inkling 2 relative-bias attention over query rows #385, model : banded flash attention for the Inkling 2 relative bias #386 and metal : banded flash attention for Inkling 2 (carries #404), decode kernels, quantized and mixed K/V caches #431 are refused from b12859 on, and CUDA: batch-1 Q8_0 mat-vec against F32 activations, without the q8_1 quantize #448 from b12922 on.verify --cudaon b12921 and b12927: CPU gate build, feature_matrix CPU 33/33, full CUDA build,test-chatpass;test-backend-opsCUDA MUL_MAT 3091/3091, MUL_MAT_ID 1205/1205, PAD 37/37, GET_ROWS 372/372; feature_matrix--gpu33/33. On the b12927 tree also SOFT_MAX 241/241, MUL_MAT_ID with weight scales 8/8, the CUDA: batch-1 Q8_0 mat-vec against F32 activations, without the q8_1 quantize #448 MUL_MAT cases 19/19.Inkling against the shipped b12858-mix
Reference = master's pins on b12858 (the same ggml tree as
b12858-mix-86f7dbf), built with the same flags as the candidates. wikitext-2-c 512, KLD against the reference's own logits, its A/A run as the floor.-b 512 -ub 3(banded path)--cpu-moe-ngl 12test-llama-archs -a inkling/inkling2, Mini UD-IQ1_S-c 128).scaleremoved (#464)dspark-Inkling-2-Mini-Q8_0,-ngl 99 -ngld 99, ABAB, 4 prompts x 256 tokens)-ngl 99test-backend-opsVulkan0 SOFT_MAX 241/241, MUL_MAT_ID 1387/1387, CONCAT 275/275, FILL 10/10DSpark t/s was measured on a shared GPU, so it only rules out a large slowdown.
-ngl 12is the one number that moves, by the same amount on both tags. Bisected: b12859 with this set is bit-identical to the reference, b12886 is not, and b12886 with only thesoftmax.cupart of ggml-org#33187 (019951ec44, b12878) reverted is bit-identical again. So it is the upstream short-row soft_max rounding on a partially offloaded Inkling 2 graph. PPL stays within 0.2% of the same build fully on the GPU, and the full GPU and--cpu-moepaths do not move. It is not patched here.On Vulkan, from b12881 the base carries ggml-org#29791, so the Inkling 2 experts with weight scales load on the Vulkan device again. On b12858-mix they fell back to the CPU (Vulkan0 5397 MiB instead of 16332, 90 graph splits).
#464 (from the earlier version of this PR)
On b12887, tiny NVFP4 qwen35 files: without #464 a GGUF with no
.scaletensors (or only some) fails to load withtensor 'blk.0.attn_qkv.weight' of type nvfp4 requires a weight scale. With #464 it loads with a single warning, and the logits are identical to the same file with explicit 1.0 scales (CPU, and CUDA T4 on one GPU and with-sm layeracross two). Files that already have scales give the same hashes with and without #464.Next upstream break (not in this PR)
Upstream master after b12927 (not yet tagged) refuses #378, #386 and #431 again, in
ggml/include/ggml-rpc.h(ggml-org#32532, RPC protocol 11.0.0),ggml/src/ggml-cuda/ggml-cuda.cu(ggml-org#33190, BF16 supports_op) andsrc/llama-arch.*/tests/test-llama-archs.cpp(ggml-org#33485, new arch). They need the same kind of merge once a tag carrying them is published.Not covered here
HIP, Metal, Windows, macOS and ARM run only in the nightly. Vulkan was run on NVIDIA only, not AMD hardware. DSpark speed comes from a shared GPU.