Skip to content

pr-set : repin Inkling, DiffusionGemma, #251 and #264 for b12164, drop #287 - #351

Merged
danielhanchen merged 2 commits into
masterfrom
pinset/fix-b12144
Nov 6, 2026
Merged

danielhanchen merged 2 commits into
masterfrom
pinset/fix-b12144

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

The prebuilt is an aged upstream ggml-org b#### tag plus the pins in scripts/unsloth/pr-set.json, merged in order (git diff3, then additive_merge.py for pure add/add conflicts only). Since b12128-mix-2f23ac9, pins stopped merging onto the tags the next nightlies can pick, first at b12136 to b12144 and again at b12164. Each fix is a Fix merge conflicts merge of the oldest upstream commit or tag that carries the breaking change into the pin's own branch, keeping upstream verbatim and re-applying only the pin's intent.

Pins

pin upstream change that broke it fix new pin
#251 --moe-cache-mib auto ggml-org#31569 (b12136): common_get_device_memory_data_impl takes the skipped NextN layer count merge b12136; upstream's nsk argument added to the pin's calls, including one pin-only call in the MoE cache loop that merged cleanly but would not have compiled; the pin's add_extra_memory(.., mparams) and shared-model mparams kept 184123b
ggml-org#25731 Inkling ggml-org#31611 (b12140, conversion/base.py), ggml-org#31047 (b12144, MoE layout for MMQ/MMF in mmq.cuh), ggml-org#31683 and the new model structs in models.h (b12164) merge b12140 + b12144 (3258a1d): Inkling's wrong-shard check before upstream's _source_tensor_names recording; mmq.cuh is upstream's file with Inkling's int64 dst-offset widening re-applied, nothing else. Then merge b12164: upstream's models.h verbatim plus only the llama_model_inkling struct f4b5613
ggml-org#24423 DiffusionGemma new architectures and metadata keys next to the pin's in constants.py, llama-arch.cpp/.h and models.h (ggml-org#31589, ggml-org#31692, ggml-org#31698, ggml-org#31683, b12164) merge b12164; upstream's entries verbatim plus the pin's DiffusionGemma arch, tensors, diffusion.* keys and model struct 6745aa6
#264 CUDA MoE prompt kernels ggml-org#31047 (b12144) rewrote the MMQ/MMF MoE layout this pin also changed (18 hunks) merge ggml-org#31047; upstream's tiling taken as is (the pin adds 0 lines to mmq.cuh now), the pin's device expert sort, GET_ROWS kernel and dispatch kept on top 9fec7cb
#287 absorbed upstream by ggml-org#31679 (same MMVQ change) drop, with its unchecked entry in feature-checks.json

The Inkling and DiffusionGemma PR branches carry the new pins through merges with no content change, so each pin is a commit of its PR. #251 and #264 are retargeted to base/upstream-<sha9> branches, so each PR's diff is again only its own change.

Evidence

Merge loop + pin_contract.py + merge_checks.py (local sim of this exact pr-set.json): all 25 pins merge and are intact on b12144, b12167, b12170 (the aged base of the next scheduled nightly), b12171 and b12172 (the newest tag), and merge_checks is clean on each. Full CPU build of every target on b12167: 132 binaries, 0 errors.

GPU, same checks as llama_pinset.py verify --cuda on the merged tree (tree hash checked against the local merge before testing), with test-backend-ops also run on the plain tag:

tag GPU CUDA build test-chat MUL_MAT MUL_MAT_ID PAD GET_ROWS feature_matrix --gpu
b12144 (before the b12164 repins) T4 (sm75) ok ok 2654/2654 (plain 2517/2517) 1027/1027 (931/931) 37/37 (37/37) 349/349 (216/216) 16/16
b12167 (this PR's head) T4 (sm75) ok ok 2654/2654 (plain 2517/2517) 1027/1027 (931/931) 37/37 (37/37) 349/349 (216/216) 16/16

Neither side has a failure; the pin set runs more cases than the plain tag because pins add types and ops. cuda-moe-prompt (#264) matches the CPU reference in 1027/1027 MUL_MAT_ID and 349/349 GET_ROWS cases.

Numeric gates (CPU, -ngl 0):

  • Inkling, unsloth/Inkling-Small-GGUF UD-IQ1_S, wikitext-2 -c 512 --chunks 20: 3258a1d and f4b5613 both score byte-identical to the old pin 48f7e71 against itself across the whole result block (PPL 39.047836, mean KLD 0, same top-1 99.980%, which is also the A/A floor on CPU).
  • DiffusionGemma, unsloth/diffusiongemma-26B-A4B-it-GGUF Q4_K_M, llama-diffusion-cli -no-cnv -s 42 -n 256: 6745aa6 produces output identical to the old pin 40faaef (twice each).
  • CUDA: faster MoE prompt processing (compact MMQ tiling, device expert sort, GET_ROWS) #264, A100 test-backend-ops -b CUDA0, every arm with 0 failures and 0 new failures vs plain b12144: MUL_MAT_ID 984/984, MUL_MAT 2517/2517, GET_ROWS 340/340, for the new pin with the counting sort forced on (GGML_CUDA_MM_IDS_SORT=1) and off (=0), and for the old pin on its own base.
  • common : add --moe-cache-mib auto to size the MoE expert cache from the fit #251: test-arg-parser passes; the fit change has no numeric surface.

#264 timing (MUL_MAT_ID, top-8): on L4 the new pin is 0.97x to 1.02x of plain b12144 (one repeat), so it is performance neutral after the port. ggml-org#31047 already carries most of the original pin's prompt speedup: on T4 the original pin on its old base is 1.09x of plain b12144 (dense control 1.025x, 3 repeats). Whether to keep #264 in the set is a separate follow-up.

Not covered

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T08:33:39.258418Z 680b565 PR opened
🔒 Security Review ✅ Completed 2026-11-06T08:36:40.053083Z 680b565 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen danielhanchen changed the title pr-set : repin ggml-org#25731, #251 and #264 for b12144 pr-set : repin Inkling, DiffusionGemma, #251 and #264 for b12164, drop #287 Nov 6, 2026
@danielhanchen
danielhanchen merged commit c585b79 into master Nov 6, 2026
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.

1 participant