]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
convert : add missing return statement for GraniteMoeModel (#19202)
authorDaniel Bevenius <redacted>
Fri, 30 Jan 2026 10:12:53 +0000 (11:12 +0100)
committerGitHub <redacted>
Fri, 30 Jan 2026 10:12:53 +0000 (11:12 +0100)
This commit adds a missing return statement to the GraniteMoeModel class
to fix an issue in the model conversion process.

Resolves: https://github.com/ggml-org/llama.cpp/issues/19201

convert_hf_to_gguf.py

index a391717e3252ef8a91bf53ce67d2b7dc467d6ef5..eb43520f98c108d8b9e9fd024ba4ce29d4022aef 100755 (executable)
@@ -8806,6 +8806,7 @@ class GraniteMoeModel(GraniteModel):
             gate, up = data_torch.split(ffn_dim, dim=-2)
             yield from ModelBase.modify_tensors(self, gate, self.format_tensor_name(gguf.MODEL_TENSOR.FFN_GATE_EXP, bid), bid)
             yield from ModelBase.modify_tensors(self, up, self.format_tensor_name(gguf.MODEL_TENSOR.FFN_UP_EXP, bid), bid)
+            return
 
         has_experts = bool(self.hparams.get('num_local_experts'))