The Swift Package Index logo.Swift Package Index

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

Build Information

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

Swift 6 data race errors: 0

Build Command

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

Build Log

  2 |
  3 | import AVFoundation
  4 | import CoreImage.CIFilterBuiltins
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreImage'
  5 | import MLX
  6 | import MLXLMCommon
    :
 17 | }
 18 |
 19 | private let context = CIContext()
    |             |- note: annotate 'context' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |
 21 | /// Collection of methods for processing media (images, video, etc.).
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:304:13: warning: initialization of immutable value 'secondsPerSample' was never used; consider replacing with assignment to '_' or removing it
302 |         let durationInSeconds = duration.seconds
303 |         let samplesPerSecond = Double(samplesPerSecond)
304 |         let secondsPerSample = 1.0 / samplesPerSecond
    |             `- warning: initialization of immutable value 'secondsPerSample' was never used; consider replacing with assignment to '_' or removing it
305 |         let totalFramesToSample = durationInSeconds * samplesPerSecond
306 |         let durationTimeValue = duration.value
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:319:46: warning: immutable value 'requested' was never used; consider replacing with '_' or removing it
317 |         for await result in await generator.images(for: sampledTimes) {
318 |             switch result {
319 |             case .success(requestedTime: let requested, let image, actualTime: let actual):
    |                                              `- warning: immutable value 'requested' was never used; consider replacing with '_' or removing it
320 |                 let ciImage = CIImage(
321 |                     cgImage: image, options: [.colorSpace: CGColorSpace(name: CGColorSpace.sRGB)!])
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:319:84: warning: immutable value 'actual' was never used; consider replacing with '_' or removing it
317 |         for await result in await generator.images(for: sampledTimes) {
318 |             switch result {
319 |             case .success(requestedTime: let requested, let image, actualTime: let actual):
    |                                                                                    `- warning: immutable value 'actual' was never used; consider replacing with '_' or removing it
320 |                 let ciImage = CIImage(
321 |                     cgImage: image, options: [.colorSpace: CGColorSpace(name: CGColorSpace.sRGB)!])
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:323:46: warning: immutable value 'requested' was never used; consider replacing with '_' or removing it
321 |                     cgImage: image, options: [.colorSpace: CGColorSpace(name: CGColorSpace.sRGB)!])
322 |                 ciImages.append(ciImage)
323 |             case .failure(requestedTime: let requested, let error):
    |                                              `- warning: immutable value 'requested' was never used; consider replacing with '_' or removing it
324 |                 break
325 |             }
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:323:61: warning: immutable value 'error' was never used; consider replacing with '_' or removing it
321 |                     cgImage: image, options: [.colorSpace: CGColorSpace(name: CGColorSpace.sRGB)!])
322 |                 ciImages.append(ciImage)
323 |             case .failure(requestedTime: let requested, let error):
    |                                                             `- warning: immutable value 'error' was never used; consider replacing with '_' or removing it
324 |                 break
325 |             }
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:317:29: warning: no 'async' operations occur within 'await' expression
315 |         // Collect the frames
316 |         var ciImages: [CIImage] = []
317 |         for await result in await generator.images(for: sampledTimes) {
    |                             `- warning: no 'async' operations occur within 'await' expression
