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

Successful build of mlx-swift-lm, reference 2.29.2 (018529), with Swift 6.1 for macOS (SPM) on 12 Nov 2025 07:11:26 UTC.

Swift 6 data race errors: 22

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

120 |         }
121 |
122 |         var padded = concatenated([convState!, input], axis: 1)
    |             `- warning: variable 'padded' was never mutated; consider changing to 'let' constant
123 |
124 |         if let cache {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/GraniteMoeHybrid.swift:139:13: warning: variable 'projected' was never mutated; consider changing to 'let' constant
137 |         cache: MambaCache?
138 |     ) -> MLXArray {
139 |         var projected = inProj(hiddenStates)
    |             `- warning: variable 'projected' was never mutated; consider changing to 'let' constant
140 |         let splits = split(
141 |             projected, indices: [intermediateSize, intermediateSize + convDim], axis: -1)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/GraniteMoeHybrid.swift:142:13: warning: variable 'gate' was never mutated; consider changing to 'let' constant
140 |         let splits = split(
141 |             projected, indices: [intermediateSize, intermediateSize + convDim], axis: -1)
142 |         var gate = splits[0]
    |             `- warning: variable 'gate' was never mutated; consider changing to 'let' constant
143 |         var convInput = splits[1]
144 |         var dt = splits[2]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/GraniteMoeHybrid.swift:144:13: warning: variable 'dt' was never mutated; consider changing to 'let' constant
142 |         var gate = splits[0]
143 |         var convInput = splits[1]
144 |         var dt = splits[2]
    |             `- warning: variable 'dt' was never mutated; consider changing to 'let' constant
