Add SmolLM (#95)

This commit is contained in:
Anthony DePasquale
2024-07-24 00:42:52 +02:00
committed by GitHub
parent 2a2931ba8d
commit a2e8d7e469
2 changed files with 20 additions and 3 deletions

View File

@@ -110,6 +110,13 @@ public struct ModelConfiguration {
}
extension ModelConfiguration {
public static let smolLM_135M_4bit = ModelConfiguration(
id: "mlx-community/SmolLM-135M-Instruct-4bit",
defaultPrompt: "Tell me about the history of Spain."
) {
prompt in
"<|im_start|>user\n\(prompt)<|im_end|>\n<|im_start|>assistant\n"
}
public static let mistral7B4bit = ModelConfiguration(
id: "mlx-community/Mistral-7B-v0.1-hf-4bit-mlx",