Build Information
Successful build of mlx-libraries, reference 2.25.4 (8e4131
), with Swift 5.10 for macOS (SPM) on 6 Jun 2025 19:09:26 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift-examples.git
Reference: 2.25.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ml-explore/mlx-swift-examples
* tag 2.25.4 -> FETCH_HEAD
HEAD is now at 8e41311 support for running all the models (#317)
Cloned https://github.com/ml-explore/mlx-swift-examples.git
Revision (git rev-parse @):
8e41311a3c17e902441cfcaa46629244c9758afd
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift-examples.git at 2.25.4
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.10
Building package at path: $PWD
https://github.com/ml-explore/mlx-swift-examples.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/183] Write sources
[11/183] Copying t5_tokenizer_config.json
[14/183] Copying gpt2_tokenizer_config.json
[15/183] Write sources
[27/183] Write swift-version-33747A42983211AE.txt
[28/183] Compiling system-zlib anchor.c
[29/183] Compiling _NumericsShims _NumericsShims.c
[31/207] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[32/208] Compiling InternalCollectionsUtilities Descriptions.swift
[33/208] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[34/208] Compiling InternalCollectionsUtilities Debugging.swift
[35/208] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[36/208] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[37/208] Compiling InternalCollectionsUtilities _SortedCollection.swift
[38/208] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[39/208] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[40/208] Compiling InternalCollectionsUtilities UInt+reversed.swift
[41/208] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[42/208] Compiling InternalCollectionsUtilities Integer rank.swift
[43/208] Emitting module InternalCollectionsUtilities
[44/208] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[45/208] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[45/208] Compiling version.cpp
[47/274] Compiling RealModule Float80+Real.swift
[48/274] Compiling RealModule Real.swift
[49/275] Compiling RealModule RealFunctions.swift
[50/275] Compiling RealModule Float16+Real.swift
[51/275] Compiling RealModule ElementaryFunctions.swift
[52/275] Compiling RealModule Float+Real.swift
[53/275] Compiling RealModule AugmentedArithmetic.swift
[54/275] Compiling RealModule Double+Real.swift
[55/275] Compiling RealModule AlgebraicField.swift
[56/275] Compiling RealModule ApproximateEquality.swift
[57/275] Emitting module RealModule
[58/275] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[59/275] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[60/275] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[61/275] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[62/275] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[63/275] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[64/275] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[65/275] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[66/275] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[67/275] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[68/275] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[69/275] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[70/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[71/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[72/288] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[73/288] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[74/288] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[75/288] Compiling OrderedCollections OrderedSet+Sendable.swift
[75/288] Compiling utils.cpp
[76/290] Compiling scheduler.cpp
[78/290] Compiling OrderedCollections OrderedSet+Codable.swift
[79/290] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[80/290] Compiling OrderedCollections OrderedSet+Descriptions.swift
[81/290] Compiling OrderedCollections OrderedSet+Diffing.swift
[82/290] Compiling OrderedCollections OrderedSet+Equatable.swift
[83/290] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[84/290] Compiling OrderedCollections OrderedSet+Hashable.swift
[85/290] Compiling OrderedCollections OrderedSet+Initializers.swift
[86/290] Compiling OrderedCollections OrderedSet+Insertions.swift
[87/290] Compiling OrderedCollections OrderedSet+Invariants.swift
[88/290] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[89/290] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[90/290] Compiling OrderedCollections _Hashtable+Header.swift
[91/290] Compiling OrderedCollections OrderedDictionary+Codable.swift
[92/290] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[93/290] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[94/290] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[95/290] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[96/290] Compiling OrderedCollections OrderedDictionary+Elements.swift
[97/290] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[98/290] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[99/290] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[100/290] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[101/290] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[102/290] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[103/290] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[104/290] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[105/290] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[106/290] Compiling OrderedCollections OrderedDictionary+Values.swift
[107/290] Compiling OrderedCollections OrderedDictionary.swift
[108/295] Compiling OrderedCollections OrderedSet+SubSequence.swift
[109/295] Compiling OrderedCollections OrderedSet+Testing.swift
[110/295] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[111/295] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[112/295] Compiling OrderedCollections OrderedSet.swift
[113/295] Compiling OrderedCollections _UnsafeBitset.swift
[114/295] Compiling OrderedCollections _HashTable+Bucket.swift
[115/295] Compiling OrderedCollections _HashTable+BucketIterator.swift
[116/295] Compiling OrderedCollections _HashTable+Constants.swift
[117/295] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[118/295] Compiling OrderedCollections _HashTable+Testing.swift
[119/295] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[120/295] Compiling OrderedCollections _HashTable.swift
[121/295] Compiling ComplexModule Complex.swift
[122/295] Compiling ComplexModule Differentiable.swift
[123/295] Compiling ComplexModule Arithmetic.swift
[124/295] Emitting module ComplexModule
[125/295] Compiling ComplexModule ElementaryFunctions.swift
[126/295] Emitting module OrderedCollections
[126/295] Compiling linalg.cpp
[127/297] Compiling random.cpp
[129/307] Compiling Numerics Numerics.swift
[130/307] Emitting module Numerics
[131/307] Emitting module Gzip
[131/307] Compiling no_gguf.cpp
[132/307] Compiling primitives.cpp
[134/307] Compiling Jinja Utilities.swift
[135/307] Compiling Jinja Template.swift
[136/307] Compiling Jinja Error.swift
[137/307] Compiling Jinja Lexer.swift
[138/307] Compiling Jinja StringExtension.swift
[139/307] Compiling Jinja Runtime.swift
[140/307] Compiling Jinja Parser.swift
[141/307] Emitting module Jinja
[142/307] Compiling Jinja Environment.swift
[143/307] Compiling Jinja Ast.swift
[144/307] Compiling Hub resource_bundle_accessor.swift
[145/307] Compiling Hub Downloader.swift
[146/307] Compiling Hub BinaryDistinct.swift
[147/307] Compiling Hub Hub.swift
[148/307] Compiling Hub Config.swift
[149/307] Emitting module Hub
[150/307] Compiling Hub HubApi.swift
[150/307] Compiling load.cpp
[152/307] Compiling TensorUtils MLShapedArray+Utils.swift
[153/307] Compiling TensorUtils TopPLogitsWarper.swift
[154/307] Compiling TensorUtils MLMultiArray+Utils.swift
[155/307] Compiling TensorUtils TopKLogitsWarper.swift
[156/307] Compiling TensorUtils TemperatureLogitsWarper.swift
[157/307] Compiling TensorUtils LogitsProcessor.swift
[158/307] Compiling TensorUtils LogitsWarper.swift
[159/307] Compiling TensorUtils Math.swift
[160/307] Compiling TensorUtils RepetitionPenaltyWarper.swift
[161/307] Emitting module TensorUtils
[162/308] Compiling Gzip Data+Gzip.swift
[163/320] Compiling TensorUtils Weights.swift
[163/320] Compiling fft.cpp
[164/320] Compiling transforms.cpp
[165/320] Compiling graph_utils.cpp
[167/320] Compiling Tokenizers Trie.swift
[168/320] Compiling Tokenizers UnigramTokenizer.swift
[169/321] Compiling Tokenizers Utils.swift
[169/321] Compiling ops.cpp
[171/321] Compiling Tokenizers TokenLattice.swift
[172/321] Compiling Tokenizers PreTokenizer.swift
[173/321] Compiling Tokenizers PostProcessor.swift
[174/321] Compiling Tokenizers ByteEncoder.swift
[175/321] Compiling Tokenizers Decoder.swift
[176/321] Compiling Tokenizers Normalizer.swift
[177/321] Compiling Tokenizers BPETokenizer.swift
[178/321] Compiling Tokenizers BertTokenizer.swift
[179/321] Emitting module Tokenizers
[180/321] Compiling Tokenizers Tokenizer.swift
[180/321] Compiling dtype.cpp
[181/321] Compiling dtype_utils.cpp
[182/324] Compiling no_ring.cpp
[184/324] Compiling Generation GenerationConfig.swift
[185/324] Compiling Generation Generation.swift
[186/324] Emitting module Generation
[186/324] Compiling no_mpi.cpp
[187/324] Compiling safetensors.cpp
[188/324] Compiling einsum.cpp
[189/327] Compiling primitives.cpp
[190/327] Compiling device.cpp
[191/327] Compiling distributed.cpp
[193/327] Compiling Models LanguageModelTypes.swift
[193/327] Compiling ops.cpp
[195/327] Emitting module Models
[196/327] Compiling Models LanguageModel.swift
[196/327] Compiling utils.cpp
[197/327] Compiling unary.cpp
[198/327] Compiling slicing.cpp
[199/327] Compiling fast.cpp
[200/327] Compiling softmax.cpp
[201/327] Compiling ternary.cpp
[202/327] Compiling sort.cpp
[203/327] Compiling compile.cpp
[204/327] Compiling scan.cpp
[205/327] Compiling resident.cpp
[206/327] Compiling scaled_dot_product_attention.cpp
[207/327] Compiling rope.cpp
[208/327] Compiling reduce.cpp
[209/327] Compiling normalization.cpp
[210/327] Compiling primitives.cpp
[211/327] Compiling quantized.cpp
[212/327] Compiling metal.cpp
[213/327] Compiling matmul.cpp
[214/327] Compiling logsumexp.cpp
[215/327] Compiling event.cpp
[216/327] Compiling fence.cpp
[217/327] Compiling hadamard.cpp
[218/327] Compiling indexing.cpp
[219/327] Compiling distributed.cpp
[220/327] Compiling jit_kernels.cpp
[221/327] Compiling custom_kernel.cpp
[222/327] Compiling threefry.cpp
[223/327] Compiling fft.cpp
[224/327] Compiling device.cpp
[225/327] Compiling allocator.cpp
[226/327] Compiling copy.cpp
[227/327] Compiling binary.cpp
[228/327] Compiling conv.cpp
[229/327] Compiling compiled.cpp
[230/327] Compiling select.cpp
[231/327] Compiling svd.cpp
[232/327] Compiling export.cpp
[233/327] Compiling softmax.cpp
[234/327] Compiling scan.cpp
[235/327] Compiling quantized.cpp
[236/327] Compiling qrf.cpp
[237/327] Compiling sort.cpp
[238/327] Compiling jit_compiler.cpp
[239/327] Compiling matmul.cpp
[240/327] Compiling masked_mm.cpp
[241/327] Compiling luf.cpp
[242/327] Compiling logsumexp.cpp
[243/327] Compiling hadamard.cpp
[244/327] Compiling inverse.cpp
[245/327] Compiling cblas.cpp
[246/327] Compiling primitives.cpp
[247/327] Compiling encoder.cpp
[248/327] Compiling eval.cpp
[249/327] Compiling bnns.cpp
[250/327] Compiling unary.cpp
[251/327] Compiling distributed.cpp
[252/327] Compiling fft.cpp
[253/327] Compiling indexing.cpp
[254/327] Compiling utils.cpp
[255/327] Compiling eigh.cpp
[256/327] Compiling arg_reduce.cpp
[257/327] Compiling slicing.cpp
[258/327] Compiling cholesky.cpp
[259/327] Compiling reduce.cpp
[260/327] Compiling load.cpp
[261/327] Compiling broadcasting.cpp
[262/327] Compiling utils.cpp
[263/327] Compiling unary_ops.cpp
[264/327] Compiling unary.cpp
[265/327] Compiling compiled.cpp
[266/327] Compiling ternary_ops.cpp
[267/327] Compiling ternary.cpp
[268/327] Compiling allocator.cpp
[269/327] Compiling steel_gemm_splitk.cpp
[270/327] Compiling steel_gemm_masked.cpp
[271/327] Compiling steel_gemm_gather.cpp
[272/327] Compiling steel_gemm_fused.cpp
[273/327] Compiling steel_conv_general.cpp
[274/327] Compiling steel_conv.cpp
[275/327] Compiling sort.cpp
[276/327] Compiling softmax.cpp
[277/327] Compiling scatter_axis.cpp
[278/327] Compiling scatter.cpp
[279/327] Compiling scan.cpp
[280/327] Compiling reduce_utils.cpp
[281/327] Compiling reduce.cpp
[282/327] Compiling quantized.cpp
[283/327] Compiling hadamard.cpp
[284/327] Compiling logsumexp.cpp
[285/327] Compiling gemv_masked.cpp
[286/327] Compiling gemm.cpp
[287/327] Compiling gather.cpp
[288/327] Compiling gather_axis.cpp
[289/327] Compiling fft.cpp
[290/327] Compiling copy.cpp
[291/327] Compiling conv.cpp
[291/327] Compiling compiled_preamble.cpp
[293/327] Compiling binary_two.cpp
[294/327] Compiling binary_ops.cpp
[295/327] Compiling arange.cpp
[296/327] Compiling binary.cpp
[297/327] Compiling common.cpp
[298/327] Compiling copy.cpp
[299/327] Compiling conv.cpp
[300/327] Compiling array.cpp
[301/327] Compiling version.cpp
[302/327] Compiling transforms_impl.cpp
[303/327] Compiling transforms.cpp
[304/327] Compiling vector.cpp
[305/327] Compiling string.cpp
[306/327] Compiling stream.cpp
[307/327] Compiling compiled_conditional.cpp
[308/327] Compiling reduce.cpp
[309/327] Compiling random.cpp
[310/327] Compiling memory.cpp
[311/327] Compiling metal.cpp
[312/327] Compiling ops.cpp
[313/327] Compiling map.cpp
[314/327] Compiling error.cpp
[315/327] Compiling linalg.cpp
[316/327] Compiling io_types.cpp
[317/327] Compiling io.cpp
[318/327] Compiling fft.cpp
[319/327] Compiling fast.cpp
[320/327] Compiling export.cpp
[321/327] Compiling device.cpp
[322/327] Compiling compile.cpp
[323/327] Compiling format.cc
[324/327] Compiling closure.cpp
[325/327] Compiling array.cpp
[326/327] Compiling binary.cpp
[328/357] Emitting module MLX
[329/360] Compiling MLX ErrorHandler.swift
[330/360] Compiling MLX Export.swift
[331/360] Compiling MLX FFT.swift
[332/360] Compiling MLX Factory.swift
[333/360] Compiling MLX Transforms+Grad.swift
[334/360] Compiling MLX Transforms+Internal.swift
[335/360] Compiling MLX Transforms.swift
[336/360] Compiling MLX ArrayAt.swift
[337/360] Compiling MLX Cmlx+Util.swift
[338/360] Compiling MLX DType.swift
[339/360] Compiling MLX Device.swift
[340/360] Compiling MLX Ops+Array.swift
[341/360] Compiling MLX Ops.swift
[342/360] Compiling MLX ParameterTypes.swift
[343/360] Compiling MLX Protocols.swift
[344/360] Compiling MLX Random.swift
[345/360] Compiling MLX State.swift
[346/360] Compiling MLX Foundation+Util.swift
[347/360] Compiling MLX GPU.swift
[348/360] Compiling MLX IO.swift
[349/360] Compiling MLX MLXFast.swift
[350/360] Compiling MLX MLXFastKernel.swift
[351/360] Compiling MLX Nested.swift
[352/360] Compiling MLX Stream.swift
[353/360] Compiling MLX Transforms+Compile.swift
[354/360] Compiling MLX Transforms+Eval.swift
[355/360] Compiling MLX Linalg.swift
[356/360] Compiling MLX MLXArray+Bytes.swift
[357/360] Compiling MLX MLXArray+Indexing.swift
[358/360] Compiling MLX MLXArray+Init.swift
[359/360] Compiling MLX MLXArray+Ops.swift
[360/360] Compiling MLX MLXArray.swift
[361/367] Compiling MLXFast MLXFastKernel.swift
[362/367] Emitting module MLXFast
[363/367] Compiling MLXFast MLXFast.swift
[364/367] Compiling MLXLinalg Linalg.swift
[365/367] Emitting module MLXLinalg
[366/367] Emitting module MLXRandom
[367/367] Compiling MLXRandom Random.swift
[368/385] Compiling MLXNN Upsample.swift
[369/385] Compiling MLXNN PositionalEncoding.swift
[370/385] Compiling MLXNN Quantized.swift
[371/385] Compiling MLXNN Recurrent.swift
[372/385] Compiling MLXNN Transformer.swift
[373/386] Compiling MLXNN ValueAndGrad.swift
[374/386] Compiling MLXNN Normalization.swift
[375/386] Compiling MLXNN Pooling.swift
[376/386] Compiling MLXNN Embedding.swift
[377/386] Compiling MLXNN Linear.swift
[378/386] Compiling MLXNN ConvolutionTransposed.swift
[379/386] Compiling MLXNN Dropout.swift
[380/386] Compiling MLXNN Activations.swift
[381/386] Compiling MLXNN Cache.swift
[382/386] Compiling MLXNN Losses.swift
[383/386] Compiling MLXNN Module.swift
[384/386] Compiling MLXNN Containers.swift
[385/386] Compiling MLXNN Convolution.swift
[386/386] Emitting module MLXNN
[387/408] Emitting module MLXOptimizers
[388/408] Compiling MLXOptimizers Optimizers.swift
[389/429] Compiling MLXMNIST Random.swift
[390/429] Compiling MLXEmbedders Tokenizer.swift
[391/429] Emitting module MLXMNIST
[392/429] Compiling MLXMNIST MNIST.swift
[393/429] Compiling MLXMNIST Files.swift
[394/429] Compiling MLXEmbedders Pooling.swift
[395/429] Compiling MLXEmbedders BaseConfiguration.swift
[396/429] Emitting module MLXEmbedders
[397/429] Compiling MLXEmbedders Bert.swift
[398/429] Compiling MLXEmbedders Models.swift
[399/429] Compiling MLXEmbedders EmbeddingModel.swift
[400/429] Compiling MLXEmbedders Load.swift
/Users/admin/builder/spi-builder-workspace/Libraries/Embedders/Load.swift:94:38: warning: 'quantization' is deprecated: Please use perLayerQuantization instead
if let quantization = baseConfig.quantization {
^
[401/429] Compiling MLXEmbedders Configuration.swift
[402/429] Compiling MLXEmbedders NomicBert.swift
/Users/admin/builder/spi-builder-workspace/Libraries/Embedders/NomicBert.swift:315:14: warning: immutable value 'index' was never used; consider replacing with '_' or removing it
for (index, layer) in layers.enumerated() {
^~~~~
_
[403/429] Compiling StableDiffusion VAE.swift
[404/429] Compiling StableDiffusion UNet.swift
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/UNet.swift:134:13: warning: initialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it
let dtype = x.dtype
~~~~^~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/UNet.swift:196:13: warning: initialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it
let dtype = x.dtype
~~~~^~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/UNet.swift:503:13: warning: initialization of immutable value 'dtype' was never used; consider replacing with assignment to '_' or removing it
let dtype = x.dtype
~~~~^~~~~
_
[405/429] Compiling StableDiffusion Tokenizer.swift
[406/429] Emitting module StableDiffusion
[407/429] Compiling StableDiffusion Sampler.swift
[408/429] Compiling StableDiffusion StableDiffusion.swift
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/StableDiffusion.swift:146:26: warning: passing argument of non-sendable type 'any TextToImageGenerator' into actor-isolated context may introduce data races
return .init(model: model)
^
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/StableDiffusion.swift:85:17: note: protocol 'TextToImageGenerator' does not conform to the 'Sendable' protocol
public protocol TextToImageGenerator: ImageGenerator {
^
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/StableDiffusion.swift:157:26: warning: passing argument of non-sendable type 'any ImageToImageGenerator' into actor-isolated context may introduce data races
return .init(model: model)
^
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/StableDiffusion.swift:97:17: note: protocol 'ImageToImageGenerator' does not conform to the 'Sendable' protocol
public protocol ImageToImageGenerator: ImageGenerator {
^
[409/429] Compiling StableDiffusion Load.swift
[410/429] Compiling StableDiffusion Clip.swift
[411/429] Compiling StableDiffusion Configuration.swift
[412/429] Compiling StableDiffusion Image.swift
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/Image.swift:135:20: warning: immutable value 'C' was never used; consider replacing with '_' or removing it
let (H, W, C) = raster.shape3
^
_
/Users/admin/builder/spi-builder-workspace/Libraries/StableDiffusion/Image.swift:140:22: warning: reference to static property 'RGBA8' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
format: .RGBA8, colorSpace: cs)
^
CoreImage.CIFormat:10:23: note: static property declared here
public static var RGBA8: CIFormat
^
[413/429] Compiling MLXLMCommon Tokenizer.swift
[414/430] Compiling MLXLMCommon ModelTypeRegistry.swift
[415/430] Compiling MLXLMCommon ProcessorTypeRegistry.swift
[416/430] Compiling MLXLMCommon Module+Extensions.swift
[417/430] Compiling MLXLMCommon AbstractModelRegistry.swift
[418/430] Compiling MLXLMCommon Evaluate.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:115:9: warning: stored property 'temp' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type 'MLXArray'
let temp: MLXArray
^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:4:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:116:9: warning: stored property 'topP' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type 'MLXArray'
let topP: MLXArray
^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:123:17: warning: stored property 'compiledTopPSampling' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type '(MLXArray, MLXArray, MLXArray) -> MLXArray'
private let compiledTopPSampling: (MLXArray, MLXArray, MLXArray) -> MLXArray = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:123:17: note: a function type must be marked '@Sendable' to conform to 'Sendable'
private let compiledTopPSampling: (MLXArray, MLXArray, MLXArray) -> MLXArray = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:154:9: warning: stored property 'temp' of 'Sendable'-conforming struct 'CategoricalSampler' has non-sendable type 'MLXArray'
let temp: MLXArray
^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:160:17: warning: stored property 'compiledCategorical' of 'Sendable'-conforming struct 'CategoricalSampler' has non-sendable type '(MLXArray, MLXArray) -> MLXArray'
private let compiledCategorical: (MLXArray, MLXArray) -> MLXArray = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:160:17: note: a function type must be marked '@Sendable' to conform to 'Sendable'
private let compiledCategorical: (MLXArray, MLXArray) -> MLXArray = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:421:16: warning: stored property 'inputText' of 'Sendable'-conforming struct 'GenerateResult' has non-sendable type 'LMInput.Text'
public let inputText: LMInput.Text
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/LanguageModel.swift:43:19: note: consider making struct 'Text' conform to the 'Sendable' protocol
public struct Text {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:562:47: warning: left side of nil coalescing operator '??' has non-optional type 'Set<String>', so the right side is never used
(context.configuration.extraEOSTokens ?? [])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:649:47: warning: left side of nil coalescing operator '??' has non-optional type 'Set<String>', so the right side is never used
(context.configuration.extraEOSTokens ?? [])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:753:17: warning: capture of 'context' with non-sendable type 'ModelContext' in a `@Sendable` closure
context.configuration.extraEOSTokens
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:31:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:761:26: warning: capture of 'iterator' with non-sendable type 'TokenIterator' in a `@Sendable` closure
for token in iterator {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:248:15: note: consider making struct 'TokenIterator' conform to the 'Sendable' protocol
public struct TokenIterator: Sequence, IteratorProtocol {
^
, Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:790:35: warning: capture of 'input' with non-sendable type 'LMInput' in a `@Sendable` closure
promptTokenCount: input.text.tokens.size,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/LanguageModel.swift:37:15: note: consider making struct 'LMInput' conform to the 'Sendable' protocol
public struct LMInput {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:755:25: warning: capture of 'context' with non-sendable type 'ModelContext' in a `@Sendable` closure
context.tokenizer.convertTokenToId($0)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:31:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:773:33: warning: implicit capture of 'context' requires that 'ModelContext' conforms to `Sendable`
|| token == context.tokenizer.eosTokenId
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:31:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
[419/430] Compiling MLXLMCommon KVCache.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:115:9: warning: stored property 'temp' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type 'MLXArray'
let temp: MLXArray
^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:4:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:116:9: warning: stored property 'topP' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type 'MLXArray'
let topP: MLXArray
^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:123:17: warning: stored property 'compiledTopPSampling' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type '(MLXArray, MLXArray, MLXArray) -> MLXArray'
private let compiledTopPSampling: (MLXArray, MLXArray, MLXArray) -> MLXArray = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:123:17: note: a function type must be marked '@Sendable' to conform to 'Sendable'
private let compiledTopPSampling: (MLXArray, MLXArray, MLXArray) -> MLXArray = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:154:9: warning: stored property 'temp' of 'Sendable'-conforming struct 'CategoricalSampler' has non-sendable type 'MLXArray'
let temp: MLXArray
^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:160:17: warning: stored property 'compiledCategorical' of 'Sendable'-conforming struct 'CategoricalSampler' has non-sendable type '(MLXArray, MLXArray) -> MLXArray'
private let compiledCategorical: (MLXArray, MLXArray) -> MLXArray = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:160:17: note: a function type must be marked '@Sendable' to conform to 'Sendable'
private let compiledCategorical: (MLXArray, MLXArray) -> MLXArray = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:421:16: warning: stored property 'inputText' of 'Sendable'-conforming struct 'GenerateResult' has non-sendable type 'LMInput.Text'
public let inputText: LMInput.Text
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/LanguageModel.swift:43:19: note: consider making struct 'Text' conform to the 'Sendable' protocol
public struct Text {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:562:47: warning: left side of nil coalescing operator '??' has non-optional type 'Set<String>', so the right side is never used
(context.configuration.extraEOSTokens ?? [])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:649:47: warning: left side of nil coalescing operator '??' has non-optional type 'Set<String>', so the right side is never used
(context.configuration.extraEOSTokens ?? [])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:753:17: warning: capture of 'context' with non-sendable type 'ModelContext' in a `@Sendable` closure
context.configuration.extraEOSTokens
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:31:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:761:26: warning: capture of 'iterator' with non-sendable type 'TokenIterator' in a `@Sendable` closure
for token in iterator {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:248:15: note: consider making struct 'TokenIterator' conform to the 'Sendable' protocol
public struct TokenIterator: Sequence, IteratorProtocol {
^
, Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:790:35: warning: capture of 'input' with non-sendable type 'LMInput' in a `@Sendable` closure
promptTokenCount: input.text.tokens.size,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/LanguageModel.swift:37:15: note: consider making struct 'LMInput' conform to the 'Sendable' protocol
public struct LMInput {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:755:25: warning: capture of 'context' with non-sendable type 'ModelContext' in a `@Sendable` closure
context.tokenizer.convertTokenToId($0)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:31:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:773:33: warning: implicit capture of 'context' requires that 'ModelContext' conforms to `Sendable`
|| token == context.tokenizer.eosTokenId
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:31:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
[420/430] Compiling MLXLMCommon ModelContainer.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:65:26: warning: passing argument of non-sendable type 'ModelContext' outside of actor-isolated context may introduce data races
try await action(context)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:31:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:65:19: warning: non-sendable type 'R' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
try await action(context)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:63:25: note: consider making generic parameter 'R' conform to the 'Sendable' protocol
public func perform<R>(_ action: @Sendable (ModelContext) async throws -> R) async rethrows -> R
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:74:26: warning: passing argument of non-sendable type 'ModelContext' outside of actor-isolated context may introduce data races
try await action(context, values)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:31:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:74:35: warning: passing argument of non-sendable type 'V' outside of actor-isolated context may introduce data races
try await action(context, values)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:71:25: note: consider making generic parameter 'V' conform to the 'Sendable' protocol
public func perform<V, R>(
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:74:19: warning: non-sendable type 'R' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
try await action(context, values)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:71:28: note: consider making generic parameter 'R' conform to the 'Sendable' protocol
public func perform<V, R>(
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:114:31: warning: passing argument of non-sendable type 'ModelContext' into actor-isolated context may introduce data races
return ModelContainer(context: context)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:31:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
[421/430] Compiling MLXLMCommon ModelFactory.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:65:26: warning: passing argument of non-sendable type 'ModelContext' outside of actor-isolated context may introduce data races
try await action(context)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:31:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:65:19: warning: non-sendable type 'R' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
try await action(context)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:63:25: note: consider making generic parameter 'R' conform to the 'Sendable' protocol
public func perform<R>(_ action: @Sendable (ModelContext) async throws -> R) async rethrows -> R
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:74:26: warning: passing argument of non-sendable type 'ModelContext' outside of actor-isolated context may introduce data races
try await action(context, values)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:31:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:74:35: warning: passing argument of non-sendable type 'V' outside of actor-isolated context may introduce data races
try await action(context, values)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:71:25: note: consider making generic parameter 'V' conform to the 'Sendable' protocol
public func perform<V, R>(
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:74:19: warning: non-sendable type 'R' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
try await action(context, values)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:71:28: note: consider making generic parameter 'R' conform to the 'Sendable' protocol
public func perform<V, R>(
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:114:31: warning: passing argument of non-sendable type 'ModelContext' into actor-isolated context may introduce data races
return ModelContainer(context: context)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:31:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
[422/430] Compiling MLXLMCommon Lora.swift
[423/430] Compiling MLXLMCommon ModelConfiguration.swift
[424/430] Compiling MLXLMCommon LanguageModel.swift
[425/430] Compiling MLXLMCommon Load.swift
[426/430] Compiling MLXLMCommon StringOrNumber.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/StringOrNumber.swift:50:26: warning: immutable value 'string' was never used; consider replacing with '_' or removing it
case .string(let string): nil
~~~~^~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/StringOrNumber.swift:52:25: warning: immutable value 'float' was never used; consider replacing with '_' or removing it
case .float(let float): nil
~~~~^~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/StringOrNumber.swift:54:26: warning: immutable value 'array' was never used; consider replacing with '_' or removing it
case .floats(let array): nil
~~~~^~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/StringOrNumber.swift:63:26: warning: immutable value 'string' was never used; consider replacing with '_' or removing it
case .string(let string): nil
~~~~^~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/StringOrNumber.swift:65:25: warning: immutable value 'float' was never used; consider replacing with '_' or removing it
case .float(let float): nil
~~~~^~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/StringOrNumber.swift:67:26: warning: immutable value 'array' was never used; consider replacing with '_' or removing it
case .floats(let array): nil
~~~~^~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/StringOrNumber.swift:76:26: warning: immutable value 'string' was never used; consider replacing with '_' or removing it
case .string(let string): nil
~~~~^~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/StringOrNumber.swift:89:26: warning: immutable value 'string' was never used; consider replacing with '_' or removing it
case .string(let string): nil
~~~~^~~~~~
_
[427/430] Emitting module MLXLMCommon
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:115:9: warning: stored property 'temp' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type 'MLXArray'
let temp: MLXArray
^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:4:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:116:9: warning: stored property 'topP' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type 'MLXArray'
let topP: MLXArray
^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:123:17: warning: stored property 'compiledTopPSampling' of 'Sendable'-conforming struct 'TopPSampler' has non-sendable type '(MLXArray, MLXArray, MLXArray) -> MLXArray'
private let compiledTopPSampling: (MLXArray, MLXArray, MLXArray) -> MLXArray = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:123:17: note: a function type must be marked '@Sendable' to conform to 'Sendable'
private let compiledTopPSampling: (MLXArray, MLXArray, MLXArray) -> MLXArray = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:154:9: warning: stored property 'temp' of 'Sendable'-conforming struct 'CategoricalSampler' has non-sendable type 'MLXArray'
let temp: MLXArray
^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:160:17: warning: stored property 'compiledCategorical' of 'Sendable'-conforming struct 'CategoricalSampler' has non-sendable type '(MLXArray, MLXArray) -> MLXArray'
private let compiledCategorical: (MLXArray, MLXArray) -> MLXArray = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:160:17: note: a function type must be marked '@Sendable' to conform to 'Sendable'
private let compiledCategorical: (MLXArray, MLXArray) -> MLXArray = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift:421:16: warning: stored property 'inputText' of 'Sendable'-conforming struct 'GenerateResult' has non-sendable type 'LMInput.Text'
public let inputText: LMInput.Text
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/LanguageModel.swift:43:19: note: consider making struct 'Text' conform to the 'Sendable' protocol
public struct Text {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:26:14: warning: associated value 'messages' of 'Sendable'-conforming enum 'Prompt' has non-sendable type 'Any'
case messages([Message])
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:29:14: warning: associated value 'chat' of 'Sendable'-conforming enum 'Prompt' has non-sendable type 'Chat.Message'
case chat([Chat.Message])
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Chat.swift:4:19: note: consider making struct 'Message' conform to the 'Sendable' protocol
public struct Message {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:45:14: warning: associated value 'avAsset' of 'Sendable'-conforming enum 'Video' has non-sendable type 'AVAsset'
case avAsset(AVAsset)
^
AVFoundation.AVAsset:2:12: note: class 'AVAsset' does not conform to the 'Sendable' protocol
open class AVAsset : NSObject, NSCopying, AVAsynchronousKeyValueLoading {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:3:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
import AVFoundation
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:60:14: warning: associated value 'ciImage' of 'Sendable'-conforming enum 'Image' has non-sendable type 'CIImage'
case ciImage(CIImage)
^
CoreImage.CIImage:2:12: note: class 'CIImage' does not conform to the 'Sendable' protocol
open class CIImage : NSObject, NSSecureCoding, NSCopying {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:4:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreImage'
import CoreImage
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:62:14: warning: associated value 'array' of 'Sendable'-conforming enum 'Image' has non-sendable type 'MLXArray'
case array(MLXArray)
^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:6:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:162:16: warning: stored property 'tools' of 'Sendable'-conforming struct 'UserInput' has non-sendable type '[ToolSpec]?' (aka 'Optional<Array<Dictionary<String, Any>>>')
public var tools: [ToolSpec]?
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:165:16: warning: stored property 'additionalContext' of 'Sendable'-conforming struct 'UserInput' has non-sendable type '[String : Any]?'
public var additionalContext: [String: Any]?
^
[428/430] Compiling MLXLMCommon BaseConfiguration.swift
[429/430] Compiling MLXLMCommon Chat.swift
[430/430] Compiling MLXLMCommon UserInput.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:26:14: warning: associated value 'messages' of 'Sendable'-conforming enum 'Prompt' has non-sendable type 'Any'
case messages([Message])
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:29:14: warning: associated value 'chat' of 'Sendable'-conforming enum 'Prompt' has non-sendable type 'Chat.Message'
case chat([Chat.Message])
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Chat.swift:4:19: note: consider making struct 'Message' conform to the 'Sendable' protocol
public struct Message {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:45:14: warning: associated value 'avAsset' of 'Sendable'-conforming enum 'Video' has non-sendable type 'AVAsset'
case avAsset(AVAsset)
^
AVFoundation.AVAsset:2:12: note: class 'AVAsset' does not conform to the 'Sendable' protocol
open class AVAsset : NSObject, NSCopying, AVAsynchronousKeyValueLoading {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:3:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
import AVFoundation
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:60:14: warning: associated value 'ciImage' of 'Sendable'-conforming enum 'Image' has non-sendable type 'CIImage'
case ciImage(CIImage)
^
CoreImage.CIImage:2:12: note: class 'CIImage' does not conform to the 'Sendable' protocol
open class CIImage : NSObject, NSSecureCoding, NSCopying {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:4:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreImage'
import CoreImage
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:62:14: warning: associated value 'array' of 'Sendable'-conforming enum 'Image' has non-sendable type 'MLXArray'
case array(MLXArray)
^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:6:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:162:16: warning: stored property 'tools' of 'Sendable'-conforming struct 'UserInput' has non-sendable type '[ToolSpec]?' (aka 'Optional<Array<Dictionary<String, Any>>>')
public var tools: [ToolSpec]?
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:165:16: warning: stored property 'additionalContext' of 'Sendable'-conforming struct 'UserInput' has non-sendable type '[String : Any]?'
public var additionalContext: [String: Any]?
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:111:28: warning: immutable value 'C' was never used; consider replacing with '_' or removing it
let (H, W, C) = array.shape3
^
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:117:30: warning: reference to static property 'RGBA8' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
format: .RGBA8, colorSpace: cs)
^
CoreImage.CIFormat:10:23: note: static property declared here
public static var RGBA8: CIFormat
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:107:21: warning: code after 'throw' will never be executed
break
^
[431/461] Compiling MLXVLM VLMModelFactory.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:178:14: warning: non-final class 'VLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'
public class VLMModelFactory: ModelFactory {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:84:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"paligemma": create(PaliGemmaConfiguration.self, PaliGemma.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:85:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"qwen2_vl": create(Qwen2VLConfiguration.self, Qwen2VL.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:86:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"qwen2_5_vl": create(Qwen25VLConfiguration.self, Qwen25VL.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:87:25: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"idefics3": create(Idefics3Configuration.self, Idefics3.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:88:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"smolvlm": create(SmolVLM2Configuration.self, SmolVLM2.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:103:35: warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
"PaliGemmaProcessor": create(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:105:33: warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
"Qwen2VLProcessor": create(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:107:36: warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
"Qwen2_5_VLProcessor": create(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:109:34: warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
"Idefics3Processor": create(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:111:33: warning: converting non-sendable function value to '@Sendable (URL, any Tokenizer) throws -> any UserInputProcessor' may introduce data races
"SmolVLMProcessor": create(
^
[432/461] 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
var state: LMOutput.State? = nil
~~~ ^
let
/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
let result = self(input, cache: cache.isEmpty ? nil : cache, state: state)
~~~~^~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:295:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'
public class LLMModelFactory: ModelFactory {
^
/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
"mistral": create(LlamaConfiguration.self, LlamaModel.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
"llama": create(LlamaConfiguration.self, LlamaModel.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
"phi": create(PhiConfiguration.self, PhiModel.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
"phi3": create(Phi3Configuration.self, Phi3Model.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
"phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.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
"gemma": create(GemmaConfiguration.self, GemmaModel.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
"gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:38:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:39:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:40:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:41:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:42:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"cohere": create(CohereConfiguration.self, CohereModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:43:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:44:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:45:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"granite": create(GraniteConfiguration.self, GraniteModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:46:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"mimo": create(MiMoConfiguration.self, MiMoModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:47:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"glm4": create(GLM4Configuration.self, GLM4Model.init),
^
[433/461] 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
var state: LMOutput.State? = nil
~~~ ^
let
/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
let result = self(input, cache: cache.isEmpty ? nil : cache, state: state)
~~~~^~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:295:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'
public class LLMModelFactory: ModelFactory {
^
/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
"mistral": create(LlamaConfiguration.self, LlamaModel.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
"llama": create(LlamaConfiguration.self, LlamaModel.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
"phi": create(PhiConfiguration.self, PhiModel.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
"phi3": create(Phi3Configuration.self, Phi3Model.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
"phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.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
"gemma": create(GemmaConfiguration.self, GemmaModel.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
"gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:38:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:39:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:40:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:41:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:42:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"cohere": create(CohereConfiguration.self, CohereModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:43:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:44:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:45:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"granite": create(GraniteConfiguration.self, GraniteModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:46:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"mimo": create(MiMoConfiguration.self, MiMoModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:47:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"glm4": create(GLM4Configuration.self, GLM4Model.init),
^
[434/461] 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
var state: LMOutput.State? = nil
~~~ ^
let
/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
let result = self(input, cache: cache.isEmpty ? nil : cache, state: state)
~~~~^~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:295:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'
public class LLMModelFactory: ModelFactory {
^
/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
"mistral": create(LlamaConfiguration.self, LlamaModel.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
"llama": create(LlamaConfiguration.self, LlamaModel.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
"phi": create(PhiConfiguration.self, PhiModel.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
"phi3": create(Phi3Configuration.self, Phi3Model.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
"phimoe": create(PhiMoEConfiguration.self, PhiMoEModel.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
"gemma": create(GemmaConfiguration.self, GemmaModel.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
"gemma2": create(Gemma2Configuration.self, Gemma2Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:38:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"qwen2": create(Qwen2Configuration.self, Qwen2Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:39:22: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"qwen3": create(Qwen3Configuration.self, Qwen3Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:40:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"qwen3_moe": create(Qwen3MoEConfiguration.self, Qwen3MoEModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:41:27: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"starcoder2": create(Starcoder2Configuration.self, Starcoder2Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:42:23: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"cohere": create(CohereConfiguration.self, CohereModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:43:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"openelm": create(OpenElmConfiguration.self, OpenELMModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:44:26: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"internlm2": create(InternLM2Configuration.self, InternLM2Model.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:45:24: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"granite": create(GraniteConfiguration.self, GraniteModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:46:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"mimo": create(MiMoConfiguration.self, MiMoModel.init),
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:47:21: warning: converting non-sendable function value to '@Sendable (URL) throws -> any LanguageModel' may introduce data races
"glm4": create(GLM4Configuration.self, GLM4Model.init),
^
[435/463] Compiling MLXLLM Granite.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/Granite.swift:120:13: warning: initialization of immutable value 'attentionHeads' was never used; consider replacing with assignment to '_' or removing it
let attentionHeads = args.attentionHeads
~~~~^~~~~~~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/Granite.swift:270:74: warning: left side of nil coalescing operator '??' has non-optional type 'Bool', so the right side is never used
self.mlpBias = try container.decode(Bool.self, forKey: .mlpBias) ?? false
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
[436/463] Compiling MLXLLM Internlm2.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/Granite.swift:120:13: warning: initialization of immutable value 'attentionHeads' was never used; consider replacing with assignment to '_' or removing it
let attentionHeads = args.attentionHeads
~~~~^~~~~~~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/Granite.swift:270:74: warning: left side of nil coalescing operator '??' has non-optional type 'Bool', so the right side is never used
self.mlpBias = try container.decode(Bool.self, forKey: .mlpBias) ?? false
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
[437/463] Compiling MLXLLM Qwen2.swift
[438/463] Compiling MLXLLM Qwen3.swift
[439/463] Compiling MLXLLM Qwen3MoE.swift
[440/463] Compiling MLXLLM Starcoder2.swift
[441/463] Compiling MLXLLM OpenELM.swift
[442/463] Compiling MLXLLM Phi.swift
[443/463] Compiling MLXLLM Phi3.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/Phi3.swift:63:17: warning: immutable value 'shortFactor' was never used; consider replacing with '_' or removing it
let shortFactor = ropeScaling.shortFactor, let longFactor = ropeScaling.longFactor
~~~~^~~~~~~~~~~
_
[444/463] Compiling MLXLLM PhiMoE.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/Models/Phi3.swift:63:17: warning: immutable value 'shortFactor' was never used; consider replacing with '_' or removing it
let shortFactor = ropeScaling.shortFactor, let longFactor = ropeScaling.longFactor
~~~~^~~~~~~~~~~
_
[445/463] Compiling MLXLLM Gemma.swift
[446/463] Compiling MLXLLM Gemma2.swift
[447/463] Compiling MLXLLM Llama.swift
[448/463] Compiling MLXLLM MiMo.swift
[449/463] Compiling MLXLLM LoraTrain.swift
[450/463] Compiling MLXLLM Cohere.swift
[451/463] Compiling MLXLLM GLM4.swift
[452/463] 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
var scaledX = x
~~~ ^
let
[453/463] 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
var scaledX = x
~~~ ^
let
[454/463] Emitting module MLXLLM
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLLM/LLMModelFactory.swift:295:14: warning: non-final class 'LLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'
public class LLMModelFactory: ModelFactory {
^
[455/463] Compiling MLXVLM VLMModel.swift
[456/463] Compiling MLXVLM SmolVLM2.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/SmolVLM2.swift:313:35: warning: 'try' must precede 'await'
let processedFrames = await try MediaProcessing.asProcessedSequence(
^~~~~~
await
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/SmolVLM2.swift:157:13: warning: variable 'targetSize' was never mutated; consider changing to 'let' constant
var targetSize = MediaProcessing.bestFit(
~~~ ^
let
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/SmolVLM2.swift:292:39: warning: trailing closure in this context is confusable with the body of the statement; pass as a parenthesized argument to silence this warning
guard messages.filter { $0["role"] as? String == "system" }.isEmpty else {
~^
( )
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/SmolVLM2.swift:306:17: warning: initialization of immutable value 'finalMessages' was never used; consider replacing with assignment to '_' or removing it
let finalMessages = messagesWithSystem(messages)
~~~~^~~~~~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/SmolVLM2.swift:311:17: warning: variable 'video' was never mutated; consider changing to 'let' constant
var video = try input.videos[0].asAVAsset()
~~~ ^
let
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/SmolVLM2.swift:240:27: warning: no calls to throwing functions occur within 'try' expression
let decoded = try tokenizer.decode(tokens: promptTokens, skipSpecialTokens: false)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/SmolVLM2.swift:272:37: warning: no calls to throwing functions occur within 'try' expression
let finalPromptTokens = try tokenizer.encode(text: prompt)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/SmolVLM2.swift:309:27: warning: no calls to throwing functions occur within 'try' expression
let decoded = try tokenizer.decode(tokens: promptTokens, skipSpecialTokens: false)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/SmolVLM2.swift:311:25: warning: no calls to throwing functions occur within 'try' expression
var video = try input.videos[0].asAVAsset()
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/SmolVLM2.swift:347:37: warning: no calls to throwing functions occur within 'try' expression
let finalPromptTokens = try tokenizer.encode(text: prompt)
^
[457/463] Compiling MLXVLM QwenVL.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/QwenVL.swift:180:33: warning: no calls to throwing functions occur within 'try' expression
let placeholderTokens = try tokenizer.encode(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/QwenVL.swift:190:20: warning: no calls to throwing functions occur within 'try' expression
return try tokenizer.encode(
^
[458/463] Compiling MLXVLM Paligemma.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Paligemma.swift:465:17: warning: no calls to throwing functions occur within 'try' expression
image = try MediaProcessing.resampleBicubic(image, to: config.size.cgSize)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Paligemma.swift:488:28: warning: no calls to throwing functions occur within 'try' expression
let promptTokens = try tokenizer.encode(text: prompt)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Paligemma.swift:577:13: warning: initialization of immutable value 'embedDimension' was never used; consider replacing with assignment to '_' or removing it
let embedDimension = imageFeatures.dim(2)
~~~~^~~~~~~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Paligemma.swift:578:14: warning: immutable value 'batchSize' was never used; consider replacing with '_' or removing it
let (batchSize, sequenceLength) = inputIds.shape2
^~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Paligemma.swift:578:25: warning: immutable value 'sequenceLength' was never used; consider replacing with '_' or removing it
let (batchSize, sequenceLength) = inputIds.shape2
^~~~~~~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Paligemma.swift:586:13: warning: variable 'textMaskExpanded' was never mutated; consider changing to 'let' constant
var textMaskExpanded = expandedDimensions(textMask, axis: -1)
~~~ ^
let
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Paligemma.swift:587:13: warning: variable 'padMaskExpanded' was never mutated; consider changing to 'let' constant
var padMaskExpanded = expandedDimensions(padMask, axis: -1)
~~~ ^
let
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Paligemma.swift:597:13: warning: variable 'imageMaskExpanded' was never mutated; consider changing to 'let' constant
var imageMaskExpanded = expandedDimensions(imageMask, axis: -1)
~~~ ^
let
[459/463] Compiling MLXVLM Qwen2VL.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Qwen2VL.swift:465:17: warning: initialization of immutable value 'batchSize' was never used; consider replacing with assignment to '_' or removing it
let batchSize = frames.count
~~~~^~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Qwen2VL.swift:552:31: warning: no calls to throwing functions occur within 'try' expression
let processedImages = try images.map { image in
^
[460/463] Compiling MLXVLM Qwen25VL.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Qwen25VL.swift:704:24: warning: no calls to throwing functions occur within 'try' expression
return try MediaProcessing.resampleBicubic($0, to: resizedSize)
^
[461/463] Compiling MLXVLM Idefics3.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Idefics3.swift:847:17: warning: initialization of immutable value 'count' was never used; consider replacing with assignment to '_' or removing it
let count = config.imageSequenceLength ?? 1
~~~~^~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Idefics3.swift:837:26: warning: no calls to throwing functions occur within 'try' expression
let tokens = try tokenizer.encode(text: prompt)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Idefics3.swift:850:32: warning: no calls to throwing functions occur within 'try' expression
var promptTokens = try tokenizer.encode(text: prompt)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/Models/Idefics3.swift:865:21: warning: no calls to throwing functions occur within 'try' expression
image = try MediaProcessing.resampleBicubic(image, to: targetSize)
^
[462/463] Emitting module MLXVLM
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:19:13: warning: let 'context' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6
private let context = CIContext()
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/VLMModelFactory.swift:178:14: warning: non-final class 'VLMModelFactory' cannot conform to 'Sendable'; use '@unchecked Sendable'
public class VLMModelFactory: ModelFactory {
^
[463/463] Compiling MLXVLM MediaProcessing.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:19:13: warning: let 'context' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6
private let context = CIContext()
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:169:31: warning: reference to static property 'RGBAf' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
let format = CIFormat.RGBAf
^
CoreImage.CIFormat:29:23: note: static property declared here
public static var RGBAf: CIFormat
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:287:13: warning: initialization of immutable value 'secondsPerSample' was never used; consider replacing with assignment to '_' or removing it
let secondsPerSample = 1.0 / samplesPerSecond
~~~~^~~~~~~~~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:302:46: warning: immutable value 'requested' was never used; consider replacing with '_' or removing it
case .success(requestedTime: let requested, let image, actualTime: let actual):
~~~~^~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:302:84: warning: immutable value 'actual' was never used; consider replacing with '_' or removing it
case .success(requestedTime: let requested, let image, actualTime: let actual):
~~~~^~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:306:46: warning: immutable value 'requested' was never used; consider replacing with '_' or removing it
case .failure(requestedTime: let requested, let error):
~~~~^~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:306:61: warning: immutable value 'error' was never used; consider replacing with '_' or removing it
case .failure(requestedTime: let requested, let error):
~~~~^~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:300:29: warning: no 'async' operations occur within 'await' expression
for await result in await generator.images(for: sampledTimes) {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:341:13: warning: variable 'desiredFrames' was never mutated; consider changing to 'let' constant
var desiredFrames = min(estimatedFrames, maxFrames)
~~~ ^
let
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:356:13: warning: variable 'frames' was never used; consider replacing with '_' or removing it
var frames: [VideoFrame] = []
^~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:360:46: warning: immutable value 'requested' was never used; consider replacing with '_' or removing it
case .success(requestedTime: let requested, let image, actualTime: let actual):
~~~~^~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:366:46: warning: immutable value 'requested' was never used; consider replacing with '_' or removing it
case .failure(requestedTime: let requested, let error):
~~~~^~~~~~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:366:61: warning: immutable value 'error' was never used; consider replacing with '_' or removing it
case .failure(requestedTime: let requested, let error):
~~~~^~~~~
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXVLM/MediaProcessing.swift:358:29: warning: no 'async' operations occur within 'await' expression
for await result in await generator.images(for: sampledTimes) {
^
Build complete! (59.18s)
Fetching https://github.com/1024jp/GzipSwift
Fetching https://github.com/huggingface/swift-transformers
Fetching https://github.com/ml-explore/mlx-swift
[1/1549] Fetching gzipswift
[234/4914] Fetching gzipswift, swift-transformers
[1361/15768] Fetching gzipswift, swift-transformers, mlx-swift
Fetched https://github.com/huggingface/swift-transformers from cache (1.83s)
Fetched https://github.com/1024jp/GzipSwift from cache (1.83s)
Fetched https://github.com/ml-explore/mlx-swift from cache (1.83s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 6.0.1 (2.24s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 0.1.21 (0.41s)
Fetching https://github.com/johnmai-dev/Jinja
Fetching https://github.com/apple/swift-argument-parser.git
[1/393] Fetching jinja
Fetched https://github.com/johnmai-dev/Jinja from cache (0.78s)
[1/15380] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.52s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.25.4 (0.43s)
Fetching https://github.com/apple/swift-numerics
[1/5726] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.01s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (0.39s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.1.2 (0.36s)
Fetching https://github.com/apple/swift-collections.git
[1/16591] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.61s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.44s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.3 (0.48s)
Creating working copy for https://github.com/1024jp/GzipSwift
Working copy of https://github.com/1024jp/GzipSwift resolved at 6.0.1
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 0.1.21
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.3
Creating working copy for https://github.com/johnmai-dev/Jinja
Working copy of https://github.com/johnmai-dev/Jinja resolved at 1.1.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.25.4
Build complete.
{
"dependencies" : [
{
"identity" : "mlx-swift",
"requirement" : {
"range" : [
{
"lower_bound" : "0.25.4",
"upper_bound" : "0.26.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ml-explore/mlx-swift"
},
{
"identity" : "swift-transformers",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.21",
"upper_bound" : "0.2.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/huggingface/swift-transformers"
},
{
"identity" : "gzipswift",
"requirement" : {
"range" : [
{
"lower_bound" : "6.0.1",
"upper_bound" : "6.0.2"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/1024jp/GzipSwift"
}
],
"manifest_display_name" : "mlx-libraries",
"name" : "mlx-libraries",
"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" : "MLXMNIST",
"targets" : [
"MLXMNIST"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MLXEmbedders",
"targets" : [
"MLXEmbedders"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "StableDiffusion",
"targets" : [
"StableDiffusion"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "StableDiffusion",
"module_type" : "SwiftTarget",
"name" : "StableDiffusion",
"path" : "Libraries/StableDiffusion",
"product_dependencies" : [
"MLX",
"MLXNN",
"MLXRandom",
"Transformers"
],
"product_memberships" : [
"StableDiffusion"
],
"sources" : [
"Clip.swift",
"Configuration.swift",
"Image.swift",
"Load.swift",
"Sampler.swift",
"StableDiffusion.swift",
"Tokenizer.swift",
"UNet.swift",
"VAE.swift"
],
"type" : "library"
},
{
"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/Idefics3.swift",
"Models/Paligemma.swift",
"Models/Qwen25VL.swift",
"Models/Qwen2VL.swift",
"Models/QwenVL.swift",
"Models/SmolVLM2.swift",
"VLMModel.swift",
"VLMModelFactory.swift"
],
"target_dependencies" : [
"MLXLMCommon"
],
"type" : "library"
},
{
"c99name" : "MLXMNIST",
"module_type" : "SwiftTarget",
"name" : "MLXMNIST",
"path" : "Libraries/MLXMNIST",
"product_dependencies" : [
"MLX",
"MLXFast",
"MLXNN",
"MLXOptimizers",
"MLXRandom",
"Transformers",
"Gzip"
],
"product_memberships" : [
"MLXMNIST"
],
"sources" : [
"Files.swift",
"MNIST.swift",
"Random.swift"
],
"type" : "library"
},
{
"c99name" : "MLXLMTests",
"module_type" : "SwiftTarget",
"name" : "MLXLMTests",
"path" : "Tests/MLXLMTests",
"product_dependencies" : [
"MLX",
"MLXNN",
"MLXOptimizers",
"MLXRandom",
"Transformers"
],
"sources" : [
"BaseConfigurationTests.swift",
"EvalTests.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",
"Transformers"
],
"product_memberships" : [
"MLXLLM",
"MLXVLM",
"MLXLMCommon"
],
"sources" : [
"BaseConfiguration.swift",
"Chat.swift",
"Evaluate.swift",
"KVCache.swift",
"LanguageModel.swift",
"Load.swift",
"Lora.swift",
"ModelConfiguration.swift",
"ModelContainer.swift",
"ModelFactory.swift",
"Module+Extensions.swift",
"Registries/AbstractModelRegistry.swift",
"Registries/ModelTypeRegistry.swift",
"Registries/ProcessorTypeRegistry.swift",
"StringOrNumber.swift",
"Tokenizer.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/Cohere.swift",
"Models/GLM4.swift",
"Models/Gemma.swift",
"Models/Gemma2.swift",
"Models/Granite.swift",
"Models/Internlm2.swift",
"Models/Llama.swift",
"Models/MiMo.swift",
"Models/OpenELM.swift",
"Models/Phi.swift",
"Models/Phi3.swift",
"Models/PhiMoE.swift",
"Models/Qwen2.swift",
"Models/Qwen3.swift",
"Models/Qwen3MoE.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",
"Tokenizer.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.