Skip to content

Commit e37dec6

Browse files
committed
fix Mistral3Model
1 parent 0822e15 commit e37dec6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

convert_hf_to_gguf.py

-8
Original file line numberDiff line numberDiff line change
@@ -1897,14 +1897,6 @@ def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None):
18971897
class Mistral3Model(LlamaModel):
18981898
model_arch = gguf.MODEL_ARCH.LLAMA
18991899

1900-
# we need to merge the text_config into the root level of hparams
1901-
def __init__(self, *args, **kwargs):
1902-
hparams = kwargs["hparams"] if "hparams" in kwargs else ModelBase.load_hparams(args[0])
1903-
if "text_config" in hparams:
1904-
hparams = {**hparams, **hparams["text_config"]}
1905-
kwargs["hparams"] = hparams
1906-
super().__init__(*args, **kwargs)
1907-
19081900
def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None):
19091901
name = name.replace("language_model.", "")
19101902
if "multi_modal_projector" in name or "vision_tower" in name:

0 commit comments

Comments
 (0)