318 |             switch result {
319 |             case .success(requestedTime: let requested, let image, actualTime: let actual):
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:358:13: warning: variable 'desiredFrames' was never mutated; consider changing to 'let' constant
356 |         // Note: the round was not present in `asCIImageSequence`, so we may now be passing 1 more frame to Qwen depending on video duration.
357 |         let estimatedFrames = Int(round(fps * duration.seconds))
358 |         var desiredFrames = min(estimatedFrames, maxFrames)
    |             `- warning: variable 'desiredFrames' was never mutated; consider changing to 'let' constant
359 |         let finalFrameCount = max(desiredFrames, 1)
360 |
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:373:13: warning: variable 'frames' was never used; consider replacing with '_' or removing it
371 |         var timestamps: [CMTime] = []
372 |
373 |         var frames: [VideoFrame] = []
    |             `- warning: variable 'frames' was never used; consider replacing with '_' or removing it
374 |
375 |         for await result in await generator.images(for: sampledTimes) {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:377:46: warning: immutable value 'requested' was never used; consider replacing with '_' or removing it
375 |         for await result in await generator.images(for: sampledTimes) {
376 |             switch result {
377 |             case .success(requestedTime: let requested, let image, actualTime: let actual):
    |                                              `- warning: immutable value 'requested' was never used; consider replacing with '_' or removing it
378 |                 let ciImage = CIImage(
379 |                     cgImage: image, options: [.colorSpace: CGColorSpace(name: CGColorSpace.sRGB)!])
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:383:46: warning: immutable value 'requested' was never used; consider replacing with '_' or removing it
381 |                 ciImages.append(frame.frame)
382 |                 timestamps.append(frame.timeStamp)
383 |             case .failure(requestedTime: let requested, let error):
    |                                              `- warning: immutable value 'requested' was never used; consider replacing with '_' or removing it
384 |                 break
385 |             }
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:383:61: warning: immutable value 'error' was never used; consider replacing with '_' or removing it
381 |                 ciImages.append(frame.frame)
382 |                 timestamps.append(frame.timeStamp)
383 |             case .failure(requestedTime: let requested, let error):
    |                                                             `- warning: immutable value 'error' was never used; consider replacing with '_' or removing it
384 |                 break
385 |             }
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:375:29: warning: no 'async' operations occur within 'await' expression
373 |         var frames: [VideoFrame] = []
374 |
375 |         for await result in await generator.images(for: sampledTimes) {
    |                             `- warning: no 'async' operations occur within 'await' expression
376 |             switch result {
377 |             case .success(requestedTime: let requested, let image, actualTime: let actual):
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/FastVLM.swift:1011:23: warning: no calls to throwing functions occur within 'try' expression
1009 |         // Unfortunately we don't have a "render" option in Tokenizers yet, so decoding
1010 |         let promptTokens = try tokenizer.applyChatTemplate(messages: messages)
1011 |         let decoded = try tokenizer.decode(tokens: promptTokens, skipSpecialTokens: false)
     |                       `- warning: no calls to throwing functions occur within 'try' expression
1012 |
1013 |         // Find <image> and replace with token id -200
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/FastVLM.swift:1119:45: warning: 'index(of:)' is deprecated: renamed to 'firstIndex(of:)'
1117 |
1118 |         let inputIdsArray = inputIds.asArray(Int.self)
1119 |         let imageTokenIndex = inputIdsArray.index(of: config.baseConfiguration.imageTokenIndex) ?? 0
     |                                             |- warning: 'index(of:)' is deprecated: renamed to 'firstIndex(of:)'
     |                                             `- note: use 'firstIndex(of:)' instead
1120 |         // Embed tokens before and after and then split to insert the image
1121 |         let tokens = inputIdsArray.split(separator: config.baseConfiguration.imageTokenIndex)
[493/508] Compiling MLXLLM SmolLM3.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/SuScaledRotaryEmbedding.swift:42:13: warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
40 |     public func callAsFunction(_ x: MLXArray, offset: Int = 0) -> MLXArray {
41 |         // Apply scaling only to the dimensions that will be rotated
42 |         var scaledX = x
   |             `- warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
43 |         let sliceToScale = scaledX[.ellipsis, 0 ..< dimensions]
44 |         scaledX[.ellipsis, 0 ..< dimensions] = scale * sliceToScale
[494/508] Compiling MLXLLM Starcoder2.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/SuScaledRotaryEmbedding.swift:42:13: warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
40 |     public func callAsFunction(_ x: MLXArray, offset: Int = 0) -> MLXArray {
41 |         // Apply scaling only to the dimensions that will be rotated
42 |         var scaledX = x
   |             `- warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
43 |         let sliceToScale = scaledX[.ellipsis, 0 ..< dimensions]
44 |         scaledX[.ellipsis, 0 ..< dimensions] = scale * sliceToScale
[495/508] Compiling MLXLLM SuScaledRotaryEmbedding.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/SuScaledRotaryEmbedding.swift:42:13: warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
40 |     public func callAsFunction(_ x: MLXArray, offset: Int = 0) -> MLXArray {
41 |         // Apply scaling only to the dimensions that will be rotated
42 |         var scaledX = x
   |             `- warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
43 |         let sliceToScale = scaledX[.ellipsis, 0 ..< dimensions]
44 |         scaledX[.ellipsis, 0 ..< dimensions] = scale * sliceToScale
[496/508] Compiling MLXLLM SwitchLayers.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/SuScaledRotaryEmbedding.swift:42:13: warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
40 |     public func callAsFunction(_ x: MLXArray, offset: Int = 0) -> MLXArray {
41 |         // Apply scaling only to the dimensions that will be rotated
42 |         var scaledX = x
   |             `- warning: variable 'scaledX' was never mutated; consider changing to 'let' constant
43 |         let sliceToScale = scaledX[.ellipsis, 0 ..< dimensions]
44 |         scaledX[.ellipsis, 0 ..< dimensions] = scale * sliceToScale
[497/508] Compiling MLXLLM LLMModel.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:27:13: warning: variable 'state' was never mutated; consider changing to 'let' constant
25 |         let prefillStepSize = windowSize ?? 512
26 |         var y = input.text
27 |         var state: LMOutput.State? = nil
   |             `- warning: variable 'state' was never mutated; consider changing to 'let' constant
28 |
29 |         // prepare the prompt in chunks if larger than the prefill size
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:32:17: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
30 |         while y.tokens.size > prefillStepSize {
31 |             let input = y[.newAxis, ..<prefillStepSize]
32 |             let result = self(input, cache: cache.isEmpty ? nil : cache, state: state)
   |                 `- warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
33 |             eval(cache)
34 |             y = y[prefillStepSize...]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:451:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
449 | ///     configuration: LLMRegistry.llama3_8B_4bit)
450 | /// ```
451 | public class LLMModelFactory: ModelFactory {
    |              `- warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
452 |
453 |     public init(typeRegistry: ModelTypeRegistry, modelRegistry: AbstractModelRegistry) {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:31:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 29 |     private static func all() -> [String: @Sendable (URL) throws -> any LanguageModel] {
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:32:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:33:20: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
    |                    `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:34:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:35:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:36:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:37:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:38:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:39:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:40:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:41:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:42:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:43:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:44:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:45:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:46:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:47:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:48:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:49:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:50:33: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
    |                                 `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:52:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:53:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:54:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:55:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:56:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:57:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:58:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:59:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:60:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:61:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:62:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:63:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:64:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:65:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 69 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:68:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |         ]
 70 |     }
[498/508] Compiling MLXLLM LLMModelFactory.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:27:13: warning: variable 'state' was never mutated; consider changing to 'let' constant
25 |         let prefillStepSize = windowSize ?? 512
26 |         var y = input.text
27 |         var state: LMOutput.State? = nil
   |             `- warning: variable 'state' was never mutated; consider changing to 'let' constant
28 |
29 |         // prepare the prompt in chunks if larger than the prefill size
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:32:17: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
30 |         while y.tokens.size > prefillStepSize {
31 |             let input = y[.newAxis, ..<prefillStepSize]
32 |             let result = self(input, cache: cache.isEmpty ? nil : cache, state: state)
   |                 `- warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
33 |             eval(cache)
34 |             y = y[prefillStepSize...]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:451:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
449 | ///     configuration: LLMRegistry.llama3_8B_4bit)
450 | /// ```
451 | public class LLMModelFactory: ModelFactory {
    |              `- warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
452 |
453 |     public init(typeRegistry: ModelTypeRegistry, modelRegistry: AbstractModelRegistry) {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:31:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 29 |     private static func all() -> [String: @Sendable (URL) throws -> any LanguageModel] {
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:32:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:33:20: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
    |                    `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:34:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:35:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:36:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:37:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:38:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:39:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:40:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:41:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:42:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:43:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:44:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:45:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:46:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:47:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:48:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:49:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:50:33: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
    |                                 `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:52:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:53:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:54:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:55:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:56:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:57:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:58:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:59:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:60:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:61:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:62:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:63:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:64:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:65:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 69 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:68:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |         ]
 70 |     }
[499/508] Compiling MLXLLM Lora+Data.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:27:13: warning: variable 'state' was never mutated; consider changing to 'let' constant
25 |         let prefillStepSize = windowSize ?? 512
26 |         var y = input.text
27 |         var state: LMOutput.State? = nil
   |             `- warning: variable 'state' was never mutated; consider changing to 'let' constant
28 |
29 |         // prepare the prompt in chunks if larger than the prefill size
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:32:17: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
30 |         while y.tokens.size > prefillStepSize {
31 |             let input = y[.newAxis, ..<prefillStepSize]
32 |             let result = self(input, cache: cache.isEmpty ? nil : cache, state: state)
   |                 `- warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
33 |             eval(cache)
34 |             y = y[prefillStepSize...]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:451:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
449 | ///     configuration: LLMRegistry.llama3_8B_4bit)
450 | /// ```
451 | public class LLMModelFactory: ModelFactory {
    |              `- warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
452 |
453 |     public init(typeRegistry: ModelTypeRegistry, modelRegistry: AbstractModelRegistry) {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:31:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 29 |     private static func all() -> [String: @Sendable (URL) throws -> any LanguageModel] {
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:32:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:33:20: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
    |                    `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:34:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:35:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:36:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:37:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:38:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:39:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:40:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:41:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:42:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:43:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:44:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:45:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:46:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:47:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:48:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:49:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:50:33: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
    |                                 `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:52:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:53:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:54:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:55:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:56:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:57:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:58:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:59:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:60:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:61:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:62:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:63:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:64:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:65:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 69 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:68:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |         ]
 70 |     }
[500/508] Compiling MLXLLM LoraTrain.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:27:13: warning: variable 'state' was never mutated; consider changing to 'let' constant
25 |         let prefillStepSize = windowSize ?? 512
26 |         var y = input.text
27 |         var state: LMOutput.State? = nil
   |             `- warning: variable 'state' was never mutated; consider changing to 'let' constant
28 |
29 |         // prepare the prompt in chunks if larger than the prefill size
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:32:17: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
30 |         while y.tokens.size > prefillStepSize {
31 |             let input = y[.newAxis, ..<prefillStepSize]
32 |             let result = self(input, cache: cache.isEmpty ? nil : cache, state: state)
   |                 `- warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
33 |             eval(cache)
34 |             y = y[prefillStepSize...]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:451:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
449 | ///     configuration: LLMRegistry.llama3_8B_4bit)
450 | /// ```
451 | public class LLMModelFactory: ModelFactory {
    |              `- warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
452 |
453 |     public init(typeRegistry: ModelTypeRegistry, modelRegistry: AbstractModelRegistry) {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:31:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 29 |     private static func all() -> [String: @Sendable (URL) throws -> any LanguageModel] {
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:32:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:33:20: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
    |                    `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:34:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:35:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:36:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:37:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:38:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:39:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:40:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:41:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:42:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:43:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:44:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:45:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:46:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:47:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:48:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:49:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:50:33: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
    |                                 `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:52:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:53:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:54:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:55:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:56:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:57:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:58:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:59:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:60:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:61:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:62:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:63:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:64:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:65:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 69 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:68:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |         ]
 70 |     }
[501/508] Compiling MLXLLM BaichuanM1.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:27:13: warning: variable 'state' was never mutated; consider changing to 'let' constant
25 |         let prefillStepSize = windowSize ?? 512
26 |         var y = input.text
27 |         var state: LMOutput.State? = nil
   |             `- warning: variable 'state' was never mutated; consider changing to 'let' constant
28 |
29 |         // prepare the prompt in chunks if larger than the prefill size
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModel.swift:32:17: warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
30 |         while y.tokens.size > prefillStepSize {
31 |             let input = y[.newAxis, ..<prefillStepSize]
32 |             let result = self(input, cache: cache.isEmpty ? nil : cache, state: state)
   |                 `- warning: initialization of immutable value 'result' was never used; consider replacing with assignment to '_' or removing it
33 |             eval(cache)
34 |             y = y[prefillStepSize...]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:451:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
449 | ///     configuration: LLMRegistry.llama3_8B_4bit)
450 | /// ```
451 | public class LLMModelFactory: ModelFactory {
    |              `- warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
452 |
453 |     public init(typeRegistry: ModelTypeRegistry, modelRegistry: AbstractModelRegistry) {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:31:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 29 |     private static func all() -> [String: @Sendable (URL) throws -> any LanguageModel] {
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:32:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 30 |         [
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:33:20: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 31 |             "mistral": create(LlamaConfiguration.self, LlamaModel.init),
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
    |                    `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:34:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 32 |             "llama": create(LlamaConfiguration.self, LlamaModel.init),
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:35:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 33 |             "phi": create(PhiConfiguration.self, PhiModel.init),
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:36:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 34 |             "phi3": create(Phi3Configuration.self, Phi3Model.init),
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:37:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 35 |             "phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.init),
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:38:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 36 |             "gemma": create(GemmaConfiguration.self, GemmaModel.init),
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:39:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 37 |             "gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:40:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 38 |             "gemma3": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:41:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 39 |             "gemma3_text": create(Gemma3TextConfiguration.self, Gemma3TextModel.init),
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:42:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 40 |             "gemma3n": create(Gemma3nTextConfiguration.self, Gemma3nTextModel.init),
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:43:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 41 |             "qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:44:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 42 |             "qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:45:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 43 |             "qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:46:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 44 |             "starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:47:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 45 |             "cohere": create(CohereConfiguration.self, CohereModel.init),
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:48:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 46 |             "openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:49:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 47 |             "internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:50:33: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 48 |             "deepseek_v3": create(DeepseekV3Configuration.self, DeepseekV3Model.init),
 49 |             "granite": create(GraniteConfiguration.self, GraniteModel.init),
 50 |             "granitemoehybrid": create(
    |                                 `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:52:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 50 |             "granitemoehybrid": create(
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:53:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 51 |                 GraniteMoeHybridConfiguration.self, GraniteMoeHybridModel.init),
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:54:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 52 |             "mimo": create(MiMoConfiguration.self, MiMoModel.init),
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:55:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 53 |             "glm4": create(GLM4Configuration.self, GLM4Model.init),
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:56:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 54 |             "acereason": create(Qwen2Configuration.self, Qwen2Model.init),
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:57:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 55 |             "falcon_h1": create(FalconH1Configuration.self, FalconH1Model.init),
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:58:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 56 |             "bitnet": create(BitnetConfiguration.self, BitnetModel.init),
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:59:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 57 |             "smollm3": create(SmolLM3Configuration.self, SmolLM3Model.init),
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
    |                     `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:60:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 58 |             "ernie4_5": create(Ernie45Configuration.self, Ernie45Model.init),
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:61:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 59 |             "lfm2": create(LFM2Configuration.self, LFM2Model.init),
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:62:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 60 |             "baichuan_m1": create(BaichuanM1Configuration.self, BaichuanM1Model.init),
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:63:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 61 |             "exaone4": create(Exaone4Configuration.self, Exaone4Model.init),
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:64:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 62 |             "gpt_oss": create(GPTOSSConfiguration.self, GPTOSSModel.init),
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:65:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 63 |             "lille-130m": create(Lille130mConfiguration.self, Lille130mModel.init),
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
    |                      `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:66:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 64 |             "olmoe": create(OlmoEConfiguration.self, OlmoEModel.init),
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:67:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 65 |             "olmo2": create(Olmo2Configuration.self, Olmo2Model.init),
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
 69 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:68:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 66 |             "bailing_moe": create(BailingMoeConfiguration.self, BailingMoeModel.init),
 67 |             "lfm2_moe": create(LFM2MoEConfiguration.self, LFM2MoEModel.init),
 68 |             "nanochat": create(NanoChatConfiguration.self, NanoChatModel.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 69 |         ]
 70 |     }
[502/508] Emitting module MLXLLM
/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/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/LLMModelFactory.swift:451:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
449 | ///     configuration: LLMRegistry.llama3_8B_4bit)
450 | /// ```
451 | public class LLMModelFactory: ModelFactory {
    |              `- warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
452 |
453 |     public init(typeRegistry: ModelTypeRegistry, modelRegistry: AbstractModelRegistry) {
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/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/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/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/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)
[507/508] Compiling MLXLLM Ernie4_5.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/DeepseekV3.swift:6:8: warning: file 'DeepseekV3.swift' is part of module 'MLXLLM'; ignoring import
  4 | import MLX
  5 | import MLXFast
  6 | import MLXLLM
    |        `- warning: file 'DeepseekV3.swift' is part of module 'MLXLLM'; ignoring import
  7 | import MLXLMCommon
  8 | import MLXNN
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:231:17: warning: left side of nil coalescing operator '??' has non-optional type 'Int', so the right side is never used
229 |         let inds = argPartition(-scores, kth: k - 1, axis: -1)[.ellipsis, ..<k]
230 |         scores = takeAlong(scores, inds, axis: -1)
231 |         if topK ?? 1 > 1, normTopkProb {
    |                 `- warning: left side of nil coalescing operator '??' has non-optional type 'Int', so the right side is never used
232 |             let denominator = scores.sum(axis: -1, keepDims: true) + 1e-20
233 |             scores = scores / denominator
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:215:27: warning: immutable value 'h' was never used; consider replacing with '_' or removing it
213 |
214 |     func groupSelect(_ x: MLXArray) -> (inds: MLXArray, scores: MLXArray) {
215 |         let (bsz, seqLen, h) = (x.dim(0), x.dim(1), x.dim(2))
    |                           `- warning: immutable value 'h' was never used; consider replacing with '_' or removing it
216 |
217 |         let logits = gate(x)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/BailingMoe.swift:224:13: warning: variable 'groupIdx' was never mutated; consider changing to 'let' constant
222 |         let topKGroup = top(groupScores, k: 2, axis: -1).sum(axis: -1, keepDims: true)
223 |         var k = nGroup - topkGroup
224 |         var groupIdx = argPartition(topKGroup, kth: k - 1, axis: -2)[.ellipsis, ..<k, 0...]
    |             `- warning: variable 'groupIdx' was never mutated; consider changing to 'let' constant
225 |         scores = putAlong(groupScores, groupIdx, values: MLXArray(0.0), axis: -2)
226 |         scores = flattened(scores, start: -2, end: -1)
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/DeepseekV3.swift:357:27: warning: immutable value 'h' was never used; consider replacing with '_' or removing it
355 |
356 |     func callAsFunction(_ x: MLXArray) -> (MLXArray, MLXArray) {
357 |         let (bsz, seqLen, h) = (x.dim(0), x.dim(1), x.dim(2))
    |                           `- warning: immutable value 'h' was never used; consider replacing with '_' or removing it
358 |
359 |         let hiddenStates = x.matmul(weight.T)
[508/508] Compiling MLXVLM VLMModelFactory.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:230:14: warning: non-final class 'VLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
228 | ///     configuration: VLMRegistry.paligemma3bMix4488bit)
229 | /// ```
230 | public class VLMModelFactory: ModelFactory {
    |              `- warning: non-final class 'VLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
231 |
232 |     public init(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:85:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 83 |     private static func all() -> [String: @Sendable (URL) throws -> any LanguageModel] {
 84 |         [
 85 |             "paligemma": create(PaliGemmaConfiguration.self, PaliGemma.init),
    |                          `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 86 |             "qwen2_vl": create(Qwen2VLConfiguration.self, Qwen2VL.init),
 87 |             "qwen2_5_vl": create(Qwen25VLConfiguration.self, Qwen25VL.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:86:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 84 |         [
 85 |             "paligemma": create(PaliGemmaConfiguration.self, PaliGemma.init),
 86 |             "qwen2_vl": create(Qwen2VLConfiguration.self, Qwen2VL.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 87 |             "qwen2_5_vl": create(Qwen25VLConfiguration.self, Qwen25VL.init),
 88 |             "qwen3_vl": create(Qwen3VLConfiguration.self, Qwen3VL.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:87:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 85 |             "paligemma": create(PaliGemmaConfiguration.self, PaliGemma.init),
 86 |             "qwen2_vl": create(Qwen2VLConfiguration.self, Qwen2VL.init),
 87 |             "qwen2_5_vl": create(Qwen25VLConfiguration.self, Qwen25VL.init),
    |                           `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 88 |             "qwen3_vl": create(Qwen3VLConfiguration.self, Qwen3VL.init),
 89 |             "idefics3": create(Idefics3Configuration.self, Idefics3.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:88:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 86 |             "qwen2_vl": create(Qwen2VLConfiguration.self, Qwen2VL.init),
 87 |             "qwen2_5_vl": create(Qwen25VLConfiguration.self, Qwen25VL.init),
 88 |             "qwen3_vl": create(Qwen3VLConfiguration.self, Qwen3VL.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 89 |             "idefics3": create(Idefics3Configuration.self, Idefics3.init),
 90 |             "gemma3": create(Gemma3Configuration.self, Gemma3.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:89:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 87 |             "qwen2_5_vl": create(Qwen25VLConfiguration.self, Qwen25VL.init),
 88 |             "qwen3_vl": create(Qwen3VLConfiguration.self, Qwen3VL.init),
 89 |             "idefics3": create(Idefics3Configuration.self, Idefics3.init),
    |                         `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 90 |             "gemma3": create(Gemma3Configuration.self, Gemma3.init),
 91 |             "smolvlm": create(SmolVLM2Configuration.self, SmolVLM2.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:90:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 88 |             "qwen3_vl": create(Qwen3VLConfiguration.self, Qwen3VL.init),
 89 |             "idefics3": create(Idefics3Configuration.self, Idefics3.init),
 90 |             "gemma3": create(Gemma3Configuration.self, Gemma3.init),
    |                       `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 91 |             "smolvlm": create(SmolVLM2Configuration.self, SmolVLM2.init),
 92 |             // TODO: see if we can make it work with fastvlm rather than llava_qwen2
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:91:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 89 |             "idefics3": create(Idefics3Configuration.self, Idefics3.init),
 90 |             "gemma3": create(Gemma3Configuration.self, Gemma3.init),
 91 |             "smolvlm": create(SmolVLM2Configuration.self, SmolVLM2.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 92 |             // TODO: see if we can make it work with fastvlm rather than llava_qwen2
 93 |             "fastvlm": create(FastVLMConfiguration.self, FastVLM.init),
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:93:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 91 |             "smolvlm": create(SmolVLM2Configuration.self, SmolVLM2.init),
 92 |             // TODO: see if we can make it work with fastvlm rather than llava_qwen2
 93 |             "fastvlm": create(FastVLMConfiguration.self, FastVLM.init),
    |                        `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 94 |             "llava_qwen2": create(FastVLMConfiguration.self, FastVLM.init),
 95 |         ]
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:94:28: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 92 |             // TODO: see if we can make it work with fastvlm rather than llava_qwen2
 93 |             "fastvlm": create(FastVLMConfiguration.self, FastVLM.init),
 94 |             "llava_qwen2": create(FastVLMConfiguration.self, FastVLM.init),
    |                            `- warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
 95 |         ]
 96 |     }
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:110:35: warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
108 |     {
109 |         [
110 |             "PaliGemmaProcessor": create(
    |                                   `- warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
111 |                 PaliGemmaProcessorConfiguration.self, PaliGemmaProcessor.init),
112 |             "Qwen2VLProcessor": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:112:33: warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
110 |             "PaliGemmaProcessor": create(
111 |                 PaliGemmaProcessorConfiguration.self, PaliGemmaProcessor.init),
112 |             "Qwen2VLProcessor": create(
    |                                 `- warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
113 |                 Qwen2VLProcessorConfiguration.self, Qwen2VLProcessor.init),
114 |             "Qwen2_5_VLProcessor": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:114:36: warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
112 |             "Qwen2VLProcessor": create(
113 |                 Qwen2VLProcessorConfiguration.self, Qwen2VLProcessor.init),
114 |             "Qwen2_5_VLProcessor": create(
    |                                    `- warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
115 |                 Qwen25VLProcessorConfiguration.self, Qwen25VLProcessor.init),
116 |             "Qwen3VLProcessor": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:116:33: warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
114 |             "Qwen2_5_VLProcessor": create(
115 |                 Qwen25VLProcessorConfiguration.self, Qwen25VLProcessor.init),
116 |             "Qwen3VLProcessor": create(
    |                                 `- warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
117 |                 Qwen3VLProcessorConfiguration.self, Qwen3VLProcessor.init),
118 |             "Idefics3Processor": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:118:34: warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
116 |             "Qwen3VLProcessor": create(
117 |                 Qwen3VLProcessorConfiguration.self, Qwen3VLProcessor.init),
118 |             "Idefics3Processor": create(
    |                                  `- warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
119 |                 Idefics3ProcessorConfiguration.self, Idefics3Processor.init),
120 |             "Gemma3Processor": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:120:32: warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
118 |             "Idefics3Processor": create(
119 |                 Idefics3ProcessorConfiguration.self, Idefics3Processor.init),
120 |             "Gemma3Processor": create(
    |                                `- warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
121 |                 Gemma3ProcessorConfiguration.self, Gemma3Processor.init),
122 |             "SmolVLMProcessor": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:122:33: warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
120 |             "Gemma3Processor": create(
121 |                 Gemma3ProcessorConfiguration.self, Gemma3Processor.init),
122 |             "SmolVLMProcessor": create(
    |                                 `- warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
123 |                 SmolVLMProcessorConfiguration.self, SmolVLMProcessor.init),
124 |             "FastVLMProcessor": create(
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:124:33: warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
122 |             "SmolVLMProcessor": create(
123 |                 SmolVLMProcessorConfiguration.self, SmolVLMProcessor.init),
124 |             "FastVLMProcessor": create(
    |                                 `- warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
125 |                 FastVLMProcessorConfiguration.self, FastVLMProcessor.init),
126 |         ]
Build complete! (64.22s)
Fetching https://github.com/huggingface/swift-transformers
Fetching https://github.com/ml-explore/mlx-swift
[1/5000] Fetching swift-transformers
[2/16768] Fetching swift-transformers, mlx-swift
Fetched https://github.com/huggingface/swift-transformers from cache (1.55s)
Fetched https://github.com/ml-explore/mlx-swift from cache (1.55s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.29.1 (0.49s)
Fetching https://github.com/apple/swift-numerics
[1/6380] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.05s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.1.2 (0.44s)
Fetching https://github.com/huggingface/swift-jinja.git
[1/759] Fetching swift-jinja
Fetched https://github.com/huggingface/swift-jinja.git from cache (0.90s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.1.1 (0.45s)
Fetching https://github.com/apple/swift-collections.git
[1/18314] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.86s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.44s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.57s)
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.29.1
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.1.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.1.2
Build complete.
{
  "dependencies" : [
    {
      "identity" : "mlx-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.29.1",
            "upper_bound" : "0.30.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ml-explore/mlx-swift"
    },
    {
      "identity" : "swift-transformers",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "1.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/huggingface/swift-transformers"
    }
  ],
  "manifest_display_name" : "mlx-swift-lm",
  "name" : "mlx-swift-lm",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "MLXLLM",
      "targets" : [
        "MLXLLM"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MLXVLM",
      "targets" : [
        "MLXVLM"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MLXLMCommon",
      "targets" : [
        "MLXLMCommon"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MLXEmbedders",
      "targets" : [
        "MLXEmbedders"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MLXVLM",
      "module_type" : "SwiftTarget",
      "name" : "MLXVLM",
      "path" : "Libraries/MLXVLM",
      "product_dependencies" : [
        "MLX",
        "MLXFast",
        "MLXNN",
        "MLXOptimizers",
        "MLXRandom",
        "Transformers"
      ],
      "product_memberships" : [
        "MLXVLM"
      ],
      "sources" : [
        "MediaProcessing.swift",
        "Models/FastVLM.swift",
        "Models/Gemma3.swift",
        "Models/Idefics3.swift",
        "Models/Paligemma.swift",
        "Models/Qwen25VL.swift",
        "Models/Qwen2VL.swift",
        "Models/Qwen3VL.swift",
        "Models/QwenVL.swift",
        "Models/SmolVLM2.swift",
        "VLMModel.swift",
        "VLMModelFactory.swift"
      ],
      "target_dependencies" : [
        "MLXLMCommon"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MLXLMTests",
      "module_type" : "SwiftTarget",
      "name" : "MLXLMTests",
      "path" : "Tests/MLXLMTests",
      "product_dependencies" : [
        "MLX",
        "MLXNN",
        "MLXOptimizers",
        "MLXRandom",
        "Transformers"
      ],
      "sources" : [
        "BaseConfigurationTests.swift",
        "EvalTests.swift",
        "StreamlinedTests.swift",
        "ToolTests.swift",
        "UserInputTests.swift"
      ],
      "target_dependencies" : [
        "MLXLMCommon",
        "MLXLLM",
        "MLXVLM"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MLXLMCommon",
      "module_type" : "SwiftTarget",
      "name" : "MLXLMCommon",
      "path" : "Libraries/MLXLMCommon",
      "product_dependencies" : [
        "MLX",
        "MLXNN",
        "MLXOptimizers",
        "MLXRandom",
        "MLXLinalg",
        "Transformers"
      ],
      "product_memberships" : [
        "MLXLLM",
        "MLXVLM",
        "MLXLMCommon",
        "MLXEmbedders"
      ],
      "sources" : [
        "Adapters/LoRA/DoRA+Layers.swift",
        "Adapters/LoRA/LoRA+Layers.swift",
        "Adapters/LoRA/LoRAContainer.swift",
        "Adapters/LoRA/LoRAModel.swift",
        "Adapters/ModelAdapter.swift",
        "Adapters/ModelAdapterFactory.swift",
        "Adapters/ModelAdapterTypeRegistry.swift",
        "AttentionUtils.swift",
        "BaseConfiguration.swift",
        "Chat.swift",
        "Evaluate.swift",
        "Extensions/Encodable+toolResult.swift",
        "KVCache.swift",
        "LanguageModel.swift",
        "Load.swift",
        "ModelConfiguration.swift",
        "ModelContainer.swift",
        "ModelFactory.swift",
        "Models/Gemma.swift",
        "Module+Extensions.swift",
        "Registries/AbstractModelRegistry.swift",
        "Registries/ModelTypeRegistry.swift",
        "Registries/ProcessorTypeRegistry.swift",
        "Streamlined.swift",
        "StringOrNumber.swift",
        "Tokenizer.swift",
        "Tool/Tool.swift",
        "Tool/ToolCall.swift",
        "Tool/ToolCallProcessor.swift",
        "Tool/ToolParameter.swift",
        "Tool/Value.swift",
        "UserInput.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MLXLLM",
      "module_type" : "SwiftTarget",
      "name" : "MLXLLM",
      "path" : "Libraries/MLXLLM",
      "product_dependencies" : [
        "MLX",
        "MLXFast",
        "MLXNN",
        "MLXOptimizers",
        "MLXRandom",
        "Transformers"
      ],
      "product_memberships" : [
        "MLXLLM"
      ],
      "sources" : [
        "LLMModel.swift",
        "LLMModelFactory.swift",
        "Lora+Data.swift",
        "LoraTrain.swift",
        "Models/BaichuanM1.swift",
        "Models/BailingMoe.swift",
        "Models/Bitnet.swift",
        "Models/Cohere.swift",
        "Models/DeepseekV3.swift",
        "Models/Ernie4_5.swift",
        "Models/Exaone4.swift",
        "Models/FalconH1.swift",
        "Models/GLM4.swift",
        "Models/GPTOSS.swift",
        "Models/Gemma.swift",
        "Models/Gemma2.swift",
        "Models/Gemma3Text.swift",
        "Models/Gemma3nText.swift",
        "Models/Granite.swift",
        "Models/GraniteMoeHybrid.swift",
        "Models/Internlm2.swift",
        "Models/LFM2.swift",
        "Models/LFM2MoE.swift",
        "Models/Lille130m.swift",
        "Models/Llama.swift",
        "Models/MiMo.swift",
        "Models/NanoChat.swift",
        "Models/Olmo2.swift",
        "Models/OlmoE.swift",
        "Models/OpenELM.swift",
        "Models/Phi.swift",
        "Models/Phi3.swift",
        "Models/PhiMoE.swift",
        "Models/Qwen2.swift",
        "Models/Qwen3.swift",
        "Models/Qwen3MoE.swift",
        "Models/RoPEUtils.swift",
        "Models/SSM.swift",
        "Models/SmolLM3.swift",
        "Models/Starcoder2.swift",
        "SuScaledRotaryEmbedding.swift",
        "SwitchLayers.swift"
      ],
      "target_dependencies" : [
        "MLXLMCommon"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MLXEmbedders",
      "module_type" : "SwiftTarget",
      "name" : "MLXEmbedders",
      "path" : "Libraries/Embedders",
      "product_dependencies" : [
        "MLX",
        "MLXFast",
        "MLXNN",
        "Transformers",
        "MLXLinalg"
      ],
      "product_memberships" : [
        "MLXEmbedders"
      ],
      "sources" : [
        "BaseConfiguration.swift",
        "Bert.swift",
        "Configuration.swift",
        "EmbeddingModel.swift",
        "Load.swift",
        "Models.swift",
        "NomicBert.swift",
        "Pooling.swift",
        "Qwen3.swift",
        "Tokenizer.swift"
      ],
      "target_dependencies" : [
        "MLXLMCommon"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.