Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mzbac committed Oct 13, 2024
1 parent 3021ed0 commit 1a3d163
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
targets: ["FluxSwift"])
],
dependencies: [
.package(url: "https://github.com/ml-explore/mlx-swift", from: "0.16.0"),
.package(url: "https://github.com/ml-explore/mlx-swift", from: "0.18.0"),
.package(url: "https://github.com/huggingface/swift-transformers", from: "0.1.13"),
],
targets: [
Expand Down
2 changes: 1 addition & 1 deletion Sources/FluxConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func fuseLoraWeights(
let transformerWeight = fusedWeights[weightKey]
{
let loraScale: Float = 1.0
let loraFused = MLX.matmul(loraB, loraA)
let loraFused = matmul(loraB, loraA)
fusedWeights[weightKey] = transformerWeight + loraScale * loraFused
}
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/MultiModalDiffusionTransformerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class MultiModalDiffusionTransformerTests: XCTestCase {
let pooledPromptEmbeds = MLXRandom.normal([1, config.pooledProjectionDim])
let hiddenStates = MLXRandom.normal([1, config.jointAttentionDim, config.inChannels])

let evaluateParameters = EvaluateParameters()
let evaluateParameters = EvaluateParameters(width: 1024, height: 1024, shiftSigmas: true)

let output = transformer(
t: t,
Expand Down

0 comments on commit 1a3d163

Please sign in to comment.