Build Information
Failed to build mlx-libraries, reference main (e9dfa7
), with Swift 5.10 for macOS (SPM) on 14 Jun 2025 20:54:05 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Build Log
[168/320] Compiling Tokenizers Trie.swift
[168/321] Compiling dtype_utils.cpp
[169/321] Compiling dtype.cpp
[171/321] Compiling Tokenizers Utils.swift
[171/321] Compiling ops.cpp
[173/321] Compiling Tokenizers PreTokenizer.swift
[174/321] Compiling Tokenizers TokenLattice.swift
[175/321] Compiling Tokenizers PostProcessor.swift
[176/321] Compiling Tokenizers ByteEncoder.swift
[177/321] Compiling Tokenizers Decoder.swift
[178/321] Compiling Tokenizers BPETokenizer.swift
[179/321] Compiling Tokenizers BertTokenizer.swift
[180/321] Compiling Tokenizers Normalizer.swift
[181/321] Compiling Tokenizers Tokenizer.swift
[182/321] Emitting module Tokenizers
[182/321] Compiling no_ring.cpp
[183/324] Compiling no_mpi.cpp
[184/324] Compiling einsum.cpp
[185/324] Compiling safetensors.cpp
[187/324] Compiling Generation GenerationConfig.swift
[188/324] Emitting module Generation
[189/324] Compiling Generation Generation.swift
[189/324] Compiling primitives.cpp
[190/324] Compiling distributed.cpp
[191/324] Compiling device.cpp
[192/327] Compiling ops.cpp
[194/327] Compiling Models LanguageModelTypes.swift
[195/327] Emitting module Models
[196/327] Compiling Models LanguageModel.swift
[196/327] Compiling utils.cpp
[197/327] Compiling slicing.cpp
[198/327] Compiling fast.cpp
[199/327] Compiling unary.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 hadamard.cpp
[217/327] Compiling fence.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 copy.cpp
[226/327] Compiling allocator.cpp
[227/327] Compiling binary.cpp
[228/327] Compiling conv.cpp
[229/327] Compiling compiled.cpp
[230/327] Compiling export.cpp
[231/327] Compiling svd.cpp
[232/327] Compiling select.cpp
[233/327] Compiling softmax.cpp
[234/327] Compiling quantized.cpp
[235/327] Compiling scan.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 logsumexp.cpp
[241/327] Compiling masked_mm.cpp
[242/327] Compiling luf.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 reduce.cpp
[259/327] Compiling cholesky.cpp
[260/327] Compiling load.cpp
[261/327] Compiling utils.cpp
[262/327] Compiling broadcasting.cpp
[263/327] Compiling unary_ops.cpp
[264/327] Compiling unary.cpp
[265/327] Compiling ternary_ops.cpp
[266/327] Compiling ternary.cpp
[267/327] Compiling compiled.cpp
[268/327] Compiling steel_gemm_masked.cpp
[268/327] Compiling steel_gemm_splitk.cpp
[270/327] Compiling steel_gemm_gather.cpp
[271/327] Compiling steel_conv_general.cpp
[272/327] Compiling steel_gemm_fused.cpp
[273/327] Compiling steel_conv.cpp
[274/327] Compiling allocator.cpp
[275/327] Compiling softmax.cpp
[276/327] Compiling sort.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 logsumexp.cpp
[284/327] Compiling hadamard.cpp
[285/327] Compiling gemv_masked.cpp
[286/327] Compiling gemm.cpp
[287/327] Compiling gather_axis.cpp
[288/327] Compiling gather.cpp
[289/327] Compiling fft.cpp
[290/327] Compiling conv.cpp
[291/327] Compiling copy.cpp
[292/327] Compiling compiled_preamble.cpp
[293/327] Compiling binary_two.cpp
[294/327] Compiling binary_ops.cpp
[295/327] Compiling binary.cpp
[296/327] Compiling arange.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 array.cpp
[325/327] Compiling closure.cpp
[326/327] Compiling binary.cpp
[328/357] Compiling MLX ErrorHandler.swift
[329/357] Compiling MLX Export.swift
[330/357] Compiling MLX FFT.swift
[331/357] Compiling MLX Factory.swift
[332/360] Emitting module MLX
[333/360] Compiling MLX Protocols.swift
[334/360] Compiling MLX Random.swift
[335/360] Compiling MLX State.swift
[336/360] Compiling MLX MLXFast.swift
[337/360] Compiling MLX MLXFastKernel.swift
[338/360] Compiling MLX Nested.swift
[339/360] Compiling MLX Foundation+Util.swift
[340/360] Compiling MLX GPU.swift
[341/360] Compiling MLX IO.swift
[342/360] Compiling MLX Transforms+Grad.swift
[343/360] Compiling MLX Transforms+Internal.swift
[344/360] Compiling MLX Transforms.swift
[345/360] Compiling MLX Ops+Array.swift
[346/360] Compiling MLX Ops.swift
[347/360] Compiling MLX ParameterTypes.swift
[348/360] Compiling MLX Linalg.swift
[349/360] Compiling MLX MLXArray+Bytes.swift
[350/360] Compiling MLX MLXArray+Indexing.swift
[351/360] Compiling MLX Stream.swift
[352/360] Compiling MLX Transforms+Compile.swift
[353/360] Compiling MLX Transforms+Eval.swift
[354/360] Compiling MLX ArrayAt.swift
[355/360] Compiling MLX Cmlx+Util.swift
[356/360] Compiling MLX DType.swift
[357/360] Compiling MLX Device.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] Emitting module MLXLinalg
[365/367] Compiling MLXLinalg Linalg.swift
[366/367] Compiling MLXRandom Random.swift
[367/367] Emitting module MLXRandom
[368/385] Compiling MLXNN PositionalEncoding.swift
[369/385] Compiling MLXNN Quantized.swift
[370/386] Compiling MLXNN Recurrent.swift
[371/386] Compiling MLXNN Transformer.swift
[372/386] Compiling MLXNN Upsample.swift
[373/386] Compiling MLXNN ValueAndGrad.swift
[374/386] Compiling MLXNN Containers.swift
[375/386] Compiling MLXNN Convolution.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 Normalization.swift
[381/386] Compiling MLXNN Pooling.swift
[382/386] Emitting module MLXNN
[383/386] Compiling MLXNN Activations.swift
[384/386] Compiling MLXNN Cache.swift
[385/386] Compiling MLXNN Losses.swift
[386/386] Compiling MLXNN Module.swift
[387/408] Emitting module MLXOptimizers
[388/408] Compiling MLXOptimizers Optimizers.swift
[389/430] Compiling MLXEmbedders Tokenizer.swift
[390/430] Compiling MLXMNIST Random.swift
[391/430] Compiling MLXMNIST Files.swift
[392/430] Compiling MLXMNIST MNIST.swift
[393/430] Emitting module MLXMNIST
[394/430] Compiling MLXEmbedders Pooling.swift
[395/430] Compiling MLXEmbedders Models.swift
[396/430] 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 {
^
[397/430] Compiling MLXEmbedders EmbeddingModel.swift
[398/430] Compiling MLXEmbedders BaseConfiguration.swift
[399/430] Compiling MLXEmbedders Configuration.swift
[400/430] Compiling MLXEmbedders Bert.swift
[401/430] 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() {
^~~~~
_
[402/430] Emitting module MLXEmbedders
[403/430] Compiling StableDiffusion VAE.swift
[404/430] 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/430] Compiling StableDiffusion Tokenizer.swift
[406/430] 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 {
^
[407/430] Compiling StableDiffusion Load.swift
[408/430] Compiling StableDiffusion Sampler.swift
[409/430] Compiling StableDiffusion Configuration.swift
[410/430] Emitting module StableDiffusion
[411/430] Compiling StableDiffusion Clip.swift
[412/430] 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/430] Compiling MLXLMCommon Tokenizer.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
[414/430] Compiling MLXLMCommon Streamlined.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:161:58: warning: initializer 'init(width:height:)' cannot be used in a default argument value because 'CoreGraphics' was not imported by this file; this is an error in Swift 6
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:161:58: note: The missing import of module 'CoreGraphics' will be added implicitly
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:178:58: warning: initializer 'init(width:height:)' cannot be used in a default argument value because 'CoreGraphics' was not imported by this file; this is an error in Swift 6
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:178:58: note: The missing import of module 'CoreGraphics' will be added implicitly
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:78:27: warning: capture of 'generate(context:)' with non-sendable type '(ModelContext) async throws -> String' in a `@Sendable` closure
try await generate(context: context)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:78:27: note: a function type must be marked '@Sendable' to conform to 'Sendable'
try await generate(context: context)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:53:14: warning: concurrently-executed local function 'generate(context:)' must be marked as '@Sendable'; this is an error in Swift 6
func generate(context: ModelContext) async throws -> String {
^
@Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:120:24: warning: capture of 'model' with non-sendable type 'Generator.Model' in a `@Sendable` closure
switch model {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:8:10: note: consider making enum 'Model' conform to the 'Sendable' protocol
enum Model {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:123:31: warning: capture of 'stream(context:continuation:)' with non-sendable type '(ModelContext, AsyncThrowingStream<String, any Error>.Continuation) async -> ()' in a `@Sendable` closure
await stream(context: context, continuation: continuation)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:123:31: note: a function type must be marked '@Sendable' to conform to 'Sendable'
await stream(context: context, continuation: continuation)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:123:31: warning: capture of 'stream(context:continuation:)' with non-sendable type '(ModelContext, AsyncThrowingStream<String, any Error>.Continuation) async -> ()' in a `@Sendable` closure
await stream(context: context, continuation: continuation)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:123:31: note: a function type must be marked '@Sendable' to conform to 'Sendable'
await stream(context: context, continuation: continuation)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:86:14: warning: concurrently-executed local function 'stream(context:continuation:)' must be marked as '@Sendable'; this is an error in Swift 6
func stream(
^
@Sendable
/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
~~~~^~~~~~
_
[415/430] Compiling MLXLMCommon StringOrNumber.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:161:58: warning: initializer 'init(width:height:)' cannot be used in a default argument value because 'CoreGraphics' was not imported by this file; this is an error in Swift 6
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:161:58: note: The missing import of module 'CoreGraphics' will be added implicitly
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:178:58: warning: initializer 'init(width:height:)' cannot be used in a default argument value because 'CoreGraphics' was not imported by this file; this is an error in Swift 6
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:178:58: note: The missing import of module 'CoreGraphics' will be added implicitly
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:78:27: warning: capture of 'generate(context:)' with non-sendable type '(ModelContext) async throws -> String' in a `@Sendable` closure
try await generate(context: context)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:78:27: note: a function type must be marked '@Sendable' to conform to 'Sendable'
try await generate(context: context)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:53:14: warning: concurrently-executed local function 'generate(context:)' must be marked as '@Sendable'; this is an error in Swift 6
func generate(context: ModelContext) async throws -> String {
^
@Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:120:24: warning: capture of 'model' with non-sendable type 'Generator.Model' in a `@Sendable` closure
switch model {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:8:10: note: consider making enum 'Model' conform to the 'Sendable' protocol
enum Model {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:123:31: warning: capture of 'stream(context:continuation:)' with non-sendable type '(ModelContext, AsyncThrowingStream<String, any Error>.Continuation) async -> ()' in a `@Sendable` closure
await stream(context: context, continuation: continuation)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:123:31: note: a function type must be marked '@Sendable' to conform to 'Sendable'
await stream(context: context, continuation: continuation)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:123:31: warning: capture of 'stream(context:continuation:)' with non-sendable type '(ModelContext, AsyncThrowingStream<String, any Error>.Continuation) async -> ()' in a `@Sendable` closure
await stream(context: context, continuation: continuation)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:123:31: note: a function type must be marked '@Sendable' to conform to 'Sendable'
await stream(context: context, continuation: continuation)
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:86:14: warning: concurrently-executed local function 'stream(context:continuation:)' must be marked as '@Sendable'; this is an error in Swift 6
func stream(
^
@Sendable
/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
~~~~^~~~~~
_
[416/431] Compiling MLXLMCommon Module+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
[417/431] Compiling MLXLMCommon AbstractModelRegistry.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
[418/431] Compiling MLXLMCommon ModelTypeRegistry.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
[419/431] Compiling MLXLMCommon ProcessorTypeRegistry.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
[420/431] Compiling MLXLMCommon ModelContainer.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:30: error: consecutive declarations on a line must be separated by ';'
) async throws -> sending ModelContext
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:31: error: expected declaration
) async throws -> sending ModelContext
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:87:17: note: in declaration of 'ModelFactory'
public protocol ModelFactory: Sendable {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:30: error: consecutive declarations on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:31: error: expected declaration
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:129:1: note: in extension of 'ModelFactory'
extension ModelFactory {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/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:63: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:63: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:94:23: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: warning: var 'defaultHubApi' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: isolate 'defaultHubApi' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:23: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:141:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:149:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:157:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:179:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:32: error: cannot find 'hub' in scope
try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:52: error: cannot find 'configuration' in scope
try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:84: error: cannot find 'progressHandler' in scope
try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:61: error: cannot find type 'sending' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:88: error: cannot find type 'sending' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:198:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:18: error: cannot find 'hub' in scope
hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:38: error: cannot find 'configuration' in scope
hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:70: error: cannot find 'progressHandler' in scope
hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
public init(context: ModelContext) {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:219:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, id: String, revision: String = "main",
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:18: error: cannot find 'hub' in scope
hub: hub, configuration: .init(id: id, revision: revision),
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:62: error: cannot find 'revision' in scope
hub: hub, configuration: .init(id: id, revision: revision),
^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:225:30: error: cannot find 'progressHandler' in scope
progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:39: error: cannot infer contextual base in reference to member 'init'
hub: hub, configuration: .init(id: id, revision: revision),
~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:240:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, id: String, revision: String = "main",
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:18: error: cannot find 'hub' in scope
hub: hub, configuration: .init(id: id, revision: revision),
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:62: error: cannot find 'revision' in scope
hub: hub, configuration: .init(id: id, revision: revision),
^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:246:30: error: cannot find 'progressHandler' in scope
progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
public init(context: ModelContext) {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:39: error: cannot infer contextual base in reference to member 'init'
hub: hub, configuration: .init(id: id, revision: revision),
~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:262:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, directory: URL,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:18: error: cannot find 'hub' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:55: error: cannot find 'directory' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:84: error: cannot find 'progressHandler' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:39: error: cannot infer contextual base in reference to member 'init'
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:282:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, directory: URL,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:18: error: cannot find 'hub' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:55: error: cannot find 'directory' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:84: error: cannot find 'progressHandler' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
public init(context: ModelContext) {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:39: error: cannot infer contextual base in reference to member 'init'
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: cannot find 'R' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:296:35: error: cannot find 'loader' in scope
let model = try await loader(factory)
^~~~~~
[421/431] Compiling MLXLMCommon ModelFactory.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:30: error: consecutive declarations on a line must be separated by ';'
) async throws -> sending ModelContext
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:31: error: expected declaration
) async throws -> sending ModelContext
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:87:17: note: in declaration of 'ModelFactory'
public protocol ModelFactory: Sendable {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:30: error: consecutive declarations on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:31: error: expected declaration
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:129:1: note: in extension of 'ModelFactory'
extension ModelFactory {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/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:63: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:63: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:94:23: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: warning: var 'defaultHubApi' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: isolate 'defaultHubApi' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:23: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:141:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:149:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:157:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:179:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:32: error: cannot find 'hub' in scope
try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:52: error: cannot find 'configuration' in scope
try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:84: error: cannot find 'progressHandler' in scope
try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:61: error: cannot find type 'sending' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:88: error: cannot find type 'sending' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:198:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:18: error: cannot find 'hub' in scope
hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:38: error: cannot find 'configuration' in scope
hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:70: error: cannot find 'progressHandler' in scope
hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
public init(context: ModelContext) {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:219:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, id: String, revision: String = "main",
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:18: error: cannot find 'hub' in scope
hub: hub, configuration: .init(id: id, revision: revision),
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:62: error: cannot find 'revision' in scope
hub: hub, configuration: .init(id: id, revision: revision),
^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:225:30: error: cannot find 'progressHandler' in scope
progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:39: error: cannot infer contextual base in reference to member 'init'
hub: hub, configuration: .init(id: id, revision: revision),
~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:240:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, id: String, revision: String = "main",
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:18: error: cannot find 'hub' in scope
hub: hub, configuration: .init(id: id, revision: revision),
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:62: error: cannot find 'revision' in scope
hub: hub, configuration: .init(id: id, revision: revision),
^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:246:30: error: cannot find 'progressHandler' in scope
progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
public init(context: ModelContext) {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:39: error: cannot infer contextual base in reference to member 'init'
hub: hub, configuration: .init(id: id, revision: revision),
~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:262:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, directory: URL,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:18: error: cannot find 'hub' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:55: error: cannot find 'directory' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:84: error: cannot find 'progressHandler' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:39: error: cannot infer contextual base in reference to member 'init'
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:282:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, directory: URL,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:18: error: cannot find 'hub' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:55: error: cannot find 'directory' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:84: error: cannot find 'progressHandler' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
public init(context: ModelContext) {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:39: error: cannot infer contextual base in reference to member 'init'
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: cannot find 'R' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:296:35: error: cannot find 'loader' in scope
let model = try await loader(factory)
^~~~~~
[422/431] Compiling MLXLMCommon Lora.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
[423/431] Compiling MLXLMCommon ModelConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[424/431] Emitting module MLXLMCommon
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/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/ModelFactory.swift:94:30: error: consecutive declarations on a line must be separated by ';'
) async throws -> sending ModelContext
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:31: error: expected declaration
) async throws -> sending ModelContext
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:87:17: note: in declaration of 'ModelFactory'
public protocol ModelFactory: Sendable {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:30: error: consecutive declarations on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:31: error: expected declaration
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:129:1: note: in extension of 'ModelFactory'
extension ModelFactory {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:94:23: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: warning: var 'defaultHubApi' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: isolate 'defaultHubApi' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:143:23: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:141:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:149:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:157:23: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:179:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:32: error: cannot find 'hub' in scope
try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:52: error: cannot find 'configuration' in scope
try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:183:84: error: cannot find 'progressHandler' in scope
try await $0.load(hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:61: error: cannot find type 'sending' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:88: error: cannot find type 'sending' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:198:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, configuration: ModelConfiguration,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:18: error: cannot find 'hub' in scope
hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:38: error: cannot find 'configuration' in scope
hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:203:70: error: cannot find 'progressHandler' in scope
hub: hub, configuration: configuration, progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
public init(context: ModelContext) {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:219:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, id: String, revision: String = "main",
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:18: error: cannot find 'hub' in scope
hub: hub, configuration: .init(id: id, revision: revision),
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:62: error: cannot find 'revision' in scope
hub: hub, configuration: .init(id: id, revision: revision),
^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:225:30: error: cannot find 'progressHandler' in scope
progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:224:39: error: cannot infer contextual base in reference to member 'init'
hub: hub, configuration: .init(id: id, revision: revision),
~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:240:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, id: String, revision: String = "main",
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:18: error: cannot find 'hub' in scope
hub: hub, configuration: .init(id: id, revision: revision),
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:62: error: cannot find 'revision' in scope
hub: hub, configuration: .init(id: id, revision: revision),
^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:246:30: error: cannot find 'progressHandler' in scope
progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
public init(context: ModelContext) {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:245:39: error: cannot infer contextual base in reference to member 'init'
hub: hub, configuration: .init(id: id, revision: revision),
~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContext {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:262:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, directory: URL,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:18: error: cannot find 'hub' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:55: error: cannot find 'directory' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:84: error: cannot find 'progressHandler' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:40: error: missing arguments for parameters 'model', 'processor', 'tokenizer' in call
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:40: error: trailing closure passed to parameter of type 'ModelConfiguration' that does not accept a closure
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:69:12: note: 'init(configuration:model:processor:tokenizer:)' declared here
public init(
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:267:39: error: cannot infer contextual base in reference to member 'init'
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:19: error: cannot find type 'sending' in scope
) async throws -> sending ModelContainer {
^~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:282:19: warning: reference to var 'defaultHubApi' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
hub: HubApi = defaultHubApi, directory: URL,
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:125:12: note: var declared here
public var defaultHubApi: HubApi = {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:18: error: cannot find 'hub' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:55: error: cannot find 'directory' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:84: error: cannot find 'progressHandler' in scope
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:42: error: trailing closure passed to parameter of type 'ModelContext' that does not accept a closure
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelContainer.swift:38:12: note: 'init(context:)' declared here
public init(context: ModelContext) {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:287:39: error: cannot infer contextual base in reference to member 'init'
hub: hub, configuration: .init(directory: directory), progressHandler: progressHandler)
~^~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: cannot find 'R' in scope
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:296:35: error: cannot find 'loader' in scope
let model = try await loader(factory)
^~~~~~
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:161:58: warning: initializer 'init(width:height:)' cannot be used in a default argument value because 'CoreGraphics' was not imported by this file; this is an error in Swift 6
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:161:58: note: The missing import of module 'CoreGraphics' will be added implicitly
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:178:58: warning: initializer 'init(width:height:)' cannot be used in a default argument value because 'CoreGraphics' was not imported by this file; this is an error in Swift 6
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Streamlined.swift:178:58: note: The missing import of module 'CoreGraphics' will be added implicitly
processing: UserInput.Processing = .init(resize: CGSize(width: 512, height: 512))
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/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]?
^
[425/431] Compiling MLXLMCommon LanguageModel.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
[426/431] Compiling MLXLMCommon Load.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
[427/431] Compiling MLXLMCommon BaseConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
[428/431] Compiling MLXLMCommon Chat.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
[429/431] Compiling MLXLMCommon Evaluate.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift: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:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift: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:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift: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:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
[430/431] Compiling MLXLMCommon KVCache.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/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:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift: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:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Evaluate.swift: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:63:15: note: consider making struct 'ModelContext' conform to the 'Sendable' protocol
public struct ModelContext {
^
: Sendable
[431/431] Compiling MLXLMCommon UserInput.swift
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:181:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:200:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:221:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:242:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContext {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:264:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContext {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:26: error: consecutive statements on a line must be separated by ';'
) async throws -> sending ModelContainer {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:284:27: error: expressions are not allowed at the top level
) async throws -> sending ModelContainer {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: expected ',' separator
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
,
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:69: error: unnamed parameters must be written with the empty name '_'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
_:
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:95: error: consecutive statements on a line must be separated by ';'
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
;
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/ModelFactory.swift:291:96: error: expressions are not allowed at the top level
private func load<R>(loader: (ModelFactory) async throws -> sending R) async throws -> sending R {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:26:14: warning: associated value 'messages' of 'Sendable'-conforming enum 'Prompt' has non-sendable type 'Any'
case messages([Message])
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:29:14: warning: associated value 'chat' of 'Sendable'-conforming enum 'Prompt' has non-sendable type 'Chat.Message'
case chat([Chat.Message])
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/Chat.swift:4:19: note: consider making struct 'Message' conform to the 'Sendable' protocol
public struct Message {
^
: Sendable
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:45:14: warning: associated value 'avAsset' of 'Sendable'-conforming enum 'Video' has non-sendable type 'AVAsset'
case avAsset(AVAsset)
^
AVFoundation.AVAsset:2:12: note: class 'AVAsset' does not conform to the 'Sendable' protocol
open class AVAsset : NSObject, NSCopying, AVAsynchronousKeyValueLoading {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:3:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFoundation'
import AVFoundation
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:60:14: warning: associated value 'ciImage' of 'Sendable'-conforming enum 'Image' has non-sendable type 'CIImage'
case ciImage(CIImage)
^
CoreImage.CIImage:2:12: note: class 'CIImage' does not conform to the 'Sendable' protocol
open class CIImage : NSObject, NSSecureCoding, NSCopying {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:4:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreImage'
import CoreImage
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:62:14: warning: associated value 'array' of 'Sendable'-conforming enum 'Image' has non-sendable type 'MLXArray'
case array(MLXArray)
^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift/Source/MLX/MLXArray.swift:8:20: note: class 'MLXArray' does not conform to the 'Sendable' protocol
public final class MLXArray {
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:6:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MLX'
import MLX
^
@preconcurrency
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:162:16: warning: stored property 'tools' of 'Sendable'-conforming struct 'UserInput' has non-sendable type '[ToolSpec]?' (aka 'Optional<Array<Dictionary<String, Any>>>')
public var tools: [ToolSpec]?
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:165:16: warning: stored property 'additionalContext' of 'Sendable'-conforming struct 'UserInput' has non-sendable type '[String : Any]?'
public var additionalContext: [String: Any]?
^
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:111:28: warning: immutable value 'C' was never used; consider replacing with '_' or removing it
let (H, W, C) = array.shape3
^
_
/Users/admin/builder/spi-builder-workspace/Libraries/MLXLMCommon/UserInput.swift:117:30: warning: reference to static property 'RGBA8' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6
format: .RGBA8, colorSpace: cs)
^
CoreImage.CIFormat:10:23: note: static property declared here
public static var RGBA8: CIFormat
^
error: fatalError
Fetching https://github.com/1024jp/GzipSwift
Fetching https://github.com/ml-explore/mlx-swift
Fetching https://github.com/huggingface/swift-transformers
[1/1557] Fetching gzipswift
[282/4860] Fetching gzipswift, swift-transformers
[948/15753] Fetching gzipswift, swift-transformers, mlx-swift
Fetched https://github.com/ml-explore/mlx-swift from cache (1.81s)
Fetched https://github.com/huggingface/swift-transformers from cache (1.81s)
Fetched https://github.com/1024jp/GzipSwift from cache (1.81s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 6.0.1 (2.19s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 0.1.21 (0.38s)
Fetching https://github.com/johnmai-dev/Jinja
Fetching https://github.com/apple/swift-argument-parser.git
[1/393] Fetching jinja
[394/15773] Fetching jinja, swift-argument-parser
Fetched https://github.com/johnmai-dev/Jinja from cache (1.59s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.59s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.25.4 (0.39s)
Fetching https://github.com/apple/swift-numerics
[1/5757] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.95s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (0.38s)
Computing version for https://github.com/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/16606] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.72s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.45s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.3 (0.47s)
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/1024jp/GzipSwift
Working copy of https://github.com/1024jp/GzipSwift resolved at 6.0.1
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.25.4
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-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.3
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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
BUILD FAILURE 5.10 macosSpm