Add KORMo model#46427
Open
mjkmain wants to merge 1 commit into
Open
Conversation
KORMo (Korean Open Reasoning Model) is a fully open Korean-English LLM (https://huggingface.co/papers/2510.09426). It shares Llama's architecture; the only difference is that the two decoder-layer RMSNorms are named pre_attention_layernorm / pre_mlp_layernorm, so existing checkpoints load without any weight renaming. Added via modular (inherits from Llama).
Contributor
|
[For maintainers] Suggested jobs to run (before merge) run-slow: auto, kormo |
Member
|
Since the models are identical, can't we just make new checkpoints with the weights renamed? I don't think we need any extra architecture in |
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.
Add KORMo model
What does this PR do?
Adds KORMo (Korean Open Reasoning Model), a fully
open bilingual (Korean–English) LLM, to Transformers as a native model (
KORMoForCausalLM,model_type="kormo").KORMo is architecturally identical to Llama. The only difference is that the two
decoder-layer RMSNorms are named
pre_attention_layernorm/pre_mlp_layernorm(Llama usesinput_layernorm/post_attention_layernorm). The model is therefore implemented with themodularmechanism, inheriting from Llama and overriding just the decoder layer. Keeping theKORMo norm names means the existing public checkpoints load unchanged (no weight renaming
required), which matters because the KORMo repos publish many training-dynamics checkpoints.
Checkpoints: https://huggingface.co/KORMo-Team
Implementation notes
modular_kormo.pyinherits from Llama;configuration_kormo.py/modeling_kormo.pyaregenerated by the modular converter.
LlamaForCausalLMafterrenaming the two layernorm keys produces bit-identical logits in fp32 (max abs diff 0.0),
confirming KORMo == Llama up to the norm naming.
Tests
Local consistency / quality (CI parity):
Before submitting
make fix-repo/ style runAI assistance disclosure
This PR was scaffolded with AI assistance (modular file, registration, docs, tests). The
submitter has reviewed every changed line, understands the change end-to-end (KORMo is the
submitter's own model), and ran the tests above.
cc @Cyrilvallez