Skip to content

Commit 305bff6

Browse files
committed
feat: add suport for mistral3 models
Mistral released a new series of models with a new `mistral3` architecture. This commit updates the `GgufArchitectureType` so include `mistral3`. This was tested with Ministral-3-3B-Instruct-2512-Q4_K_M.gguf
1 parent e37835c commit 305bff6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/chatWrappers/utils/resolveChatWrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ export function resolveChatWrapper(
362362
return createSpecializedChatWrapper(Llama3_1ChatWrapper);
363363
else if (includesText(modelNames, ["llama 3", "llama-3", "llama3"]))
364364
return createSpecializedChatWrapper(Llama3ChatWrapper);
365-
else if (includesText(modelNames, ["Mistral", "Mistral Large", "Mistral Large Instruct", "Mistral-Large", "Codestral"]))
365+
else if (includesText(modelNames, ["Mistral", "Mistral Large", "Mistral Large Instruct", "Mistral-Large", "Mistral 3", "mistral3", "Ministral", "Codestral"]))
366366
return createSpecializedChatWrapper(MistralChatWrapper);
367367
else if (includesText(modelNames, ["Gemma", "Gemma 2"]))
368368
return createSpecializedChatWrapper(GemmaChatWrapper);

src/gguf/types/GgufMetadataTypes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export const enum GgufArchitectureType {
9999
grovemoe = "grovemoe",
100100
apertus = "apertus",
101101
cogvlm = "cogvlm",
102+
mistral3 = "mistral3",
102103
clip = "clip",
103104
unknown = "(unknown)"
104105
}

0 commit comments

Comments
 (0)