The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build mlx-libraries, reference main (2cceb8), with Swift 5.10 for macOS (SPM) on 25 Jun 2025 01:41:00 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64

Build Log

            let model = try await loader(factory)
                                  ^~~~~~
[428/446] Compiling MLXLMCommon Gemma.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:30: error: consecutive declarations on a line must be separated by ';'
    ) async throws -> sending ModelContext
                             ^
                             ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:31: error: expected declaration
    ) async throws -> sending ModelContext
                              ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:87:17: note: in declaration of 'ModelFactory'
public protocol ModelFactory: Sendable {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:30: error: consecutive declarations on a line must be separated by ';'
    ) async throws -> sending ModelContext {
                             ^
                             ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:31: error: expected declaration
    ) async throws -> sending ModelContext {
                              ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:129:1: note: in extension of 'ModelFactory'
extension ModelFactory {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:23: error: cannot find type 'sending' in scope
    ) async throws -> sending ModelContext
                      ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: warning: var 'defaultHubApi' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: isolate 'defaultHubApi' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:23: error: cannot find type 'sending' in scope
    ) async throws -> sending ModelContext {
                      ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:141:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
        hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                      ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:149:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
        hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                      ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:157:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
        hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                      ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:179:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:32: error: cannot find 'hub' in scope
        try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
                               ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:52: error: cannot find 'configuration' in scope
        try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
                                                   ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:84: error: cannot find 'progressHandler' in scope
        try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
                                                                                   ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:61: error: cannot find type 'sending' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                            ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:88: error: cannot find type 'sending' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                       ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:198:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:18: error: cannot find 'hub' in scope
            hub: hub, configuration: configuration, progressHandler: progressHandler)
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:38: error: cannot find 'configuration' in scope
            hub: hub, configuration: configuration, progressHandler: progressHandler)
                                     ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:70: error: cannot find 'progressHandler' in scope
            hub: hub, configuration: configuration, progressHandler: progressHandler)
                                                                     ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
                                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
    public init(context: ModelContext) {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:219:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, id: String, revision: String = "main",
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:18: error: cannot find 'hub' in scope
            hub: hub, configuration: .init(id: id, revision: revision),
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:62: error: cannot find 'revision' in scope
            hub: hub, configuration: .init(id: id, revision: revision),
                                                             ^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:225:30: error: cannot find 'progressHandler' in scope
            progressHandler: progressHandler)
                             ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:39: error: cannot infer contextual base in reference to member 'init'
            hub: hub, configuration: .init(id: id, revision: revision),
                                     ~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:240:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, id: String, revision: String = "main",
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:18: error: cannot find 'hub' in scope
            hub: hub, configuration: .init(id: id, revision: revision),
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:62: error: cannot find 'revision' in scope
            hub: hub, configuration: .init(id: id, revision: revision),
                                                             ^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:246:30: error: cannot find 'progressHandler' in scope
            progressHandler: progressHandler)
                             ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
                                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
    public init(context: ModelContext) {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:39: error: cannot infer contextual base in reference to member 'init'
            hub: hub, configuration: .init(id: id, revision: revision),
                                     ~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:262:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, directory: URL,
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:18: error: cannot find 'hub' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:55: error: cannot find 'directory' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                                      ^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:84: error: cannot find 'progressHandler' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                                                                   ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:39: error: cannot infer contextual base in reference to member 'init'
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                     ~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:282:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, directory: URL,
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:18: error: cannot find 'hub' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:55: error: cannot find 'directory' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                                      ^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:84: error: cannot find 'progressHandler' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                                                                   ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
                                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
    public init(context: ModelContext) {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:39: error: cannot infer contextual base in reference to member 'init'
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                     ~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: cannot find 'R' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:296:35: error: cannot find 'loader' in scope
            let model = try await loader(factory)
                                  ^~~~~~
[429/446] Compiling MLXLMCommon Module+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:30: error: consecutive declarations on a line must be separated by ';'
    ) async throws -> sending ModelContext
                             ^
                             ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:31: error: expected declaration
    ) async throws -> sending ModelContext
                              ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:87:17: note: in declaration of 'ModelFactory'
