Skip to content

Commit

Permalink
remove redundant BOS token
Browse files Browse the repository at this point in the history
  • Loading branch information
eastriverlee committed Feb 2, 2024
1 parent 4babf23 commit 3988004
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/LLM/LLM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ public struct Template {

public static func llama(_ systemPrompt: String? = nil) -> Template {
return Template(
prefix: "<s>[INST] ",
prefix: "[INST] ",
system: ("<<SYS>>\n", "\n<</SYS>>\n\n"),
user: ("", " [/INST]"),
bot: (" ", "</s><s>[INST] "),
Expand All @@ -557,7 +557,6 @@ public struct Template {
}

public static let mistral = Template(
prefix: "<s>",
user: ("[INST] ", " [/INST]"),
bot: ("", "</s> "),
stopSequence: "</s>",
Expand Down Expand Up @@ -672,7 +671,7 @@ extension URL {
}
task.resume()
}
let _ = observation
_ = observation
try FileManager.default.moveItem(at: url, to: destination)
}
}
Expand Down

0 comments on commit 3988004

Please sign in to comment.