The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build mlx-swift-lm, reference main (74f85d), with Swift 6.0 for macOS (SPM) on 9 Dec 2025 01:30:09 UTC.

Build Command

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

Build Log

/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:361:24: warning: 'createAttentionMask(h:cache:returnArray:)' is deprecated: Use createAttentionMask(h:cache:windowSize:returnArray:) with a single cache instead
359 |             }
360 |
361 |             let mask = createAttentionMask(h: h, cache: cache)
    |                        `- warning: 'createAttentionMask(h:cache:returnArray:)' is deprecated: Use createAttentionMask(h:cache:windowSize:returnArray:) with a single cache instead
362 |             var x = h
363 |             for (i, layer) in layers.enumerated() {
/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,
[489/512] Compiling MLXLLM Ernie4_5.swift
[490/512] Compiling MLXLLM Exaone4.swift
[491/512] Compiling MLXLLM FalconH1.swift
[492/512] Compiling MLXLLM GLM4.swift
[493/512] Compiling MLXLLM GPTOSS.swift
[494/512] Compiling MLXLLM BaichuanM1.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)
[495/512] 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)
[496/512] 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)
[497/512] 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)
[498/512] 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)
/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:461:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
459 | ///     configuration: LLMRegistry.llama3_8B_4bit)
460 | /// ```
461 | 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
462 |
463 |     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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:22: 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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:69:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:70:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:71:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
 73 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:72:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 73 |         ]
 74 |     }
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/AfMoE.swift:502:22: warning: 'createAttentionMask(h:cache:returnArray:)' is deprecated: Use createAttentionMask(h:cache:windowSize:returnArray:) with a single cache instead
500 |         // Create attention masks
501 |         let faCache: [KVCache]? = layerCache.map { [$0[faIdx]] }
502 |         let faMask = createAttentionMask(h: h, cache: faCache)
    |                      `- warning: 'createAttentionMask(h:cache:returnArray:)' is deprecated: Use createAttentionMask(h:cache:windowSize:returnArray:) with a single cache instead
503 |
504 |         var swaMask: MLXFast.ScaledDotProductAttentionMaskMode = .none
/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:461:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
459 | ///     configuration: LLMRegistry.llama3_8B_4bit)
460 | /// ```
461 | 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
462 |
463 |     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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:22: 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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:69:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:70:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:71:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
 73 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:72:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 73 |         ]
 74 |     }
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/AfMoE.swift:502:22: warning: 'createAttentionMask(h:cache:returnArray:)' is deprecated: Use createAttentionMask(h:cache:windowSize:returnArray:) with a single cache instead
500 |         // Create attention masks
501 |         let faCache: [KVCache]? = layerCache.map { [$0[faIdx]] }
502 |         let faMask = createAttentionMask(h: h, cache: faCache)
    |                      `- warning: 'createAttentionMask(h:cache:returnArray:)' is deprecated: Use createAttentionMask(h:cache:windowSize:returnArray:) with a single cache instead
503 |
504 |         var swaMask: MLXFast.ScaledDotProductAttentionMaskMode = .none
/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:461:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
459 | ///     configuration: LLMRegistry.llama3_8B_4bit)
460 | /// ```
461 | 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
462 |
463 |     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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:22: 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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:69:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:70:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:71:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
 73 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:72:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 73 |         ]
 74 |     }
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/AfMoE.swift:502:22: warning: 'createAttentionMask(h:cache:returnArray:)' is deprecated: Use createAttentionMask(h:cache:windowSize:returnArray:) with a single cache instead
500 |         // Create attention masks
501 |         let faCache: [KVCache]? = layerCache.map { [$0[faIdx]] }
502 |         let faMask = createAttentionMask(h: h, cache: faCache)
    |                      `- warning: 'createAttentionMask(h:cache:returnArray:)' is deprecated: Use createAttentionMask(h:cache:windowSize:returnArray:) with a single cache instead
503 |
504 |         var swaMask: MLXFast.ScaledDotProductAttentionMaskMode = .none
/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:461:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
459 | ///     configuration: LLMRegistry.llama3_8B_4bit)
460 | /// ```
461 | 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
462 |
463 |     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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:22: 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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:69:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:70:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:71:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
 73 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:72:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 73 |         ]
 74 |     }
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/AfMoE.swift:502:22: warning: 'createAttentionMask(h:cache:returnArray:)' is deprecated: Use createAttentionMask(h:cache:windowSize:returnArray:) with a single cache instead
500 |         // Create attention masks
501 |         let faCache: [KVCache]? = layerCache.map { [$0[faIdx]] }
502 |         let faMask = createAttentionMask(h: h, cache: faCache)
    |                      `- warning: 'createAttentionMask(h:cache:returnArray:)' is deprecated: Use createAttentionMask(h:cache:windowSize:returnArray:) with a single cache instead
503 |
504 |         var swaMask: MLXFast.ScaledDotProductAttentionMaskMode = .none
[503/512] Compiling MLXLLM AfMoE.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:461:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
459 | ///     configuration: LLMRegistry.llama3_8B_4bit)
460 | /// ```
461 | 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
462 |
463 |     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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:22: 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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/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 |             "olmo3": create(Olmo3Configuration.self, Olmo3Model.init),
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:69:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:70:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:71:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
 73 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:72:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 70 |             "afmoe": create(AfMoEConfiguration.self, AfMoEModel.init),
 71 |             "jamba_3b": create(JambaConfiguration.self, JambaModel.init),
 72 |             "mistral3": create(Mistral3TextConfiguration.self, Mistral3TextModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 73 |         ]
 74 |     }
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/AfMoE.swift:502:22: warning: 'createAttentionMask(h:cache:returnArray:)' is deprecated: Use createAttentionMask(h:cache:windowSize:returnArray:) with a single cache instead
500 |         // Create attention masks
501 |         let faCache: [KVCache]? = layerCache.map { [$0[faIdx]] }
502 |         let faMask = createAttentionMask(h: h, cache: faCache)
    |                      `- warning: 'createAttentionMask(h:cache:returnArray:)' is deprecated: Use createAttentionMask(h:cache:windowSize:returnArray:) with a single cache instead
503 |
504 |         var swaMask: MLXFast.ScaledDotProductAttentionMaskMode = .none
[504/512] Compiling MLXLLM SmolLM3.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/SuScaledRoPE.swift:58:13: warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
56 |
57 |         // Apply scaling only to the dimensions that will be rotated
58 |         var scaledX = x
   |             `- warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
