Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tests/MLXLMTests/ContinuationAssertions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ struct ContinuationAssertions {
model.prepare(suffix, cache: cacheW, state: s1, prefill: PrefillParameters()))

XCTAssertLessThanOrEqual(
maxAbsDiff(logitsW, logitsF), 1e-3,
maxAbsDiff(logitsW, logitsF), MatmulPrecision.splitTolerance,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A new test on main that needs to be TF32 aware

"split media suffix continuation diverged from full prefill",
file: file, line: line)
}
Expand Down
3 changes: 2 additions & 1 deletion Tests/MLXLMTests/SpeculativeRoundRewindTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import Foundation
import MLX
import MLXNN
import MLXScriptedLM
import Testing

@testable import MLXLMCommon
Expand Down Expand Up @@ -188,7 +189,7 @@ struct SpeculativeRoundRewindTests {

private func plainTokens(model: any LanguageModel, maxTokens: Int) async throws -> [Int] {
let processor = TestInputProcessor(
tokenizer: TestTokenizer(vocabularySize: vocabularySize),
tokenizer: PseudoWordTokenizer(vocabularySize: vocabularySize),
Comment on lines -191 to +192

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A new use of TestTokenizer -- this was replaced in #680

configuration: ModelConfiguration(id: "round-rewind-test"),
messageGenerator: DefaultMessageGenerator())
let context = ModelContext(
Expand Down
Loading