Skip to content

Commit 8d50a4d

Browse files
committed
Clean up
1 parent e084bd1 commit 8d50a4d

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

Libraries/MLXLLM/LLMModelFactory.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,7 @@ public class LLMRegistry: AbstractModelRegistry, @unchecked Sendable {
128128
id: "mlx-community/Phi-3.5-MoE-instruct-4bit",
129129
defaultPrompt: "What is the gravity on Mars and the moon?",
130130
extraEOSTokens: ["<|end|>"]
131-
) {
132-
prompt in
133-
"<|user|>\n\(prompt)<|end|>\n<|assistant|>\n"
134-
}
131+
)
135132

136133
static public let gemma2bQuantized = ModelConfiguration(
137134
id: "mlx-community/quantized-gemma-2b-it",

Libraries/MLXLMCommon/ModelConfiguration.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public struct ModelConfiguration: Sendable {
2424
}
2525
}
2626

27-
/// pull the tokenizer from an alternate id
27+
/// Alternate repo ID to use for the tokenizer
2828
public let tokenizerId: String?
2929

3030
/// A reasonable default prompt for the model
@@ -72,7 +72,7 @@ public struct ModelConfiguration: Sendable {
7272
public func modelDirectory(hub: HubApi = HubApi()) -> URL {
7373
switch id {
7474
case .id(let id, _):
75-
// download the model weights and config
75+
// Download the model weights and config
7676
let repo = Hub.Repo(id: id)
7777
return hub.localRepoLocation(repo)
7878

0 commit comments

Comments
 (0)