From 77078e80e5a9c00fc06539f27c0ae23259511ff4 Mon Sep 17 00:00:00 2001 From: Mariusz Woloszyn Date: Thu, 22 Jan 2026 00:55:55 +0100 Subject: [PATCH] convert : add Devstral-2 (Ministral3ForCausalLM) arch (#18972) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add Ministral3ForCausalLM architeture This adds support for newer architectres like Devstral-2 * removed blank line found after function decorator Co-authored-by: Sigbjørn Skjæret --------- Co-authored-by: Sigbjørn Skjæret --- convert_hf_to_gguf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/convert_hf_to_gguf.py b/convert_hf_to_gguf.py index ab015dd2c3..3fdfc5bf56 100755 --- a/convert_hf_to_gguf.py +++ b/convert_hf_to_gguf.py @@ -2979,7 +2979,10 @@ class Llama4VisionModel(MmprojModel): return [] -@ModelBase.register("Mistral3ForConditionalGeneration") +@ModelBase.register( + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", +) class Mistral3Model(LlamaModel): model_arch = gguf.MODEL_ARCH.MISTRAL3