Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
eastriverlee committed Jun 8, 2024
1 parent 3a84955 commit 53ae135
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/LLMTests/LLMTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ final class LLMTests: XCTestCase {
func testLLaMaPreProcessorWithoutSystemMessage() throws {
let template = Template.llama()
let expected = """
<s>[INST] \(userPrompt) [/INST]
[INST] \(userPrompt) [/INST]
"""
let output = template.preprocess(userPrompt, [])
#assert(expected == output)
Expand All @@ -113,7 +113,7 @@ final class LLMTests: XCTestCase {
func testLLaMaPreProcessorWithoutHistory() throws {
let template = Template.llama(systemPrompt)
let expected = """
<s>[INST] <<SYS>>
[INST] <<SYS>>
\(systemPrompt)
<</SYS>>
Expand All @@ -126,7 +126,7 @@ final class LLMTests: XCTestCase {
func testLLaMaPreProcessorWithHistory() throws {
let template = Template.llama(systemPrompt)
let expected = """
<s>[INST] <<SYS>>
[INST] <<SYS>>
\(systemPrompt)
<</SYS>>
Expand All @@ -139,7 +139,7 @@ final class LLMTests: XCTestCase {
func testMistralPreProcessorWithoutHistory() throws {
let template = Template.mistral
let expected = """
<s>[INST] \(userPrompt) [/INST]
[INST] \(userPrompt) [/INST]
"""
let output = template.preprocess(userPrompt, [])
#assert(expected == output)
Expand All @@ -148,7 +148,7 @@ final class LLMTests: XCTestCase {
func testMistralPreProcessorWithHistory() throws {
let template = Template.mistral
let expected = """
<s>[INST] \(history[0].content) [/INST]\(history[1].content)</s> [INST] \(userPrompt) [/INST]
[INST] \(history[0].content) [/INST]\(history[1].content)</s> [INST] \(userPrompt) [/INST]
"""
let output = template.preprocess(userPrompt, history)
#assert(expected == output)
Expand Down

0 comments on commit 53ae135

Please sign in to comment.