59 |         scaledX[.ellipsis, 0 ..< dimensions] = scale * scaledX[.ellipsis, 0 ..< dimensions]
60 |
[505/512] Compiling MLXLLM Starcoder2.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/SuScaledRoPE.swift:58:13: warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
56 |
57 |         // Apply scaling only to the dimensions that will be rotated
58 |         var scaledX = x
   |             `- warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
59 |         scaledX[.ellipsis, 0 ..< dimensions] = scale * scaledX[.ellipsis, 0 ..< dimensions]
60 |
[506/512] Compiling MLXLLM SuScaledRoPE.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/SuScaledRoPE.swift:58:13: warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
56 |
57 |         // Apply scaling only to the dimensions that will be rotated
58 |         var scaledX = x
   |             `- warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
59 |         scaledX[.ellipsis, 0 ..< dimensions] = scale * scaledX[.ellipsis, 0 ..< dimensions]
60 |
[507/512] Compiling MLXLLM SwitchLayers.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/SuScaledRoPE.swift:58:13: warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
56 |
57 |         // Apply scaling only to the dimensions that will be rotated
58 |         var scaledX = x
   |             `- warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
59 |         scaledX[.ellipsis, 0 ..< dimensions] = scale * scaledX[.ellipsis, 0 ..< dimensions]
60 |
[508/512] 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
/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(
[509/512] 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
/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(
[510/512] 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
/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(
[511/512] 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/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(
[512/512] Compiling MLXLLM Granite.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/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(
Fetching https://github.com/huggingface/swift-transformers
Fetching https://github.com/ml-explore/mlx-swift
[1/5141] Fetching swift-transformers
[53/17343] Fetching swift-transformers, mlx-swift
Fetched https://github.com/ml-explore/mlx-swift from cache (1.57s)
Fetched https://github.com/huggingface/swift-transformers from cache (1.57s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.29.1 (0.51s)
Fetching https://github.com/apple/swift-numerics
[1/6384] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.09s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.1.4 (0.50s)
Fetching https://github.com/huggingface/swift-jinja.git
[1/783] Fetching swift-jinja
Fetched https://github.com/huggingface/swift-jinja.git from cache (0.94s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.45s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.2.0 (0.59s)
Fetching https://github.com/apple/swift-collections.git
[1/18364] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.88s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.59s)
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.1.4
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/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.2.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
BUILD FAILURE 6.0 macosSpm