Skip to content

Commit 2ff4d5d

Browse files
committed
Use cuda branch
1 parent 6b01573 commit 2ff4d5d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Libraries/MLXLMCommon/Registries/ModelTypeRegistry.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ public actor ModelTypeRegistry {
1010
}
1111

1212
/// Creates a registry with given creators.
13-
public init(creators: [String: (Data) throws -> any LanguageModel]) {
13+
public init(creators: [String: @Sendable (Data) throws -> any LanguageModel]) {
1414
self.creators = creators
1515
}
1616

17-
private var creators: [String: (Data) throws -> any LanguageModel]
17+
private var creators: [String: @Sendable (Data) throws -> any LanguageModel]
1818

1919
/// Add a new model to the type registry.
2020
public func registerModelType(
21-
_ type: String, creator: @escaping (Data) throws -> any LanguageModel
21+
_ type: String, creator: @escaping @Sendable (Data) throws -> any LanguageModel
2222
) {
2323
creators[type] = creator
2424
}

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ let package = Package(
2626
targets: ["MLXEmbedders"]),
2727
],
2828
dependencies: [
29-
.package(url: "https://github.com/Joannis/mlx-swift.git", branch: "jo/mlxfast-linux"),
29+
.package(url: "https://github.com/Joannis/mlx-swift.git", branch: "jo/linux-cuda"),
3030
.package(
3131
url: "https://github.com/Joannis/swift-transformers",
3232
branch: "jo/localized-comments"

0 commit comments

Comments
 (0)