Commit 2a667032d for llama.cpp

commit 2a667032dc788c3a071d538e0b572e45a3f12731
Author: aiqubits <aiqubits@hotmail.com>
Date:   Fri Oct 16 21:17:30 2026 +0800

    convert : respect Mistral format for DeepseekV2Model (#30669)

    Use the instance's is_mistral_format flag when DeepseekV2Model reloads
    configuration, allowing Mistral MoE checkpoints to read params.json.

    Fixes #29899

    Signed-off-by: aiqubits <aiqubits@hotmail.com>

diff --git a/conversion/deepseek.py b/conversion/deepseek.py
index 817eb7612..946de5347 100644
--- a/conversion/deepseek.py
+++ b/conversion/deepseek.py
@@ -243,7 +243,7 @@ class DeepseekV2Model(TextModel):

     def __init__(self, *args, **kwargs):
         super().__init__(*args, **kwargs)
-        hparams: dict = ModelBase.load_hparams(self.dir_model, is_mistral_format=False)
+        hparams: dict = ModelBase.load_hparams(self.dir_model, is_mistral_format=self.is_mistral_format)
         self.origin_hf_arch = hparams.get('architectures', [None])[0]

         # special handling for Deepseek OCR