public protocol ModelFactory: Sendable {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:30: error: consecutive declarations on a line must be separated by ';'
    ) async throws -> sending ModelContext {
                             ^
                             ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:31: error: expected declaration
    ) async throws -> sending ModelContext {
                              ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:129:1: note: in extension of 'ModelFactory'
extension ModelFactory {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:23: error: cannot find type 'sending' in scope
    ) async throws -> sending ModelContext
                      ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: warning: var 'defaultHubApi' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: isolate 'defaultHubApi' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:23: error: cannot find type 'sending' in scope
    ) async throws -> sending ModelContext {
                      ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:141:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
        hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                      ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:149:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
        hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                      ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:157:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
        hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                      ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:179:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:32: error: cannot find 'hub' in scope
        try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
                               ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:52: error: cannot find 'configuration' in scope
        try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
                                                   ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:84: error: cannot find 'progressHandler' in scope
        try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
                                                                                   ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:61: error: cannot find type 'sending' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                            ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:88: error: cannot find type 'sending' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                       ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:198:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:18: error: cannot find 'hub' in scope
            hub: hub, configuration: configuration, progressHandler: progressHandler)
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:38: error: cannot find 'configuration' in scope
            hub: hub, configuration: configuration, progressHandler: progressHandler)
                                     ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:70: error: cannot find 'progressHandler' in scope
            hub: hub, configuration: configuration, progressHandler: progressHandler)
                                                                     ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
                                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
    public init(context: ModelContext) {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:219:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, id: String, revision: String = "main",
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:18: error: cannot find 'hub' in scope
            hub: hub, configuration: .init(id: id, revision: revision),
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:62: error: cannot find 'revision' in scope
            hub: hub, configuration: .init(id: id, revision: revision),
                                                             ^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:225:30: error: cannot find 'progressHandler' in scope
            progressHandler: progressHandler)
                             ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:39: error: cannot infer contextual base in reference to member 'init'
            hub: hub, configuration: .init(id: id, revision: revision),
                                     ~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:240:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, id: String, revision: String = "main",
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:18: error: cannot find 'hub' in scope
            hub: hub, configuration: .init(id: id, revision: revision),
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:62: error: cannot find 'revision' in scope
            hub: hub, configuration: .init(id: id, revision: revision),
                                                             ^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:246:30: error: cannot find 'progressHandler' in scope
            progressHandler: progressHandler)
                             ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
                                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
    public init(context: ModelContext) {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:39: error: cannot infer contextual base in reference to member 'init'
            hub: hub, configuration: .init(id: id, revision: revision),
                                     ~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:262:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, directory: URL,
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:18: error: cannot find 'hub' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:55: error: cannot find 'directory' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                                      ^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:84: error: cannot find 'progressHandler' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                                                                   ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:39: error: cannot infer contextual base in reference to member 'init'
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                     ~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:282:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, directory: URL,
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:18: error: cannot find 'hub' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:55: error: cannot find 'directory' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                                      ^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:84: error: cannot find 'progressHandler' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                                                                   ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
                                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
    public init(context: ModelContext) {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:39: error: cannot infer contextual base in reference to member 'init'
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                     ~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: cannot find 'R' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:296:35: error: cannot find 'loader' in scope
            let model = try await loader(factory)
                                  ^~~~~~
[430/446] Compiling MLXLMCommon DoRA+Layers.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:72:16: warning: stored property 'configuration' of 'Sendable'-conforming struct 'LoRAContainer' has non-sendable type 'LoRAConfiguration'
    public let configuration: LoRAConfiguration
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:27:15: note: consider making struct 'LoRAConfiguration' conform to the 'Sendable' protocol
public struct LoRAConfiguration: Codable {
              ^
                                        , Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:74:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'LoRAContainer' has non-sendable type 'ModuleParameters' (aka 'NestedDictionary<String, MLXArray>')
    public let parameters: ModuleParameters
               ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:9:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:95:9: warning: no calls to throwing functions occur within 'try' expression
        try model.freeze()
        ^
[431/446] Compiling MLXLMCommon LoRA+Layers.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:72:16: warning: stored property 'configuration' of 'Sendable'-conforming struct 'LoRAContainer' has non-sendable type 'LoRAConfiguration'
    public let configuration: LoRAConfiguration
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:27:15: note: consider making struct 'LoRAConfiguration' conform to the 'Sendable' protocol
public struct LoRAConfiguration: Codable {
              ^
                                        , Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:74:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'LoRAContainer' has non-sendable type 'ModuleParameters' (aka 'NestedDictionary<String, MLXArray>')
    public let parameters: ModuleParameters
               ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:9:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:95:9: warning: no calls to throwing functions occur within 'try' expression
        try model.freeze()
        ^
[432/446] Compiling MLXLMCommon LoRAContainer.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:72:16: warning: stored property 'configuration' of 'Sendable'-conforming struct 'LoRAContainer' has non-sendable type 'LoRAConfiguration'
    public let configuration: LoRAConfiguration
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:27:15: note: consider making struct 'LoRAConfiguration' conform to the 'Sendable' protocol
public struct LoRAConfiguration: Codable {
              ^
                                        , Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:74:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'LoRAContainer' has non-sendable type 'ModuleParameters' (aka 'NestedDictionary<String, MLXArray>')
    public let parameters: ModuleParameters
               ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:9:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:95:9: warning: no calls to throwing functions occur within 'try' expression
        try model.freeze()
        ^
[433/446] Compiling MLXLMCommon LoRAModel.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:72:16: warning: stored property 'configuration' of 'Sendable'-conforming struct 'LoRAContainer' has non-sendable type 'LoRAConfiguration'
    public let configuration: LoRAConfiguration
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:27:15: note: consider making struct 'LoRAConfiguration' conform to the 'Sendable' protocol
public struct LoRAConfiguration: Codable {
              ^
                                        , Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:74:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'LoRAContainer' has non-sendable type 'ModuleParameters' (aka 'NestedDictionary<String, MLXArray>')
    public let parameters: ModuleParameters
               ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:9:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:95:9: warning: no calls to throwing functions occur within 'try' expression
        try model.freeze()
        ^
[434/446] Compiling MLXLMCommon Tool.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/Tool.swift:14:16: warning: stored property 'schema' of 'Sendable'-conforming generic struct 'Tool' has non-sendable type 'ToolSpec' (aka 'Dictionary<String, Any>')
    public let schema: ToolSpec
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/Tool.swift:17:16: warning: stored property 'handler' of 'Sendable'-conforming generic struct 'Tool' has non-sendable type '(Input) async throws -> Output'
    public let handler: (Input) async throws -> Output
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/Tool.swift:17:16: note: a function type must be marked '@Sendable' to conform to 'Sendable'
    public let handler: (Input) async throws -> Output
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/ToolCallProcessor.swift:24:24: warning: static property 'toolCallRegex' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6
    private static let toolCallRegex = #/<tool_call>\s*(\{.*?\})\s*<\/tool_call>/#
                       ^
[435/446] Compiling MLXLMCommon ToolCall.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/Tool.swift:14:16: warning: stored property 'schema' of 'Sendable'-conforming generic struct 'Tool' has non-sendable type 'ToolSpec' (aka 'Dictionary<String, Any>')
    public let schema: ToolSpec
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/Tool.swift:17:16: warning: stored property 'handler' of 'Sendable'-conforming generic struct 'Tool' has non-sendable type '(Input) async throws -> Output'
    public let handler: (Input) async throws -> Output
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/Tool.swift:17:16: note: a function type must be marked '@Sendable' to conform to 'Sendable'
    public let handler: (Input) async throws -> Output
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/ToolCallProcessor.swift:24:24: warning: static property 'toolCallRegex' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6
    private static let toolCallRegex = #/<tool_call>\s*(\{.*?\})\s*<\/tool_call>/#
                       ^
[436/446] Compiling MLXLMCommon ToolCallProcessor.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/Tool.swift:14:16: warning: stored property 'schema' of 'Sendable'-conforming generic struct 'Tool' has non-sendable type 'ToolSpec' (aka 'Dictionary<String, Any>')
    public let schema: ToolSpec
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/Tool.swift:17:16: warning: stored property 'handler' of 'Sendable'-conforming generic struct 'Tool' has non-sendable type '(Input) async throws -> Output'
    public let handler: (Input) async throws -> Output
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/Tool.swift:17:16: note: a function type must be marked '@Sendable' to conform to 'Sendable'
    public let handler: (Input) async throws -> Output
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/ToolCallProcessor.swift:24:24: warning: static property 'toolCallRegex' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6
    private static let toolCallRegex = #/<tool_call>\s*(\{.*?\})\s*<\/tool_call>/#
                       ^
[437/446] Compiling MLXLMCommon Encodable+toolResult.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/KVCache.swift:757:17: warning: initialization of immutable value 'expectedStep' was never used; consider replacing with assignment to '_' or removing it
            let expectedStep = Int(newValue[0]) ?? 256
            ~~~~^~~~~~~~~~~~
            _
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/KVCache.swift:758:17: warning: initialization of immutable value 'expectedGroupSize' was never used; consider replacing with assignment to '_' or removing it
            let expectedGroupSize = Int(newValue[2]) ?? 64
            ~~~~^~~~~~~~~~~~~~~~~
            _
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/KVCache.swift:759:17: warning: initialization of immutable value 'expectedBits' was never used; consider replacing with assignment to '_' or removing it
            let expectedBits = Int(newValue[3]) ?? 8
            ~~~~^~~~~~~~~~~~
            _
[438/446] Compiling MLXLMCommon KVCache.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/KVCache.swift:757:17: warning: initialization of immutable value 'expectedStep' was never used; consider replacing with assignment to '_' or removing it
            let expectedStep = Int(newValue[0]) ?? 256
            ~~~~^~~~~~~~~~~~
            _
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/KVCache.swift:758:17: warning: initialization of immutable value 'expectedGroupSize' was never used; consider replacing with assignment to '_' or removing it
            let expectedGroupSize = Int(newValue[2]) ?? 64
            ~~~~^~~~~~~~~~~~~~~~~
            _
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/KVCache.swift:759:17: warning: initialization of immutable value 'expectedBits' was never used; consider replacing with assignment to '_' or removing it
            let expectedBits = Int(newValue[3]) ?? 8
            ~~~~^~~~~~~~~~~~
            _
[439/446] Compiling MLXLMCommon LanguageModel.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/KVCache.swift:757:17: warning: initialization of immutable value 'expectedStep' was never used; consider replacing with assignment to '_' or removing it
            let expectedStep = Int(newValue[0]) ?? 256
            ~~~~^~~~~~~~~~~~
            _
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/KVCache.swift:758:17: warning: initialization of immutable value 'expectedGroupSize' was never used; consider replacing with assignment to '_' or removing it
            let expectedGroupSize = Int(newValue[2]) ?? 64
            ~~~~^~~~~~~~~~~~~~~~~
            _
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/KVCache.swift:759:17: warning: initialization of immutable value 'expectedBits' was never used; consider replacing with assignment to '_' or removing it
            let expectedBits = Int(newValue[3]) ?? 8
            ~~~~^~~~~~~~~~~~
            _
[440/446] Compiling MLXLMCommon BaseConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:136:9: warning: stored property 'temp' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type 'MLXArray'
    let temp: MLXArray
        ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:4:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:137:9: warning: stored property 'topP' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type 'MLXArray'
    let topP: MLXArray
        ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:144:17: warning: stored property 'compiledTopPSampling' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type '(MLXArray, MLXArray, MLXArray) -> MLXArray'
    private let compiledTopPSampling: (MLXArray, MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:144:17: note: a function type must be marked '@Sendable' to conform to 'Sendable'
    private let compiledTopPSampling: (MLXArray, MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:175:9: warning: stored property 'temp' of 'Sendable'-conforming struct 'CategoricalSampler' has non-sendable type 'MLXArray'
    let temp: MLXArray
        ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:181:17: warning: stored property 'compiledCategorical' of 'Sendable'-conforming struct 'CategoricalSampler' has non-sendable type '(MLXArray, MLXArray) -> MLXArray'
    private let compiledCategorical: (MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:181:17: note: a function type must be marked '@Sendable' to conform to 'Sendable'
    private let compiledCategorical: (MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:468:16: warning: stored property 'inputText' of 'Sendable'-conforming struct 'GenerateResult' has non-sendable type 'LMInput.Text'
    public let inputText: LMInput.Text
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/LanguageModel.swift:43:19: note: consider making struct 'Text' conform to the 'Sendable' protocol
    public struct Text {
                  ^
                       : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:609:47: warning: left side of nil coalescing operator '??' has non-optional type 'Set<String>', so the right side is never used
        (context.configuration.extraEOSTokens ?? [])
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:696:47: warning: left side of nil coalescing operator '??' has non-optional type 'Set<String>', so the right side is never used
        (context.configuration.extraEOSTokens ?? [])
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:800:17: warning: capture of 'context' with non-sendable type 'ModelContext' in a `@Sendable` closure
                context.configuration.extraEOSTokens
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
              ^
                           : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:809:26: warning: capture of 'iterator' with non-sendable type 'TokenIterator' in a `@Sendable` closure
            for token in iterator {
                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:269:15: note: consider making struct 'TokenIterator' conform to the 'Sendable' protocol
public struct TokenIterator: Sequence, IteratorProtocol {
              ^
                                                       , Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:847:35: warning: capture of 'input' with non-sendable type 'LMInput' in a `@Sendable` closure
                promptTokenCount: input.text.tokens.size,
                                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/LanguageModel.swift:37:15: note: consider making struct 'LMInput' conform to the 'Sendable' protocol
public struct LMInput {
              ^
                      : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:802:25: warning: capture of 'context' with non-sendable type 'ModelContext' in a `@Sendable` closure
                        context.tokenizer.convertTokenToId($0)
                        ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
              ^
                           : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:821:33: warning: implicit capture of 'context' requires that 'ModelContext' conforms to `Sendable`
                    || token == context.tokenizer.eosTokenId
                                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
              ^
                           : Sendable
[441/446] Compiling MLXLMCommon Chat.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:136:9: warning: stored property 'temp' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type 'MLXArray'
    let temp: MLXArray
        ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:4:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:137:9: warning: stored property 'topP' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type 'MLXArray'
    let topP: MLXArray
        ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:144:17: warning: stored property 'compiledTopPSampling' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type '(MLXArray, MLXArray, MLXArray) -> MLXArray'
    private let compiledTopPSampling: (MLXArray, MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:144:17: note: a function type must be marked '@Sendable' to conform to 'Sendable'
    private let compiledTopPSampling: (MLXArray, MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:175:9: warning: stored property 'temp' of 'Sendable'-conforming struct 'CategoricalSampler' has non-sendable type 'MLXArray'
    let temp: MLXArray
        ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:181:17: warning: stored property 'compiledCategorical' of 'Sendable'-conforming struct 'CategoricalSampler' has non-sendable type '(MLXArray, MLXArray) -> MLXArray'
    private let compiledCategorical: (MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:181:17: note: a function type must be marked '@Sendable' to conform to 'Sendable'
    private let compiledCategorical: (MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:468:16: warning: stored property 'inputText' of 'Sendable'-conforming struct 'GenerateResult' has non-sendable type 'LMInput.Text'
    public let inputText: LMInput.Text
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/LanguageModel.swift:43:19: note: consider making struct 'Text' conform to the 'Sendable' protocol
    public struct Text {
                  ^
                       : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:609:47: warning: left side of nil coalescing operator '??' has non-optional type 'Set<String>', so the right side is never used
        (context.configuration.extraEOSTokens ?? [])
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:696:47: warning: left side of nil coalescing operator '??' has non-optional type 'Set<String>', so the right side is never used
        (context.configuration.extraEOSTokens ?? [])
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:800:17: warning: capture of 'context' with non-sendable type 'ModelContext' in a `@Sendable` closure
                context.configuration.extraEOSTokens
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
              ^
                           : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:809:26: warning: capture of 'iterator' with non-sendable type 'TokenIterator' in a `@Sendable` closure
            for token in iterator {
                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:269:15: note: consider making struct 'TokenIterator' conform to the 'Sendable' protocol
public struct TokenIterator: Sequence, IteratorProtocol {
              ^
                                                       , Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:847:35: warning: capture of 'input' with non-sendable type 'LMInput' in a `@Sendable` closure
                promptTokenCount: input.text.tokens.size,
                                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/LanguageModel.swift:37:15: note: consider making struct 'LMInput' conform to the 'Sendable' protocol
public struct LMInput {
              ^
                      : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:802:25: warning: capture of 'context' with non-sendable type 'ModelContext' in a `@Sendable` closure
                        context.tokenizer.convertTokenToId($0)
                        ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
              ^
                           : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:821:33: warning: implicit capture of 'context' requires that 'ModelContext' conforms to `Sendable`
                    || token == context.tokenizer.eosTokenId
                                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
              ^
                           : Sendable
[442/446] Compiling MLXLMCommon Evaluate.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:136:9: warning: stored property 'temp' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type 'MLXArray'
    let temp: MLXArray
        ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:4:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:137:9: warning: stored property 'topP' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type 'MLXArray'
    let topP: MLXArray
        ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:144:17: warning: stored property 'compiledTopPSampling' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type '(MLXArray, MLXArray, MLXArray) -> MLXArray'
    private let compiledTopPSampling: (MLXArray, MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:144:17: note: a function type must be marked '@Sendable' to conform to 'Sendable'
    private let compiledTopPSampling: (MLXArray, MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:175:9: warning: stored property 'temp' of 'Sendable'-conforming struct 'CategoricalSampler' has non-sendable type 'MLXArray'
    let temp: MLXArray
        ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:181:17: warning: stored property 'compiledCategorical' of 'Sendable'-conforming struct 'CategoricalSampler' has non-sendable type '(MLXArray, MLXArray) -> MLXArray'
    private let compiledCategorical: (MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:181:17: note: a function type must be marked '@Sendable' to conform to 'Sendable'
    private let compiledCategorical: (MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:468:16: warning: stored property 'inputText' of 'Sendable'-conforming struct 'GenerateResult' has non-sendable type 'LMInput.Text'
    public let inputText: LMInput.Text
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/LanguageModel.swift:43:19: note: consider making struct 'Text' conform to the 'Sendable' protocol
    public struct Text {
                  ^
                       : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:609:47: warning: left side of nil coalescing operator '??' has non-optional type 'Set<String>', so the right side is never used
        (context.configuration.extraEOSTokens ?? [])
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:696:47: warning: left side of nil coalescing operator '??' has non-optional type 'Set<String>', so the right side is never used
        (context.configuration.extraEOSTokens ?? [])
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:800:17: warning: capture of 'context' with non-sendable type 'ModelContext' in a `@Sendable` closure
                context.configuration.extraEOSTokens
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
              ^
                           : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:809:26: warning: capture of 'iterator' with non-sendable type 'TokenIterator' in a `@Sendable` closure
            for token in iterator {
                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:269:15: note: consider making struct 'TokenIterator' conform to the 'Sendable' protocol
public struct TokenIterator: Sequence, IteratorProtocol {
              ^
                                                       , Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:847:35: warning: capture of 'input' with non-sendable type 'LMInput' in a `@Sendable` closure
                promptTokenCount: input.text.tokens.size,
                                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/LanguageModel.swift:37:15: note: consider making struct 'LMInput' conform to the 'Sendable' protocol
public struct LMInput {
              ^
                      : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:802:25: warning: capture of 'context' with non-sendable type 'ModelContext' in a `@Sendable` closure
                        context.tokenizer.convertTokenToId($0)
                        ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
              ^
                           : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:821:33: warning: implicit capture of 'context' requires that 'ModelContext' conforms to `Sendable`
                    || token == context.tokenizer.eosTokenId
                                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
              ^
                           : Sendable
error: emit-module command failed with exit code 1 (use -v to see invocation)
[443/446] Emitting module MLXLMCommon
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:72:16: warning: stored property 'configuration' of 'Sendable'-conforming struct 'LoRAContainer' has non-sendable type 'LoRAConfiguration'
    public let configuration: LoRAConfiguration
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:27:15: note: consider making struct 'LoRAConfiguration' conform to the 'Sendable' protocol
public struct LoRAConfiguration: Codable {
              ^
                                        , Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:74:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'LoRAContainer' has non-sendable type 'ModuleParameters' (aka 'NestedDictionary<String, MLXArray>')
    public let parameters: ModuleParameters
               ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift:9:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/ModelAdapterFactory.swift:43:35: warning: converting non-sendable function value to '@Sendable (URL) throws -> any ModelAdapter' may introduce data races
            "lora": LoRAContainer.from(directory:),
                                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/ModelAdapterFactory.swift:44:35: warning: converting non-sendable function value to '@Sendable (URL) throws -> any ModelAdapter' may introduce data races
            "dora": LoRAContainer.from(directory:),
                                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Adapters/ModelAdapterFactory.swift:41:23: warning: static property 'shared' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6
    public static let shared = ModelAdapterFactory(
                      ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:136:9: warning: stored property 'temp' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type 'MLXArray'
    let temp: MLXArray
        ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:4:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:137:9: warning: stored property 'topP' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type 'MLXArray'
    let topP: MLXArray
        ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:144:17: warning: stored property 'compiledTopPSampling' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type '(MLXArray, MLXArray, MLXArray) -> MLXArray'
    private let compiledTopPSampling: (MLXArray, MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:144:17: note: a function type must be marked '@Sendable' to conform to 'Sendable'
    private let compiledTopPSampling: (MLXArray, MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:175:9: warning: stored property 'temp' of 'Sendable'-conforming struct 'CategoricalSampler' has non-sendable type 'MLXArray'
    let temp: MLXArray
        ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:181:17: warning: stored property 'compiledCategorical' of 'Sendable'-conforming struct 'CategoricalSampler' has non-sendable type '(MLXArray, MLXArray) -> MLXArray'
    private let compiledCategorical: (MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:181:17: note: a function type must be marked '@Sendable' to conform to 'Sendable'
    private let compiledCategorical: (MLXArray, MLXArray) -> MLXArray = {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:468:16: warning: stored property 'inputText' of 'Sendable'-conforming struct 'GenerateResult' has non-sendable type 'LMInput.Text'
    public let inputText: LMInput.Text
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/LanguageModel.swift:43:19: note: consider making struct 'Text' conform to the 'Sendable' protocol
    public struct Text {
                  ^
                       : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:30: error: consecutive declarations on a line must be separated by ';'
    ) async throws -> sending ModelContext
                             ^
                             ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:31: error: expected declaration
    ) async throws -> sending ModelContext
                              ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:87:17: note: in declaration of 'ModelFactory'
public protocol ModelFactory: Sendable {
                ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:30: error: consecutive declarations on a line must be separated by ';'
    ) async throws -> sending ModelContext {
                             ^
                             ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:31: error: expected declaration
    ) async throws -> sending ModelContext {
                              ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:129:1: note: in extension of 'ModelFactory'
extension ModelFactory {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:23: error: cannot find type 'sending' in scope
    ) async throws -> sending ModelContext
                      ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: warning: var 'defaultHubApi' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: isolate 'defaultHubApi' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:23: error: cannot find type 'sending' in scope
    ) async throws -> sending ModelContext {
                      ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:141:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
        hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                      ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:149:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
        hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                      ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:157:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
        hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                      ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:179:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:32: error: cannot find 'hub' in scope
        try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
                               ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:52: error: cannot find 'configuration' in scope
        try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
                                                   ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:84: error: cannot find 'progressHandler' in scope
        try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
                                                                                   ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:61: error: cannot find type 'sending' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                            ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:88: error: cannot find type 'sending' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                       ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:198:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:18: error: cannot find 'hub' in scope
            hub: hub, configuration: configuration, progressHandler: progressHandler)
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:38: error: cannot find 'configuration' in scope
            hub: hub, configuration: configuration, progressHandler: progressHandler)
                                     ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:70: error: cannot find 'progressHandler' in scope
            hub: hub, configuration: configuration, progressHandler: progressHandler)
                                                                     ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
                                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
    public init(context: ModelContext) {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:219:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, id: String, revision: String = "main",
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:18: error: cannot find 'hub' in scope
            hub: hub, configuration: .init(id: id, revision: revision),
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:62: error: cannot find 'revision' in scope
            hub: hub, configuration: .init(id: id, revision: revision),
                                                             ^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:225:30: error: cannot find 'progressHandler' in scope
            progressHandler: progressHandler)
                             ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:39: error: cannot infer contextual base in reference to member 'init'
            hub: hub, configuration: .init(id: id, revision: revision),
                                     ~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:240:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, id: String, revision: String = "main",
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:18: error: cannot find 'hub' in scope
            hub: hub, configuration: .init(id: id, revision: revision),
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:62: error: cannot find 'revision' in scope
            hub: hub, configuration: .init(id: id, revision: revision),
                                                             ^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:246:30: error: cannot find 'progressHandler' in scope
            progressHandler: progressHandler)
                             ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
                                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
    public init(context: ModelContext) {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:39: error: cannot infer contextual base in reference to member 'init'
            hub: hub, configuration: .init(id: id, revision: revision),
                                     ~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:262:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, directory: URL,
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:18: error: cannot find 'hub' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:55: error: cannot find 'directory' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                                      ^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:84: error: cannot find 'progressHandler' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                                                                   ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
                                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
    public init(
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:39: error: cannot infer contextual base in reference to member 'init'
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                     ~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
                  ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:282:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
    hub: HubApi = defaultHubApi, directory: URL,
                  ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:18: error: cannot find 'hub' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                 ^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:55: error: cannot find 'directory' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                                      ^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:84: error: cannot find 'progressHandler' in scope
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                                                                   ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
                                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
    public init(context: ModelContext) {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:39: error: cannot infer contextual base in reference to member 'init'
            hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
                                     ~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: cannot find 'R' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:296:35: error: cannot find 'loader' in scope
            let model = try await loader(factory)
                                  ^~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:160:58: warning: initializer 'init(width:height:)' cannot be used in a default argument value because 'CoreGraphics' was not imported by this file; this is an error in Swift 6
        processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
                                                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:160:58: note: The missing import of module 'CoreGraphics' will be added implicitly
        processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
                                                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:177:58: warning: initializer 'init(width:height:)' cannot be used in a default argument value because 'CoreGraphics' was not imported by this file; this is an error in Swift 6
        processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
                                                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:177:58: note: The missing import of module 'CoreGraphics' will be added implicitly
        processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
                                                         ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/Tool.swift:14:16: warning: stored property 'schema' of 'Sendable'-conforming generic struct 'Tool' has non-sendable type 'ToolSpec' (aka 'Dictionary<String, Any>')
    public let schema: ToolSpec
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/Tool.swift:17:16: warning: stored property 'handler' of 'Sendable'-conforming generic struct 'Tool' has non-sendable type '(Input) async throws -> Output'
    public let handler: (Input) async throws -> Output
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/Tool.swift:17:16: note: a function type must be marked '@Sendable' to conform to 'Sendable'
    public let handler: (Input) async throws -> Output
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Tool/ToolCallProcessor.swift:24:24: warning: static property 'toolCallRegex' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6
    private static let toolCallRegex = #/<tool_call>\s*(\{.*?\})\s*<\/tool_call>/#
                       ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:26:14: warning: associated value 'messages' of 'Sendable'-conforming enum 'Prompt' has non-sendable type 'Any'
        case messages([Message])
             ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:29:14: warning: associated value 'chat' of 'Sendable'-conforming enum 'Prompt' has non-sendable type 'Chat.Message'
        case chat([Chat.Message])
             ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Chat.swift:4:19: note: consider making struct 'Message' conform to the 'Sendable' protocol
    public struct Message {
                  ^
                          : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:45:14: warning: associated value 'avAsset' of 'Sendable'-conforming enum 'Video' has non-sendable type 'AVAsset'
        case avAsset(AVAsset)
             ^
AVFoundation.AVAsset:2:12: note: class 'AVAsset' does not conform to the 'Sendable' protocol
open class AVAsset : NSObject, NSCopying, AVAsynchronousKeyValueLoading {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:3:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
import AVFoundation
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:60:14: warning: associated value 'ciImage' of 'Sendable'-conforming enum 'Image' has non-sendable type 'CIImage'
        case ciImage(CIImage)
             ^
CoreImage.CIImage:2:12: note: class 'CIImage' does not conform to the 'Sendable' protocol
open class CIImage : NSObject, NSSecureCoding, NSCopying {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:4:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreImage'
import CoreImage
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:62:14: warning: associated value 'array' of 'Sendable'-conforming enum 'Image' has non-sendable type 'MLXArray'
        case array(MLXArray)
             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:6:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:162:16: warning: stored property 'tools' of 'Sendable'-conforming struct 'UserInput' has non-sendable type '[ToolSpec]?' (aka 'Optional<Array<Dictionary<String, Any>>>')
    public var tools: [ToolSpec]?
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:165:16: warning: stored property 'additionalContext' of 'Sendable'-conforming struct 'UserInput' has non-sendable type '[String : Any]?'
    public var additionalContext: [String: Any]?
               ^
[444/446] Compiling MLXLMCommon ToolParameter.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:26:14: warning: associated value 'messages' of 'Sendable'-conforming enum 'Prompt' has non-sendable type 'Any'
        case messages([Message])
             ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:29:14: warning: associated value 'chat' of 'Sendable'-conforming enum 'Prompt' has non-sendable type 'Chat.Message'
        case chat([Chat.Message])
             ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Chat.swift:4:19: note: consider making struct 'Message' conform to the 'Sendable' protocol
    public struct Message {
                  ^
                          : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:45:14: warning: associated value 'avAsset' of 'Sendable'-conforming enum 'Video' has non-sendable type 'AVAsset'
        case avAsset(AVAsset)
             ^
AVFoundation.AVAsset:2:12: note: class 'AVAsset' does not conform to the 'Sendable' protocol
open class AVAsset : NSObject, NSCopying, AVAsynchronousKeyValueLoading {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:3:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
import AVFoundation
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:60:14: warning: associated value 'ciImage' of 'Sendable'-conforming enum 'Image' has non-sendable type 'CIImage'
        case ciImage(CIImage)
             ^
CoreImage.CIImage:2:12: note: class 'CIImage' does not conform to the 'Sendable' protocol
open class CIImage : NSObject, NSSecureCoding, NSCopying {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:4:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreImage'
import CoreImage
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:62:14: warning: associated value 'array' of 'Sendable'-conforming enum 'Image' has non-sendable type 'MLXArray'
        case array(MLXArray)
             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:6:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:162:16: warning: stored property 'tools' of 'Sendable'-conforming struct 'UserInput' has non-sendable type '[ToolSpec]?' (aka 'Optional<Array<Dictionary<String, Any>>>')
    public var tools: [ToolSpec]?
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:165:16: warning: stored property 'additionalContext' of 'Sendable'-conforming struct 'UserInput' has non-sendable type '[String : Any]?'
    public var additionalContext: [String: Any]?
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:111:28: warning: immutable value 'C' was never used; consider replacing with '_' or removing it
                let (H, W, C) = array.shape3
                           ^
                           _
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:117:30: warning: reference to static property 'RGBA8' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
                    format: .RGBA8, colorSpace: cs)
                             ^
CoreImage.CIFormat:10:23: note: static property declared here
    public static var RGBA8: CIFormat
                      ^
[445/446] Compiling MLXLMCommon Value.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:26:14: warning: associated value 'messages' of 'Sendable'-conforming enum 'Prompt' has non-sendable type 'Any'
        case messages([Message])
             ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:29:14: warning: associated value 'chat' of 'Sendable'-conforming enum 'Prompt' has non-sendable type 'Chat.Message'
        case chat([Chat.Message])
             ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Chat.swift:4:19: note: consider making struct 'Message' conform to the 'Sendable' protocol
    public struct Message {
                  ^
                          : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:45:14: warning: associated value 'avAsset' of 'Sendable'-conforming enum 'Video' has non-sendable type 'AVAsset'
        case avAsset(AVAsset)
             ^
AVFoundation.AVAsset:2:12: note: class 'AVAsset' does not conform to the 'Sendable' protocol
open class AVAsset : NSObject, NSCopying, AVAsynchronousKeyValueLoading {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:3:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
import AVFoundation
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:60:14: warning: associated value 'ciImage' of 'Sendable'-conforming enum 'Image' has non-sendable type 'CIImage'
        case ciImage(CIImage)
             ^
CoreImage.CIImage:2:12: note: class 'CIImage' does not conform to the 'Sendable' protocol
open class CIImage : NSObject, NSSecureCoding, NSCopying {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:4:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreImage'
import CoreImage
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:62:14: warning: associated value 'array' of 'Sendable'-conforming enum 'Image' has non-sendable type 'MLXArray'
        case array(MLXArray)
             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:6:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:162:16: warning: stored property 'tools' of 'Sendable'-conforming struct 'UserInput' has non-sendable type '[ToolSpec]?' (aka 'Optional<Array<Dictionary<String, Any>>>')
    public var tools: [ToolSpec]?
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:165:16: warning: stored property 'additionalContext' of 'Sendable'-conforming struct 'UserInput' has non-sendable type '[String : Any]?'
    public var additionalContext: [String: Any]?
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:111:28: warning: immutable value 'C' was never used; consider replacing with '_' or removing it
                let (H, W, C) = array.shape3
                           ^
                           _
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:117:30: warning: reference to static property 'RGBA8' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
                    format: .RGBA8, colorSpace: cs)
                             ^
CoreImage.CIFormat:10:23: note: static property declared here
    public static var RGBA8: CIFormat
                      ^
[446/446] Compiling MLXLMCommon UserInput.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
                         ^
                         ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
                          ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                   ,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                    ^
                                                                    _:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                              ^
                                                                                              ;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
                                                                                               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:26:14: warning: associated value 'messages' of 'Sendable'-conforming enum 'Prompt' has non-sendable type 'Any'
        case messages([Message])
             ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:29:14: warning: associated value 'chat' of 'Sendable'-conforming enum 'Prompt' has non-sendable type 'Chat.Message'
        case chat([Chat.Message])
             ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Chat.swift:4:19: note: consider making struct 'Message' conform to the 'Sendable' protocol
    public struct Message {
                  ^
                          : Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:45:14: warning: associated value 'avAsset' of 'Sendable'-conforming enum 'Video' has non-sendable type 'AVAsset'
        case avAsset(AVAsset)
             ^
AVFoundation.AVAsset:2:12: note: class 'AVAsset' does not conform to the 'Sendable' protocol
open class AVAsset : NSObject, NSCopying, AVAsynchronousKeyValueLoading {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:3:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
import AVFoundation
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:60:14: warning: associated value 'ciImage' of 'Sendable'-conforming enum 'Image' has non-sendable type 'CIImage'
        case ciImage(CIImage)
             ^
CoreImage.CIImage:2:12: note: class 'CIImage' does not conform to the 'Sendable' protocol
open class CIImage : NSObject, NSSecureCoding, NSCopying {
           ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:4:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreImage'
import CoreImage
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:62:14: warning: associated value 'array' of 'Sendable'-conforming enum 'Image' has non-sendable type 'MLXArray'
        case array(MLXArray)
             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
                   ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:6:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:162:16: warning: stored property 'tools' of 'Sendable'-conforming struct 'UserInput' has non-sendable type '[ToolSpec]?' (aka 'Optional<Array<Dictionary<String, Any>>>')
    public var tools: [ToolSpec]?
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:165:16: warning: stored property 'additionalContext' of 'Sendable'-conforming struct 'UserInput' has non-sendable type '[String : Any]?'
    public var additionalContext: [String: Any]?
               ^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:111:28: warning: immutable value 'C' was never used; consider replacing with '_' or removing it
                let (H, W, C) = array.shape3
                           ^
                           _
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:117:30: warning: reference to static property 'RGBA8' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
                    format: .RGBA8, colorSpace: cs)
                             ^
CoreImage.CIFormat:10:23: note: static property declared here
    public static var RGBA8: CIFormat
                      ^
error: fatalError
Fetching https://github.com/huggingface/swift-transformers
Fetching https://github.com/1024jp/GzipSwift
Fetching https://github.com/ml-explore/mlx-swift
[1/1557] Fetching gzipswift
[235/4860] Fetching gzipswift, swift-transformers
[430/15770] Fetching gzipswift, swift-transformers, mlx-swift
Fetched https://github.com/ml-explore/mlx-swift from cache (1.83s)
Fetched https://github.com/1024jp/GzipSwift from cache (1.83s)
Fetched https://github.com/huggingface/swift-transformers from cache (1.83s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 6.0.1 (2.25s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 0.1.21 (0.37s)
Fetching https://github.com/johnmai-dev/Jinja
Fetching https://github.com/apple/swift-argument-parser.git
[8/393] Fetching jinja
[394/15773] Fetching jinja, swift-argument-parser
Fetched https://github.com/johnmai-dev/Jinja from cache (1.45s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.45s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (0.38s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.25.5 (0.40s)
Fetching https://github.com/apple/swift-numerics
[1/5757] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.02s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.1.2 (0.39s)
Fetching https://github.com/apple/swift-collections.git
[1/16650] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (12.45s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.45s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.3 (0.48s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 0.1.21
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.3
Creating working copy for https://github.com/1024jp/GzipSwift
Working copy of https://github.com/1024jp/GzipSwift resolved at 6.0.1
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.25.5
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.4.0
Creating working copy for https://github.com/johnmai-dev/Jinja
Working copy of https://github.com/johnmai-dev/Jinja resolved at 1.1.2
BUILD FAILURE 5.10 macosSpm