145 |
146 |         if let mask {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/GraniteMoeHybrid.swift:554:25: warning: variable 'inputWeight' was never mutated; consider changing to 'let' constant
552 |                 let prefix = "model.layers.\(layerIndex).block_sparse_moe"
553 |                 guard
554 |                     var inputWeight = sanitized.removeValue(forKey: "\(prefix).input_linear.weight")
    |                         `- warning: variable 'inputWeight' was never mutated; consider changing to 'let' constant
555 |                 else { continue }
556 |
[482/508] Compiling MLXLLM LFM2.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/Granite.swift:124:13: warning: initialization of immutable value 'attentionHeads' was never used; consider replacing with assignment to '_' or removing it
122 |
123 |     public init(_ args: GraniteConfiguration) {
124 |         let attentionHeads = args.attentionHeads
    |             `- warning: initialization of immutable value 'attentionHeads' was never used; consider replacing with assignment to '_' or removing it
125 |         let hiddenSize = args.hiddenSize
126 |
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/Granite.swift:274:74: warning: left side of nil coalescing operator '??' has non-optional type 'Bool', so the right side is never used
272 |         self.kvHeads = try container.decode(Int.self, forKey: .kvHeads)
273 |         self.attentionBias = try container.decode(Bool.self, forKey: .attentionBias)
274 |         self.mlpBias = try container.decode(Bool.self, forKey: .mlpBias) ?? false
    |                                                                          `- warning: left side of nil coalescing operator '??' has non-optional type 'Bool', so the right side is never used
275 |         self.ropeTheta = try container.decodeIfPresent(Float.self, forKey: .ropeTheta) ?? 10000000.0
276 |         self.ropeScaling = try container.decodeIfPresent(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/GraniteMoeHybrid.swift:122:13: warning: variable 'padded' was never mutated; consider changing to 'let' constant
120 |         }
121 |
122 |         var padded = concatenated([convState!, input], axis: 1)
    |             `- warning: variable 'padded' was never mutated; consider changing to 'let' constant
123 |
124 |         if let cache {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/GraniteMoeHybrid.swift:139:13: warning: variable 'projected' was never mutated; consider changing to 'let' constant
137 |         cache: MambaCache?
138 |     ) -> MLXArray {
139 |         var projected = inProj(hiddenStates)
    |             `- warning: variable 'projected' was never mutated; consider changing to 'let' constant
140 |         let splits = split(
141 |             projected, indices: [intermediateSize, intermediateSize + convDim], axis: -1)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/GraniteMoeHybrid.swift:142:13: warning: variable 'gate' was never mutated; consider changing to 'let' constant
140 |         let splits = split(
141 |             projected, indices: [intermediateSize, intermediateSize + convDim], axis: -1)
142 |         var gate = splits[0]
    |             `- warning: variable 'gate' was never mutated; consider changing to 'let' constant
143 |         var convInput = splits[1]
144 |         var dt = splits[2]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/GraniteMoeHybrid.swift:144:13: warning: variable 'dt' was never mutated; consider changing to 'let' constant
142 |         var gate = splits[0]
143 |         var convInput = splits[1]
144 |         var dt = splits[2]
    |             `- warning: variable 'dt' was never mutated; consider changing to 'let' constant
145 |
146 |         if let mask {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/GraniteMoeHybrid.swift:554:25: warning: variable 'inputWeight' was never mutated; consider changing to 'let' constant
552 |                 let prefix = "model.layers.\(layerIndex).block_sparse_moe"
553 |                 guard
554 |                     var inputWeight = sanitized.removeValue(forKey: "\(prefix).input_linear.weight")
    |                         `- warning: variable 'inputWeight' was never mutated; consider changing to 'let' constant
555 |                 else { continue }
556 |
[483/508] Compiling MLXVLM Qwen2VL.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Qwen2VL.swift:475:17: warning: initialization of immutable value 'batchSize' was never used; consider replacing with assignment to '_' or removing it
473 |             let rotaryPositionEmbedding = rotaryPositionEmbedding(frames)
474 |
475 |             let batchSize = frames.count
    |                 `- warning: initialization of immutable value 'batchSize' was never used; consider replacing with assignment to '_' or removing it
476 |
477 |             for block in blocks {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Qwen2VL.swift:562:31: warning: no calls to throwing functions occur within 'try' expression
560 |         let resizedSize = CGSize(width: resizedWidth, height: resizedHeight)
561 |
562 |         let processedImages = try images.map { image in
    |                               `- warning: no calls to throwing functions occur within 'try' expression
563 |             preprocess(image: image, resizedSize: resizedSize).asMLXArray()
564 |         }
[484/508] Compiling MLXVLM Qwen25VL.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Qwen25VL.swift:715:24: warning: no calls to throwing functions occur within 'try' expression
 713 |             }
 714 |             .map {
 715 |                 return try MediaProcessing.resampleBicubic($0, to: resizedSize)
     |                        `- warning: no calls to throwing functions occur within 'try' expression
 716 |             }
 717 |             .map {
[485/508] Compiling MLXLLM Lora+Data.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:966:13: warning: initialization of immutable value 'batchSize' was never used; consider replacing with assignment to '_' or removing it
 964 |     ) -> (MLXArray, MLXArray?) {
 965 |         let embedDim = inputsEmbeds.dim(2)
 966 |         let batchSize = inputIds.dim(0)
     |             `- warning: initialization of immutable value 'batchSize' was never used; consider replacing with assignment to '_' or removing it
 967 |         let sequenceLength = inputIds.dim(1)
 968 |
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:967:13: warning: initialization of immutable value 'sequenceLength' was never used; consider replacing with assignment to '_' or removing it
 965 |         let embedDim = inputsEmbeds.dim(2)
 966 |         let batchSize = inputIds.dim(0)
 967 |         let sequenceLength = inputIds.dim(1)
     |             `- warning: initialization of immutable value 'sequenceLength' was never used; consider replacing with assignment to '_' or removing it
 968 |
 969 |         // Scale image features to match text embedding magnitude
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:979:13: warning: initialization of immutable value 'textMask' was never used; consider replacing with assignment to '_' or removing it
 977 |
 978 |         // Create masks for different token types
 979 |         let textMask = MLX.logicalAnd(
     |             `- warning: initialization of immutable value 'textMask' was never used; consider replacing with assignment to '_' or removing it
 980 |             MLX.notEqual(inputIds, MLXArray(imageTokenId)),
 981 |             MLX.notEqual(inputIds, MLXArray(padTokenId))
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:1019:56: warning: conditional cast from 'any KVCache' to 'any KVCache' always succeeds
1017 |         guard let imagePixels = input.image?.pixels else {
1018 |             // Text-only input
1019 |             let convertedCache = cache.compactMap { $0 as? KVCache }
     |                                                        `- warning: conditional cast from 'any KVCache' to 'any KVCache' always succeeds
1020 |             let result = languageModel(
1021 |                 input.text.tokens, cache: convertedCache, inputEmbedding: nil, mask: nil)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:1031:52: warning: conditional cast from 'any KVCache' to 'any KVCache' always succeeds
1029 |         )
1030 |
1031 |         let convertedCache = cache.compactMap { $0 as? KVCache }
     |                                                    `- warning: conditional cast from 'any KVCache' to 'any KVCache' always succeeds
1032 |         // Use causal masking for text generation
1033 |         let maskMode: MLXFast.ScaledDotProductAttentionMaskMode = .causal
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:1050:13: warning: initialization of immutable value 'lmHeadKeys' was never used; consider replacing with assignment to '_' or removing it
1048 |
1049 |     public func sanitize(weights: [String: MLXArray]) -> [String: MLXArray] {
1050 |         let lmHeadKeys = weights.keys.filter { $0.contains("lm_head") }
     |             `- warning: initialization of immutable value 'lmHeadKeys' was never used; consider replacing with assignment to '_' or removing it
1051 |
1052 |         // Also check attention layer structures
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:1053:13: warning: initialization of immutable value 'attnKeys' was never used; consider replacing with assignment to '_' or removing it
1051 |
1052 |         // Also check attention layer structures
1053 |         let attnKeys = weights.keys.filter {
     |             `- warning: initialization of immutable value 'attnKeys' was never used; consider replacing with assignment to '_' or removing it
1054 |             $0.contains("self_attn")
1055 |                 && ($0.contains("q_proj") || $0.contains("k_proj") || $0.contains("v_proj")
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:1092:32: warning: no calls to throwing functions occur within 'try' expression
1090 |             let processedImage = MediaProcessing.apply(image, processing: userProcessing)
1091 |             let srgbImage = MediaProcessing.inSRGBToneCurveSpace(processedImage)
1092 |             let resizedImage = try MediaProcessing.resampleBicubic(srgbImage, to: targetSize)
     |                                `- warning: no calls to throwing functions occur within 'try' expression
1093 |             let normalizedImage = MediaProcessing.normalize(
1094 |                 resizedImage, mean: config.imageMeanTuple, std: config.imageStdTuple)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Idefics3.swift:851:17: warning: initialization of immutable value 'count' was never used; consider replacing with assignment to '_' or removing it
849 |             }
850 |
851 |             let count = config.imageSequenceLength ?? 1
    |                 `- warning: initialization of immutable value 'count' was never used; consider replacing with assignment to '_' or removing it
852 |
853 |             // Encode only the text part of the prompt, without <image>
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Idefics3.swift:841:26: warning: no calls to throwing functions occur within 'try' expression
839 |         if input.images.isEmpty {
840 |             // No image scenario
841 |             let tokens = try tokenizer.encode(text: prompt)
    |                          `- warning: no calls to throwing functions occur within 'try' expression
842 |             let tokensArray = MLXArray(tokens).expandedDimensions(axis: 0)
843 |             let mask = ones(like: tokensArray)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Idefics3.swift:854:32: warning: no calls to throwing functions occur within 'try' expression
852 |
853 |             // Encode only the text part of the prompt, without <image>
854 |             var promptTokens = try tokenizer.encode(text: prompt)
    |                                `- warning: no calls to throwing functions occur within 'try' expression
855 |
856 |             let imageTokenIndex = promptTokens.count / 2
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Idefics3.swift:869:21: warning: no calls to throwing functions occur within 'try' expression
867 |             )
868 |             image = MediaProcessing.apply(image, processing: input.processing)
869 |             image = try MediaProcessing.resampleBicubic(image, to: targetSize)
    |                     `- warning: no calls to throwing functions occur within 'try' expression
870 |             image = MediaProcessing.normalize(
871 |                 image,
[486/508] Compiling MLXLLM LoraTrain.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:966:13: warning: initialization of immutable value 'batchSize' was never used; consider replacing with assignment to '_' or removing it
 964 |     ) -> (MLXArray, MLXArray?) {
 965 |         let embedDim = inputsEmbeds.dim(2)
 966 |         let batchSize = inputIds.dim(0)
     |             `- warning: initialization of immutable value 'batchSize' was never used; consider replacing with assignment to '_' or removing it
 967 |         let sequenceLength = inputIds.dim(1)
 968 |
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:967:13: warning: initialization of immutable value 'sequenceLength' was never used; consider replacing with assignment to '_' or removing it
 965 |         let embedDim = inputsEmbeds.dim(2)
 966 |         let batchSize = inputIds.dim(0)
 967 |         let sequenceLength = inputIds.dim(1)
     |             `- warning: initialization of immutable value 'sequenceLength' was never used; consider replacing with assignment to '_' or removing it
 968 |
 969 |         // Scale image features to match text embedding magnitude
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:979:13: warning: initialization of immutable value 'textMask' was never used; consider replacing with assignment to '_' or removing it
 977 |
 978 |         // Create masks for different token types
 979 |         let textMask = MLX.logicalAnd(
     |             `- warning: initialization of immutable value 'textMask' was never used; consider replacing with assignment to '_' or removing it
 980 |             MLX.notEqual(inputIds, MLXArray(imageTokenId)),
 981 |             MLX.notEqual(inputIds, MLXArray(padTokenId))
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:1019:56: warning: conditional cast from 'any KVCache' to 'any KVCache' always succeeds
1017 |         guard let imagePixels = input.image?.pixels else {
1018 |             // Text-only input
1019 |             let convertedCache = cache.compactMap { $0 as? KVCache }
     |                                                        `- warning: conditional cast from 'any KVCache' to 'any KVCache' always succeeds
1020 |             let result = languageModel(
1021 |                 input.text.tokens, cache: convertedCache, inputEmbedding: nil, mask: nil)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:1031:52: warning: conditional cast from 'any KVCache' to 'any KVCache' always succeeds
1029 |         )
1030 |
1031 |         let convertedCache = cache.compactMap { $0 as? KVCache }
     |                                                    `- warning: conditional cast from 'any KVCache' to 'any KVCache' always succeeds
1032 |         // Use causal masking for text generation
1033 |         let maskMode: MLXFast.ScaledDotProductAttentionMaskMode = .causal
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:1050:13: warning: initialization of immutable value 'lmHeadKeys' was never used; consider replacing with assignment to '_' or removing it
1048 |
1049 |     public func sanitize(weights: [String: MLXArray]) -> [String: MLXArray] {
1050 |         let lmHeadKeys = weights.keys.filter { $0.contains("lm_head") }
     |             `- warning: initialization of immutable value 'lmHeadKeys' was never used; consider replacing with assignment to '_' or removing it
1051 |
1052 |         // Also check attention layer structures
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:1053:13: warning: initialization of immutable value 'attnKeys' was never used; consider replacing with assignment to '_' or removing it
1051 |
1052 |         // Also check attention layer structures
1053 |         let attnKeys = weights.keys.filter {
     |             `- warning: initialization of immutable value 'attnKeys' was never used; consider replacing with assignment to '_' or removing it
1054 |             $0.contains("self_attn")
1055 |                 && ($0.contains("q_proj") || $0.contains("k_proj") || $0.contains("v_proj")
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Gemma3.swift:1092:32: warning: no calls to throwing functions occur within 'try' expression
1090 |             let processedImage = MediaProcessing.apply(image, processing: userProcessing)
1091 |             let srgbImage = MediaProcessing.inSRGBToneCurveSpace(processedImage)
1092 |             let resizedImage = try MediaProcessing.resampleBicubic(srgbImage, to: targetSize)
     |                                `- warning: no calls to throwing functions occur within 'try' expression
1093 |             let normalizedImage = MediaProcessing.normalize(
1094 |                 resizedImage, mean: config.imageMeanTuple, std: config.imageStdTuple)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Idefics3.swift:851:17: warning: initialization of immutable value 'count' was never used; consider replacing with assignment to '_' or removing it
849 |             }
850 |
851 |             let count = config.imageSequenceLength ?? 1
    |                 `- warning: initialization of immutable value 'count' was never used; consider replacing with assignment to '_' or removing it
852 |
853 |             // Encode only the text part of the prompt, without <image>
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Idefics3.swift:841:26: warning: no calls to throwing functions occur within 'try' expression
839 |         if input.images.isEmpty {
840 |             // No image scenario
841 |             let tokens = try tokenizer.encode(text: prompt)
    |                          `- warning: no calls to throwing functions occur within 'try' expression
842 |             let tokensArray = MLXArray(tokens).expandedDimensions(axis: 0)
843 |             let mask = ones(like: tokensArray)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Idefics3.swift:854:32: warning: no calls to throwing functions occur within 'try' expression
852 |
853 |             // Encode only the text part of the prompt, without <image>
854 |             var promptTokens = try tokenizer.encode(text: prompt)
    |                                `- warning: no calls to throwing functions occur within 'try' expression
855 |
856 |             let imageTokenIndex = promptTokens.count / 2
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Idefics3.swift:869:21: warning: no calls to throwing functions occur within 'try' expression
867 |             )
868 |             image = MediaProcessing.apply(image, processing: input.processing)
869 |             image = try MediaProcessing.resampleBicubic(image, to: targetSize)
    |                     `- warning: no calls to throwing functions occur within 'try' expression
870 |             image = MediaProcessing.normalize(
871 |                 image,
[487/508] Compiling MLXLLM Exaone4.swift
[488/508] Compiling MLXLLM FalconH1.swift
[489/508] Compiling MLXLLM GLM4.swift
[490/508] Compiling MLXLLM GPTOSS.swift
[491/508] Compiling MLXLLM Gemma.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/Gemma3Text.swift:13:8: warning: file 'Gemma3Text.swift' is part of module 'MLXLLM'; ignoring import
 11 | import MLX
 12 | import MLXFast
 13 | import MLXLLM
    |        `- warning: file 'Gemma3Text.swift' is part of module 'MLXLLM'; ignoring import
 14 | import MLXLMCommon
 15 | import MLXNN
[492/508] Compiling MLXLLM Gemma2.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/Gemma3Text.swift:13:8: warning: file 'Gemma3Text.swift' is part of module 'MLXLLM'; ignoring import
 11 | import MLX
 12 | import MLXFast
 13 | import MLXLLM
    |        `- warning: file 'Gemma3Text.swift' is part of module 'MLXLLM'; ignoring import
 14 | import MLXLMCommon
 15 | import MLXNN
[493/508] Compiling MLXLLM Gemma3Text.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/Gemma3Text.swift:13:8: warning: file 'Gemma3Text.swift' is part of module 'MLXLLM'; ignoring import
 11 | import MLX
 12 | import MLXFast
 13 | import MLXLLM
    |        `- warning: file 'Gemma3Text.swift' is part of module 'MLXLLM'; ignoring import
 14 | import MLXLMCommon
 15 | import MLXNN
[494/508] Compiling MLXLLM Gemma3nText.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/Gemma3Text.swift:13:8: warning: file 'Gemma3Text.swift' is part of module 'MLXLLM'; ignoring import
 11 | import MLX
 12 | import MLXFast
 13 | import MLXLLM
    |        `- warning: file 'Gemma3Text.swift' is part of module 'MLXLLM'; ignoring import
 14 | import MLXLMCommon
 15 | import MLXNN
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:27:13: warning: variable 'state' was never mutated; consider changing to 'let' constant
25 |         let prefillStepSize = windowSize ?? 512
26 |         var y = input.text
27 |         var state: LMOutput.State? = nil
   |             `- warning: variable 'state' was never mutated; consider changing to 'let' constant
28 |
29 |         // prepare the prompt in chunks if larger than the prefill size
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:32:17: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
30 |         while y.tokens.size > prefillStepSize {
31 |             let input = y[.newAxis, ..<prefillStepSize]
32 |             let result = self(input, cache: cache.isEmpty ? nil : cache, state: state)
   |                 `- warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
33 |             eval(cache)
34 |             y = y[prefillStepSize...]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:451:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
449 | ///     configuration: LLMRegistry.llama3_8B_4bit)
450 | /// ```
451 | public class LLMModelFactory: ModelFactory {
    |              `- warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
452 |
453 |     public init(typeRegistry: ModelTypeRegistry, modelRegistry: AbstractModelRegistry) {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:31:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 29 |     private static func all() -> [String: @Sendable (URL) throws -> any LanguageModel] {
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:32:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:33:20: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
    |                    `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:34:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:35:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:36:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:37:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:38:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:39:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:40:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:41:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:42:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:43:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:44:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:45:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:46:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:47:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:48:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:49:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:50:33: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
    |                                 `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:52:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:53:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:54:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:55:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:56:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:57:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:58:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:59:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:60:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:61:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:62:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:63:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:64:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:65:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 69 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:68:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |         ]
 70 |     }
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:27:13: warning: variable 'state' was never mutated; consider changing to 'let' constant
25 |         let prefillStepSize = windowSize ?? 512
26 |         var y = input.text
27 |         var state: LMOutput.State? = nil
   |             `- warning: variable 'state' was never mutated; consider changing to 'let' constant
28 |
29 |         // prepare the prompt in chunks if larger than the prefill size
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:32:17: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
30 |         while y.tokens.size > prefillStepSize {
31 |             let input = y[.newAxis, ..<prefillStepSize]
32 |             let result = self(input, cache: cache.isEmpty ? nil : cache, state: state)
   |                 `- warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
33 |             eval(cache)
34 |             y = y[prefillStepSize...]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:451:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
449 | ///     configuration: LLMRegistry.llama3_8B_4bit)
450 | /// ```
451 | public class LLMModelFactory: ModelFactory {
    |              `- warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
452 |
453 |     public init(typeRegistry: ModelTypeRegistry, modelRegistry: AbstractModelRegistry) {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:31:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 29 |     private static func all() -> [String: @Sendable (URL) throws -> any LanguageModel] {
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:32:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:33:20: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
    |                    `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:34:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:35:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:36:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:37:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:38:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:39:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:40:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:41:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:42:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:43:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:44:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:45:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:46:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:47:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:48:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:49:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:50:33: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
    |                                 `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:52:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:53:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:54:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:55:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:56:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:57:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:58:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:59:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:60:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:61:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:62:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:63:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:64:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:65:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 69 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:68:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |         ]
 70 |     }
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:27:13: warning: variable 'state' was never mutated; consider changing to 'let' constant
25 |         let prefillStepSize = windowSize ?? 512
26 |         var y = input.text
27 |         var state: LMOutput.State? = nil
   |             `- warning: variable 'state' was never mutated; consider changing to 'let' constant
28 |
29 |         // prepare the prompt in chunks if larger than the prefill size
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:32:17: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
30 |         while y.tokens.size > prefillStepSize {
31 |             let input = y[.newAxis, ..<prefillStepSize]
32 |             let result = self(input, cache: cache.isEmpty ? nil : cache, state: state)
   |                 `- warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
33 |             eval(cache)
34 |             y = y[prefillStepSize...]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:451:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
449 | ///     configuration: LLMRegistry.llama3_8B_4bit)
450 | /// ```
451 | public class LLMModelFactory: ModelFactory {
    |              `- warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
452 |
453 |     public init(typeRegistry: ModelTypeRegistry, modelRegistry: AbstractModelRegistry) {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:31:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 29 |     private static func all() -> [String: @Sendable (URL) throws -> any LanguageModel] {
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:32:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:33:20: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
    |                    `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:34:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:35:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:36:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:37:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:38:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:39:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:40:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:41:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:42:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:43:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:44:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:45:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:46:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:47:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:48:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:49:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:50:33: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
    |                                 `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:52:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:53:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:54:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:55:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:56:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:57:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:58:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:59:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:60:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:61:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:62:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:63:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:64:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:65:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 69 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:68:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |         ]
 70 |     }
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:27:13: warning: variable 'state' was never mutated; consider changing to 'let' constant
25 |         let prefillStepSize = windowSize ?? 512
26 |         var y = input.text
27 |         var state: LMOutput.State? = nil
   |             `- warning: variable 'state' was never mutated; consider changing to 'let' constant
28 |
29 |         // prepare the prompt in chunks if larger than the prefill size
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:32:17: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
30 |         while y.tokens.size > prefillStepSize {
31 |             let input = y[.newAxis, ..<prefillStepSize]
32 |             let result = self(input, cache: cache.isEmpty ? nil : cache, state: state)
   |                 `- warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
33 |             eval(cache)
34 |             y = y[prefillStepSize...]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:451:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
449 | ///     configuration: LLMRegistry.llama3_8B_4bit)
450 | /// ```
451 | public class LLMModelFactory: ModelFactory {
    |              `- warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
452 |
453 |     public init(typeRegistry: ModelTypeRegistry, modelRegistry: AbstractModelRegistry) {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:31:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 29 |     private static func all() -> [String: @Sendable (URL) throws -> any LanguageModel] {
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:32:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:33:20: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
    |                    `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:34:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:35:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:36:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:37:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:38:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:39:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:40:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:41:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:42:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:43:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:44:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:45:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:46:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:47:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:48:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:49:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:50:33: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
    |                                 `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:52:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:53:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:54:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:55:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:56:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:57:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:58:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:59:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:60:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:61:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:62:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:63:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:64:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:65:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 69 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:68:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |         ]
 70 |     }
[499/508] Compiling MLXLLM BaichuanM1.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:27:13: warning: variable 'state' was never mutated; consider changing to 'let' constant
25 |         let prefillStepSize = windowSize ?? 512
26 |         var y = input.text
27 |         var state: LMOutput.State? = nil
   |             `- warning: variable 'state' was never mutated; consider changing to 'let' constant
28 |
29 |         // prepare the prompt in chunks if larger than the prefill size
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:32:17: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
30 |         while y.tokens.size > prefillStepSize {
31 |             let input = y[.newAxis, ..<prefillStepSize]
32 |             let result = self(input, cache: cache.isEmpty ? nil : cache, state: state)
   |                 `- warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
33 |             eval(cache)
34 |             y = y[prefillStepSize...]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:451:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
449 | ///     configuration: LLMRegistry.llama3_8B_4bit)
450 | /// ```
451 | public class LLMModelFactory: ModelFactory {
    |              `- warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
452 |
453 |     public init(typeRegistry: ModelTypeRegistry, modelRegistry: AbstractModelRegistry) {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:31:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 29 |     private static func all() -> [String: @Sendable (URL) throws -> any LanguageModel] {
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:32:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:33:20: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
    |                    `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:34:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:35:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:36:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:37:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:38:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:39:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:40:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:41:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:42:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:43:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:44:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:45:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:46:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:47:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:48:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:49:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:50:33: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
    |                                 `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:52:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:53:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:54:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:55:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:56:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:57:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:58:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:59:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:60:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:61:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:62:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:63:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:64:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:65:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 69 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:68:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |         ]
 70 |     }
[500/508] Compiling MLXLLM BailingMoe.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/DeepseekV3.swift:6:8: warning: file 'DeepseekV3.swift' is part of module 'MLXLLM'; ignoring import
  4 | import MLX
  5 | import MLXFast
  6 | import MLXLLM
    |        `- warning: file 'DeepseekV3.swift' is part of module 'MLXLLM'; ignoring import
  7 | import MLXLMCommon
  8 | import MLXNN
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:231:17: warning: left side of nil coalescing operator '??' has non-optional type 'Int', so the right side is never used
229 |         let inds = argPartition(-scores, kth: k - 1, axis: -1)[.ellipsis, ..<k]
230 |         scores = takeAlong(scores, inds, axis: -1)
231 |         if topK ?? 1 > 1, normTopkProb {
    |                 `- warning: left side of nil coalescing operator '??' has non-optional type 'Int', so the right side is never used
232 |             let denominator = scores.sum(axis: -1, keepDims: true) + 1e-20
233 |             scores = scores / denominator
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:215:27: warning: immutable value 'h' was never used; consider replacing with '_' or removing it
213 |
214 |     func groupSelect(_ x: MLXArray) -> (inds: MLXArray, scores: MLXArray) {
215 |         let (bsz, seqLen, h) = (x.dim(0), x.dim(1), x.dim(2))
    |                           `- warning: immutable value 'h' was never used; consider replacing with '_' or removing it
216 |
217 |         let logits = gate(x)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:224:13: warning: variable 'groupIdx' was never mutated; consider changing to 'let' constant
222 |         let topKGroup = top(groupScores, k: 2, axis: -1).sum(axis: -1, keepDims: true)
223 |         var k = nGroup - topkGroup
224 |         var groupIdx = argPartition(topKGroup, kth: k - 1, axis: -2)[.ellipsis, ..<k, 0...]
    |             `- warning: variable 'groupIdx' was never mutated; consider changing to 'let' constant
225 |         scores = putAlong(groupScores, groupIdx, values: MLXArray(0.0), axis: -2)
226 |         scores = flattened(scores, start: -2, end: -1)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/DeepseekV3.swift:357:27: warning: immutable value 'h' was never used; consider replacing with '_' or removing it
355 |
356 |     func callAsFunction(_ x: MLXArray) -> (MLXArray, MLXArray) {
357 |         let (bsz, seqLen, h) = (x.dim(0), x.dim(1), x.dim(2))
    |                           `- warning: immutable value 'h' was never used; consider replacing with '_' or removing it
358 |
359 |         let hiddenStates = x.matmul(weight.T)
[501/508] Compiling MLXLLM Bitnet.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/DeepseekV3.swift:6:8: warning: file 'DeepseekV3.swift' is part of module 'MLXLLM'; ignoring import
  4 | import MLX
  5 | import MLXFast
  6 | import MLXLLM
    |        `- warning: file 'DeepseekV3.swift' is part of module 'MLXLLM'; ignoring import
  7 | import MLXLMCommon
  8 | import MLXNN
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:231:17: warning: left side of nil coalescing operator '??' has non-optional type 'Int', so the right side is never used
229 |         let inds = argPartition(-scores, kth: k - 1, axis: -1)[.ellipsis, ..<k]
230 |         scores = takeAlong(scores, inds, axis: -1)
231 |         if topK ?? 1 > 1, normTopkProb {
    |                 `- warning: left side of nil coalescing operator '??' has non-optional type 'Int', so the right side is never used
232 |             let denominator = scores.sum(axis: -1, keepDims: true) + 1e-20
233 |             scores = scores / denominator
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:215:27: warning: immutable value 'h' was never used; consider replacing with '_' or removing it
213 |
214 |     func groupSelect(_ x: MLXArray) -> (inds: MLXArray, scores: MLXArray) {
215 |         let (bsz, seqLen, h) = (x.dim(0), x.dim(1), x.dim(2))
    |                           `- warning: immutable value 'h' was never used; consider replacing with '_' or removing it
216 |
217 |         let logits = gate(x)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:224:13: warning: variable 'groupIdx' was never mutated; consider changing to 'let' constant
222 |         let topKGroup = top(groupScores, k: 2, axis: -1).sum(axis: -1, keepDims: true)
223 |         var k = nGroup - topkGroup
224 |         var groupIdx = argPartition(topKGroup, kth: k - 1, axis: -2)[.ellipsis, ..<k, 0...]
    |             `- warning: variable 'groupIdx' was never mutated; consider changing to 'let' constant
225 |         scores = putAlong(groupScores, groupIdx, values: MLXArray(0.0), axis: -2)
226 |         scores = flattened(scores, start: -2, end: -1)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/DeepseekV3.swift:357:27: warning: immutable value 'h' was never used; consider replacing with '_' or removing it
355 |
356 |     func callAsFunction(_ x: MLXArray) -> (MLXArray, MLXArray) {
357 |         let (bsz, seqLen, h) = (x.dim(0), x.dim(1), x.dim(2))
    |                           `- warning: immutable value 'h' was never used; consider replacing with '_' or removing it
358 |
359 |         let hiddenStates = x.matmul(weight.T)
[502/508] Compiling MLXLLM Cohere.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/DeepseekV3.swift:6:8: warning: file 'DeepseekV3.swift' is part of module 'MLXLLM'; ignoring import
  4 | import MLX
  5 | import MLXFast
  6 | import MLXLLM
    |        `- warning: file 'DeepseekV3.swift' is part of module 'MLXLLM'; ignoring import
  7 | import MLXLMCommon
  8 | import MLXNN
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:231:17: warning: left side of nil coalescing operator '??' has non-optional type 'Int', so the right side is never used
229 |         let inds = argPartition(-scores, kth: k - 1, axis: -1)[.ellipsis, ..<k]
230 |         scores = takeAlong(scores, inds, axis: -1)
231 |         if topK ?? 1 > 1, normTopkProb {
    |                 `- warning: left side of nil coalescing operator '??' has non-optional type 'Int', so the right side is never used
232 |             let denominator = scores.sum(axis: -1, keepDims: true) + 1e-20
233 |             scores = scores / denominator
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:215:27: warning: immutable value 'h' was never used; consider replacing with '_' or removing it
213 |
214 |     func groupSelect(_ x: MLXArray) -> (inds: MLXArray, scores: MLXArray) {
215 |         let (bsz, seqLen, h) = (x.dim(0), x.dim(1), x.dim(2))
    |                           `- warning: immutable value 'h' was never used; consider replacing with '_' or removing it
216 |
217 |         let logits = gate(x)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:224:13: warning: variable 'groupIdx' was never mutated; consider changing to 'let' constant
222 |         let topKGroup = top(groupScores, k: 2, axis: -1).sum(axis: -1, keepDims: true)
223 |         var k = nGroup - topkGroup
224 |         var groupIdx = argPartition(topKGroup, kth: k - 1, axis: -2)[.ellipsis, ..<k, 0...]
    |             `- warning: variable 'groupIdx' was never mutated; consider changing to 'let' constant
225 |         scores = putAlong(groupScores, groupIdx, values: MLXArray(0.0), axis: -2)
226 |         scores = flattened(scores, start: -2, end: -1)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/DeepseekV3.swift:357:27: warning: immutable value 'h' was never used; consider replacing with '_' or removing it
355 |
356 |     func callAsFunction(_ x: MLXArray) -> (MLXArray, MLXArray) {
357 |         let (bsz, seqLen, h) = (x.dim(0), x.dim(1), x.dim(2))
    |                           `- warning: immutable value 'h' was never used; consider replacing with '_' or removing it
358 |
359 |         let hiddenStates = x.matmul(weight.T)
[503/508] Compiling MLXLLM DeepseekV3.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/DeepseekV3.swift:6:8: warning: file 'DeepseekV3.swift' is part of module 'MLXLLM'; ignoring import
  4 | import MLX
  5 | import MLXFast
  6 | import MLXLLM
    |        `- warning: file 'DeepseekV3.swift' is part of module 'MLXLLM'; ignoring import
  7 | import MLXLMCommon
  8 | import MLXNN
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:231:17: warning: left side of nil coalescing operator '??' has non-optional type 'Int', so the right side is never used
229 |         let inds = argPartition(-scores, kth: k - 1, axis: -1)[.ellipsis, ..<k]
230 |         scores = takeAlong(scores, inds, axis: -1)
231 |         if topK ?? 1 > 1, normTopkProb {
    |                 `- warning: left side of nil coalescing operator '??' has non-optional type 'Int', so the right side is never used
232 |             let denominator = scores.sum(axis: -1, keepDims: true) + 1e-20
233 |             scores = scores / denominator
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:215:27: warning: immutable value 'h' was never used; consider replacing with '_' or removing it
213 |
214 |     func groupSelect(_ x: MLXArray) -> (inds: MLXArray, scores: MLXArray) {
215 |         let (bsz, seqLen, h) = (x.dim(0), x.dim(1), x.dim(2))
    |                           `- warning: immutable value 'h' was never used; consider replacing with '_' or removing it
216 |
217 |         let logits = gate(x)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:224:13: warning: variable 'groupIdx' was never mutated; consider changing to 'let' constant
222 |         let topKGroup = top(groupScores, k: 2, axis: -1).sum(axis: -1, keepDims: true)
223 |         var k = nGroup - topkGroup
224 |         var groupIdx = argPartition(topKGroup, kth: k - 1, axis: -2)[.ellipsis, ..<k, 0...]
    |             `- warning: variable 'groupIdx' was never mutated; consider changing to 'let' constant
225 |         scores = putAlong(groupScores, groupIdx, values: MLXArray(0.0), axis: -2)
226 |         scores = flattened(scores, start: -2, end: -1)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/DeepseekV3.swift:357:27: warning: immutable value 'h' was never used; consider replacing with '_' or removing it
355 |
356 |     func callAsFunction(_ x: MLXArray) -> (MLXArray, MLXArray) {
357 |         let (bsz, seqLen, h) = (x.dim(0), x.dim(1), x.dim(2))
    |                           `- warning: immutable value 'h' was never used; consider replacing with '_' or removing it
358 |
359 |         let hiddenStates = x.matmul(weight.T)
[504/508] Compiling MLXLLM Ernie4_5.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/DeepseekV3.swift:6:8: warning: file 'DeepseekV3.swift' is part of module 'MLXLLM'; ignoring import
  4 | import MLX
  5 | import MLXFast
  6 | import MLXLLM
    |        `- warning: file 'DeepseekV3.swift' is part of module 'MLXLLM'; ignoring import
  7 | import MLXLMCommon
  8 | import MLXNN
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:231:17: warning: left side of nil coalescing operator '??' has non-optional type 'Int', so the right side is never used
229 |         let inds = argPartition(-scores, kth: k - 1, axis: -1)[.ellipsis, ..<k]
230 |         scores = takeAlong(scores, inds, axis: -1)
231 |         if topK ?? 1 > 1, normTopkProb {
    |                 `- warning: left side of nil coalescing operator '??' has non-optional type 'Int', so the right side is never used
232 |             let denominator = scores.sum(axis: -1, keepDims: true) + 1e-20
233 |             scores = scores / denominator
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:215:27: warning: immutable value 'h' was never used; consider replacing with '_' or removing it
213 |
214 |     func groupSelect(_ x: MLXArray) -> (inds: MLXArray, scores: MLXArray) {
215 |         let (bsz, seqLen, h) = (x.dim(0), x.dim(1), x.dim(2))
    |                           `- warning: immutable value 'h' was never used; consider replacing with '_' or removing it
216 |
217 |         let logits = gate(x)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:224:13: warning: variable 'groupIdx' was never mutated; consider changing to 'let' constant
222 |         let topKGroup = top(groupScores, k: 2, axis: -1).sum(axis: -1, keepDims: true)
223 |         var k = nGroup - topkGroup
224 |         var groupIdx = argPartition(topKGroup, kth: k - 1, axis: -2)[.ellipsis, ..<k, 0...]
    |             `- warning: variable 'groupIdx' was never mutated; consider changing to 'let' constant
225 |         scores = putAlong(groupScores, groupIdx, values: MLXArray(0.0), axis: -2)
226 |         scores = flattened(scores, start: -2, end: -1)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/DeepseekV3.swift:357:27: warning: immutable value 'h' was never used; consider replacing with '_' or removing it
355 |
356 |     func callAsFunction(_ x: MLXArray) -> (MLXArray, MLXArray) {
357 |         let (bsz, seqLen, h) = (x.dim(0), x.dim(1), x.dim(2))
    |                           `- warning: immutable value 'h' was never used; consider replacing with '_' or removing it
358 |
359 |         let hiddenStates = x.matmul(weight.T)
[505/508] Compiling MLXLLM SmolLM3.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/SuScaledRotaryEmbedding.swift:42:13: warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
40 |     public func callAsFunction(_ x: MLXArray, offset: Int = 0) -> MLXArray {
41 |         // Apply scaling only to the dimensions that will be rotated
42 |         var scaledX = x
   |             `- warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
43 |         let sliceToScale = scaledX[.ellipsis, 0 ..< dimensions]
44 |         scaledX[.ellipsis, 0 ..< dimensions] = scale * sliceToScale
[506/508] Compiling MLXLLM Starcoder2.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/SuScaledRotaryEmbedding.swift:42:13: warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
40 |     public func callAsFunction(_ x: MLXArray, offset: Int = 0) -> MLXArray {
41 |         // Apply scaling only to the dimensions that will be rotated
42 |         var scaledX = x
   |             `- warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
43 |         let sliceToScale = scaledX[.ellipsis, 0 ..< dimensions]
44 |         scaledX[.ellipsis, 0 ..< dimensions] = scale * sliceToScale
[507/508] Compiling MLXLLM SuScaledRotaryEmbedding.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/SuScaledRotaryEmbedding.swift:42:13: warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
40 |     public func callAsFunction(_ x: MLXArray, offset: Int = 0) -> MLXArray {
41 |         // Apply scaling only to the dimensions that will be rotated
42 |         var scaledX = x
   |             `- warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
43 |         let sliceToScale = scaledX[.ellipsis, 0 ..< dimensions]
44 |         scaledX[.ellipsis, 0 ..< dimensions] = scale * sliceToScale
[508/508] Compiling MLXLLM SwitchLayers.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/SuScaledRotaryEmbedding.swift:42:13: warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
40 |     public func callAsFunction(_ x: MLXArray, offset: Int = 0) -> MLXArray {
41 |         // Apply scaling only to the dimensions that will be rotated
42 |         var scaledX = x
   |             `- warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
43 |         let sliceToScale = scaledX[.ellipsis, 0 ..< dimensions]
44 |         scaledX[.ellipsis, 0 ..< dimensions] = scale * sliceToScale
Build complete! (66.24s)
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/huggingface/swift-transformers
[1/5000] Fetching swift-transformers
[51/16768] Fetching swift-transformers, mlx-swift
Fetched https://github.com/ml-explore/mlx-swift from cache (6.88s)
Fetched https://github.com/huggingface/swift-transformers from cache (6.88s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.29.1 (7.41s)
Fetching https://github.com/apple/swift-numerics from cache
Fetched https://github.com/apple/swift-numerics from cache (0.95s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.1.2 (1.48s)
Fetching https://github.com/huggingface/swift-jinja.git
[1/759] Fetching swift-jinja
Fetched https://github.com/huggingface/swift-jinja.git from cache (0.81s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.1.1 (1.31s)
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (1.15s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.66s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.71s)
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.29.1
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.1.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.1.2
Build complete.
{
  "dependencies" : [
    {
      "identity" : "mlx-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.29.1",
            "upper_bound" : "0.30.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ml-explore/mlx-swift"
    },
    {
      "identity" : "swift-transformers",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "1.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/huggingface/swift-transformers"
    }
  ],
  "manifest_display_name" : "mlx-swift-lm",
  "name" : "mlx-swift-lm",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "MLXLLM",
      "targets" : [
        "MLXLLM"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MLXVLM",
      "targets" : [
        "MLXVLM"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MLXLMCommon",
      "targets" : [
        "MLXLMCommon"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MLXEmbedders",
      "targets" : [
        "MLXEmbedders"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MLXVLM",
      "module_type" : "SwiftTarget",
      "name" : "MLXVLM",
      "path" : "Libraries/MLXVLM",
      "product_dependencies" : [
        "MLX",
        "MLXFast",
        "MLXNN",
        "MLXOptimizers",
        "MLXRandom",
        "Transformers"
      ],
      "product_memberships" : [
        "MLXVLM"
      ],
      "sources" : [
        "MediaProcessing.swift",
        "Models/FastVLM.swift",
        "Models/Gemma3.swift",
        "Models/Idefics3.swift",
        "Models/Paligemma.swift",
        "Models/Qwen25VL.swift",
        "Models/Qwen2VL.swift",
        "Models/Qwen3VL.swift",
        "Models/QwenVL.swift",
        "Models/SmolVLM2.swift",
        "VLMModel.swift",
        "VLMModelFactory.swift"
      ],
      "target_dependencies" : [
        "MLXLMCommon"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MLXLMTests",
      "module_type" : "SwiftTarget",
      "name" : "MLXLMTests",
      "path" : "Tests/MLXLMTests",
      "product_dependencies" : [
        "MLX",
        "MLXNN",
        "MLXOptimizers",
        "MLXRandom",
        "Transformers"
      ],
      "sources" : [
        "BaseConfigurationTests.swift",
        "EvalTests.swift",
        "StreamlinedTests.swift",
        "ToolTests.swift",
        "UserInputTests.swift"
      ],
      "target_dependencies" : [
        "MLXLMCommon",
        "MLXLLM",
        "MLXVLM"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MLXLMCommon",
      "module_type" : "SwiftTarget",
      "name" : "MLXLMCommon",
      "path" : "Libraries/MLXLMCommon",
      "product_dependencies" : [
        "MLX",
        "MLXNN",
        "MLXOptimizers",
        "MLXRandom",
        "MLXLinalg",
        "Transformers"
      ],
      "product_memberships" : [
        "MLXLLM",
        "MLXVLM",
        "MLXLMCommon",
        "MLXEmbedders"
      ],
      "sources" : [
        "Adapters/LoRA/DoRA+Layers.swift",
        "Adapters/LoRA/LoRA+Layers.swift",
        "Adapters/LoRA/LoRAContainer.swift",
        "Adapters/LoRA/LoRAModel.swift",
        "Adapters/ModelAdapter.swift",
        "Adapters/ModelAdapterFactory.swift",
        "Adapters/ModelAdapterTypeRegistry.swift",
        "AttentionUtils.swift",
        "BaseConfiguration.swift",
        "Chat.swift",
        "Evaluate.swift",
        "Extensions/Encodable+toolResult.swift",
        "KVCache.swift",
        "LanguageModel.swift",
        "Load.swift",
        "ModelConfiguration.swift",
        "ModelContainer.swift",
        "ModelFactory.swift",
        "Models/Gemma.swift",
        "Module+Extensions.swift",
        "Registries/AbstractModelRegistry.swift",
        "Registries/ModelTypeRegistry.swift",
        "Registries/ProcessorTypeRegistry.swift",
        "Streamlined.swift",
        "StringOrNumber.swift",
        "Tokenizer.swift",
        "Tool/Tool.swift",
        "Tool/ToolCall.swift",
        "Tool/ToolCallProcessor.swift",
        "Tool/ToolParameter.swift",
        "Tool/Value.swift",
        "UserInput.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MLXLLM",
      "module_type" : "SwiftTarget",
      "name" : "MLXLLM",
      "path" : "Libraries/MLXLLM",
      "product_dependencies" : [
        "MLX",
        "MLXFast",
        "MLXNN",
        "MLXOptimizers",
        "MLXRandom",
        "Transformers"
      ],
      "product_memberships" : [
        "MLXLLM"
      ],
      "sources" : [
        "LLMModel.swift",
        "LLMModelFactory.swift",
        "Lora+Data.swift",
        "LoraTrain.swift",
        "Models/BaichuanM1.swift",
        "Models/BailingMoe.swift",
        "Models/Bitnet.swift",
        "Models/Cohere.swift",
        "Models/DeepseekV3.swift",
        "Models/Ernie4_5.swift",
        "Models/Exaone4.swift",
        "Models/FalconH1.swift",
        "Models/GLM4.swift",
        "Models/GPTOSS.swift",
        "Models/Gemma.swift",
        "Models/Gemma2.swift",
        "Models/Gemma3Text.swift",
        "Models/Gemma3nText.swift",
        "Models/Granite.swift",
        "Models/GraniteMoeHybrid.swift",
        "Models/Internlm2.swift",
        "Models/LFM2.swift",
        "Models/LFM2MoE.swift",
        "Models/Lille130m.swift",
        "Models/Llama.swift",
        "Models/MiMo.swift",
        "Models/NanoChat.swift",
        "Models/Olmo2.swift",
        "Models/OlmoE.swift",
        "Models/OpenELM.swift",
        "Models/Phi.swift",
        "Models/Phi3.swift",
        "Models/PhiMoE.swift",
        "Models/Qwen2.swift",
        "Models/Qwen3.swift",
        "Models/Qwen3MoE.swift",
        "Models/RoPEUtils.swift",
        "Models/SSM.swift",
        "Models/SmolLM3.swift",
        "Models/Starcoder2.swift",
        "SuScaledRotaryEmbedding.swift",
        "SwitchLayers.swift"
      ],
      "target_dependencies" : [
        "MLXLMCommon"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MLXEmbedders",
      "module_type" : "SwiftTarget",
      "name" : "MLXEmbedders",
      "path" : "Libraries/Embedders",
      "product_dependencies" : [
        "MLX",
        "MLXFast",
        "MLXNN",
        "Transformers",
        "MLXLinalg"
      ],
      "product_memberships" : [
        "MLXEmbedders"
      ],
      "sources" : [
        "BaseConfiguration.swift",
        "Bert.swift",
        "Configuration.swift",
        "EmbeddingModel.swift",
        "Load.swift",
        "Models.swift",
        "NomicBert.swift",
        "Pooling.swift",
        "Qwen3.swift",
        "Tokenizer.swift"
      ],
      "target_dependencies" : [
        "MLXLMCommon"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.