Add Gemma 2 (#88)
This commit is contained in:
committed by
GitHub
parent
7957378077
commit
0c08f3a7e4
@@ -157,6 +157,17 @@ extension ModelConfiguration {
|
||||
"<start_of_turn>user \(prompt)<end_of_turn><start_of_turn>model"
|
||||
}
|
||||
|
||||
public static let gemma_2_9b_it_4bit = ModelConfiguration(
|
||||
id: "mlx-community/gemma-2-9b-it-4bit",
|
||||
overrideTokenizer: "PreTrainedTokenizer",
|
||||
|
||||
// https://www.promptingguide.ai/models/gemma
|
||||
defaultPrompt: "What is the difference between lettuce and cabbage?"
|
||||
|
||||
) { prompt in
|
||||
"<start_of_turn>user \(prompt)<end_of_turn><start_of_turn>model"
|
||||
}
|
||||
|
||||
public static let qwen205b4bit = ModelConfiguration(
|
||||
id: "mlx-community/Qwen1.5-0.5B-Chat-4bit",
|
||||
overrideTokenizer: "PreTrainedTokenizer",
|
||||
@@ -200,6 +211,7 @@ extension ModelConfiguration {
|
||||
phi4bit,
|
||||
phi34bit,
|
||||
gemma2bQuantized,
|
||||
gemma_2_9b_it_4bit,
|
||||
qwen205b4bit,
|
||||
openelm270m4bit,
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user