Repository navigation
unsloth: retire the qwen4exp carry chain now that upstream carries it - #139
Merged
Merged
Conversation
This was referenced Aug 28, 2026
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.
Retires the qwen4exp carry chain.
ggml-org#27742(Qwen3.8-Flash-Next) was squash-merged upstream on 2026-08-27 as6c84c7d5and is in every base tag fromb10660on, so the architecture now arrives from the base and nothing needs to carry it.Final list, order unchanged:
Why the nightly broke
Run 33141605830 failed in
Resolve tag, before a single build job started:It failed at
#108, not at the qwen carry, and that is the part worth recording. Upstream's qwen4exp declaresfilter_idxandneeds_mem_idximmediately aboveif (arch == LLM_ARCH_FALCON_H1) {, and Inkling edits that sameifline to addLLM_ARCH_INKLING.additive_merge.pyrefuses, correctly: the merge base is not empty, so a side edited shared text.#132had been hiding that. Its carry-only commitf52a4c39moved thefilter_idxdeclaration off the Inkling anchor. Dropping the carry gives up the accommodation, so Inkling has to face upstream's arrangement, which is what#138does.The three changes
#108to#138.#138isggml-org#25731's head merged ontob10665with that one conflict resolved as the union: upstream's two declarations kept, and the condition widened toFALCON_H1 || INKLING.needs_mem_idxis true only forLLM_ARCH_QWEN4EXP, so Inkling still lands on the plainllama_memory_hybridbranch andfilter_idxstays null there.#108's three carry-only fixes are all in the upstream branch now, so#138is a plain merge with nothing extra.#132deleted. Upstream took27742as a squash, so the pin was never going to become a no-op. This is verbatim the casepr-set.json's own_docdescribes.#133to a directggml-org#27754pin.#133was composed on top of#132's head, so it carried the entire qwen4exp diff and conflicted in 16 paths against a base that already has the squash, 9 of them pure duplication. Deleting#132alone would have changed nothing, because the tree is byte-identical either way.27754's own head is a direct descendant of the base and needs no carry at all, which is the exit condition both carry PRs wrote for themselves.Two commits were pushed to
27754to make that work:b5517b15adds the missingglm5nextfixture totests/test-llama-archs.cpp. The PR added an architecture whose loader requiresattention.key_length_mla,attention.indexer_kpool, the hyper-connection trio and a per-layerhead_count_kvarray, but never added a fixture, sotest-generate-modelsfailed on 15 CI jobs withkey not found in model: glm5next.attention.key_length_mla.f30bed88movesllama_kv_cache_context::get_n_stream()andget_kv()insrc/llama-kv-cache.cppfrom just afterget_n_kv()to just aftertype_v(). Inkling addsget_n_kv_pos_contiguous()at the same anchor, and although both sides are pure additions,additive_merge.pyrefuses them because the two added blocks share a bare}line and its shared-line rule reads that as one change made twice. Separating the anchors makes git merge both without help, which is better than loosening a resolver rule that exists to stop real duplication.Verification
Replayed against
b10665, the newest tag at time of writing:additive_merge.pyresolution: the knowntools/mtmd/CMakeLists.txtadd/add betweenmodels/kimik3.cppandmodels/inkling.cpp6c84c7d5is an ancestor, andf52a4c39(old qwen pin),4034bb06(old GLM pin) and2c5b0007(old Inkling pin) are all absent, so no carry lineage survivesmerge_checks.py --root .clean, 23 python and 187 c++ files, exit 0-DGGML_RPC=ON -DLLAMA_BUILD_EXAMPLES=ON -DLLAMA_BUILD_TOOLS=ON -DLLAMA_BUILD_SERVER=ON -DLLAMA_BUILD_TESTS=ONtest-llama-archs -s 1exits 0, zero FAIL rows, withqwen4expOK (0.00e+00),glm5nextOK (0.00e+00),deepseek4OK (0.00e+00),kimi-k3OK (0.00e+00),inklingSKIP per its own skip entryrefs/pins/<sha>Not done:
test-backend-opsand a real weights run.Aging
27754's head sits two upstream commits pastb10663, namelyb10664(e70802a0) andb10665(ca3d5a3e), and#138is built onb10665. Both are released tags and will be well inside the aging window by the time the schedule fires, so I did not add revert commits the way#132did for--n-cpu-ffn. A revert-based carry also goes actively wrong the moment the base advances past what it reverts, which is the failure mode this change is trying to get out of.Follow-ups, not in this PR
#107is closed-unmerged, upstream declined it, and it is still pinned as required, so the resolve log warns every run and the nightly ships declined code. Worth pruning deliberately.#110, the preflight compile gate, would have caught theglm5nextfixture gap before 03:00 rather than in the nightly. Nothing onpull_requestcompiles a carry today and every nightly leg setsLLAMA_BUILD_TESTS=OFF.ggml-org#25731is stillCONFLICTINGupstream. The same resolution#138carries is open against it as Merge master into add-inkling and resolve the llama-model.cpp conflict danielhanchen/llama.cpp#3; once that merges,#138can be dropped for a direct25731pin.