Skip to content

unsloth: repin Inkling onto b11556, qwen4exp shared MTP onto b11552, MoE cache auto threshold - #261

Merged
danielhanchen merged 2 commits into
masterfrom
repin-240-251
Oct 11, 2026
Merged

danielhanchen merged 2 commits into
masterfrom
repin-240-251

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Repins three pins so the nightly merges again on the tags it can pick tonight, and picks up the MoE cache threshold.

ggml-org#25731 (Inkling): onto b11556

ggml-org#29600 (Prism Bonsai 2) in b11556 added a Hadamard input transform at the top of build_lora_mm, next to the prec parameter Inkling adds to the same signature, so from b11556 on the old pin no longer merges. The Inkling branch now merges b11556 and keeps both: Inkling's prec argument and upstream's build_hadamard_input call. The branch is clean against ggml-org master.

#240 (qwen4exp shared MTP): onto b11552

ggml-org#30257 (spec: properly handle mtmd input for mtp) changed graph_mtp in src/models/qwen4exp.cpp, so from b11552 on the old pin no longer merges and the nightly fails. The branch now merges b11552 and keeps both sides: #240's fallback to the target model's embeddings and output head, and upstream's token vs embedding input. Its PR base moved to base/upstream-23b0202a1, so the PR diff is only its own change (+20/-5, 3 files).

#251 (--moe-cache-mib auto): resident threshold

auto now keeps the fitter's layer split instead of a MoE cache when that split would hold at least 80% of the expert weights in device memory. Above that, the cache cost about 20% decode on an R9700 32 GB report and the split also wins long prompts. The measurements behind 0.80 (Kaggle T4 sweep over the resident share on Qwen3.6-35B-A3B and gemma-4-26B-A4B) are on #251.

Verification

  • Merge loop, pin_contract.py and merge_checks.py: all 15 pins merge, all are intact and merge_checks is clean on b11555 and b11556 with this pin set, and on b11552 to b11555 with the previous Inkling pin.
  • On b11556 with this pin set: CPU gate build, feature_matrix.py (all 7 features on CPU, including Inkling and qwen4exp-mtp), full CUDA build and test-chat (including Inkling's parser cases) pass.
  • Full CUDA build of the merged tree on b11552 (previous Inkling pin): test-chat passes; test-backend-ops MUL_MAT 2483/2483, MUL_MAT_ID 940/940, PAD 37/37.
  • llama-fit-params --moe-cache-mib auto with a capped free-memory report on gemma-4-26B-A4B: 8192 MiB keeps the cache (4656 MiB); 10240 and 11264 MiB report 85% and 98% of the experts resident and keep the split.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 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-10-11T13:51:00.189209Z bf723d3 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 unsloth: repin qwen4exp shared MTP onto b11552 and MoE cache auto with the resident threshold unsloth: repin Inkling onto b11556, qwen4exp shared MTP onto b11552, MoE cache auto threshold Oct 11, 2026
@danielhanchen
danielhanchen merged commit 40bfd1f into master Oct 11, 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