File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Libraries/MLXLMCommon/Registries Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 "
You can’t perform that action at this time.
0 commit comments