From: Csaba Kecskemeti Date: Thu, 6 Aug 2026 10:56:04 +0000 (-0700) Subject: convert : accept "ExaoneMoeForCausalLM" arch spelling (#26660) X-Git-Tag: upstream/0.0.10438~144 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=e700bfb37f435a6f64d0f9409aa879e34ba5cdeb;p=pkg%2Fggml%2Fsources%2Fllama.cpp convert : accept "ExaoneMoeForCausalLM" arch spelling (#26660) --- diff --git a/conversion/__init__.py b/conversion/__init__.py index 06c2c50ad..1f781a790 100644 --- a/conversion/__init__.py +++ b/conversion/__init__.py @@ -70,6 +70,7 @@ TEXT_MODEL_MAP: dict[str, str] = { "Exaone4ForCausalLM": "exaone", "ExaoneForCausalLM": "exaone", "ExaoneMoEForCausalLM": "exaone", + "ExaoneMoeForCausalLM": "exaone", "FalconForCausalLM": "falcon", "FalconH1ForCausalLM": "falcon_h1", "FalconMambaForCausalLM": "mamba", diff --git a/conversion/exaone.py b/conversion/exaone.py index bc4fb3f1b..1cd2244db 100644 --- a/conversion/exaone.py +++ b/conversion/exaone.py @@ -123,7 +123,9 @@ class Exaone4Model(TextModel): yield (self.format_tensor_name(gguf.MODEL_TENSOR.ROPE_FREQS), torch.tensor(rope_factors, dtype=torch.float32)) -@ModelBase.register("ExaoneMoEForCausalLM") +# note: transformers >= 5.1 renamed the class to "ExaoneMoeForCausalLM" (lowercase 'e'), +# so accept both spellings - LG AI have updated the configs of already-released models +@ModelBase.register("ExaoneMoEForCausalLM", "ExaoneMoeForCausalLM") class ExaoneMoEModel(Exaone4Model): model_arch = gguf.MODEL_ARCH.EXAONE_MOE