convert : accept "ExaoneMoeForCausalLM" arch spelling - #26660
Merged
taronaeo merged 1 commit intoAug 6, 2026
Conversation
LG AI Research renamed the architecture from ExaoneMoEForCausalLM to ExaoneMoeForCausalLM when exaone_moe was upstreamed into Transformers v5, and updated the configs of already-released models accordingly (K-EXAONE-236B-A23B config.json, commit f7db87a, "Update README.md and config.json for Transformers v5"). Freshly downloaded K-EXAONE-236B-A23B and K-EXAONE-2.0-750B-A37B checkpoints therefore fail conversion with ERROR:hf-to-gguf:Model ExaoneMoeForCausalLM is not supported even though the architecture is implemented. The spelling comes from the checkpoint's own config.json, so it is unaffected by the installed Transformers version. Register both spellings so that older local copies keep working, as is already done for e.g. BitNet. Note this fixes the architecture lookup only. K-EXAONE-236B-A23B converts correctly with this change alone; K-EXAONE-2.0-750B-A37B additionally needs support for its two leading dense layers (declared via mlp_layer_types rather than first_k_dense_replace), its per-layer sliding windows of 0/128/4096, and clamped SwiGLU on layers 62-77. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This comment was marked as low quality.
This comment was marked as low quality.
CISC
approved these changes
Aug 6, 2026
taronaeo
approved these changes
Aug 6, 2026
miltos22
pushed a commit
to miltos22/llama.cpp-wackMall-merge-request
that referenced
this pull request
Aug 10, 2026
satindergrewal
pushed a commit
to satindergrewal/llama.cpp
that referenced
this pull request
Aug 11, 2026
satindergrewal
pushed a commit
to satindergrewal/llama.cpp
that referenced
this pull request
Aug 12, 2026
huaxel
pushed a commit
to huaxel/CachyLLama
that referenced
this pull request
Aug 12, 2026
brittlewis12
pushed a commit
to brittlewis12/llama.cpp
that referenced
this pull request
Aug 17, 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.
Overview
LG AI Research renamed the architecture from ExaoneMoEForCausalLM to ExaoneMoeForCausalLM when exaone_moe was upstreamed into Transformers v5, and updated the configs of already-released models accordingly (K-EXAONE-236B-A23B config.json, commit f7db87a, "Update README.md and config.json for Transformers v5").
Freshly downloaded K-EXAONE-236B-A23B and K-EXAONE-2.0-750B-A37B checkpoints therefore fail conversion with
ERROR:hf-to-gguf:Model ExaoneMoeForCausalLM is not supportedeven though the architecture is implemented. The spelling comes from the checkpoint's own config.json, so it is unaffected by the installed Transformers version.
Register both spellings so that older local copies keep working,
Additional information
Tested works, fresh GGUF
DevQuasar/LGAI-EXAONE.K-EXAONE-236B-A23B-GGUF
Requirements
YES
YES - Opus did the edit. I not even realized the slight change in the architecture name...