convert : add missing return statement for GraniteMoeModel (#19202)
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
This commit is contained in:
parent
83bcdf7217
commit
0562503154
1 changed files with 1 additions and 0 deletions
|
|
@ -8806,6 +8806,7 @@ class GraniteMoeModel(GraniteModel):
|
||||||
gate, up = data_torch.split(ffn_dim, dim=-2)
|
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, 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)
|
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'))
|
has_experts = bool(self.hparams.get('num_local_experts'))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue