Build Information
Successful build of CoreMLLLM, reference main (6273b0), with Swift 6.4 for macOS (SPM) on 21 Nov 2026 14:03:18 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-27.0.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/john-rocky/CoreML-LLM.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/john-rocky/CoreML-LLM
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6273b09 Replace absolute local paths with home-relative ones
Cloned https://github.com/john-rocky/CoreML-LLM.git
Revision (git rev-parse @):
6273b0988cbd11160fb445318456cb600cc5c4c0
SUCCESS checkout https://github.com/john-rocky/CoreML-LLM.git at main
Fetching https://github.com/mattt/EventSource.git
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/huggingface/swift-huggingface.git
Fetching https://github.com/apple/swift-asn1.git
[1/1936] Fetching swift-atomics
[21/4018] Fetching swift-atomics, swift-asn1
[22/7173] Fetching swift-atomics, swift-asn1, swift-huggingface
[23/9554] Fetching swift-atomics, swift-asn1, swift-huggingface, swift-jinja
[24/9887] Fetching swift-atomics, swift-asn1, swift-huggingface, swift-jinja, eventsource
[7586/40302] Fetching swift-atomics, swift-asn1, swift-huggingface, swift-jinja, eventsource, swift-collections
Fetched https://github.com/huggingface/swift-jinja.git (1.13s)
Fetched https://github.com/mattt/EventSource.git (1.13s)
[6985/37588] Fetching swift-atomics, swift-asn1, swift-huggingface, swift-collections
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/huggingface/swift-transformers
[8999/124538] Fetching swift-atomics, swift-asn1, swift-huggingface, swift-collections, swift-nio
[19735/132083] Fetching swift-atomics, swift-asn1, swift-huggingface, swift-collections, swift-nio, swift-transformers
[24134/137437] Fetching swift-atomics, swift-asn1, swift-huggingface, swift-collections, swift-nio, swift-transformers, yyjson
Fetched https://github.com/ibireme/yyjson.git (1.65s)
[71007/132083] Fetching swift-atomics, swift-asn1, swift-huggingface, swift-collections, swift-nio, swift-transformers
Fetching https://github.com/apple/swift-crypto.git
Fetched https://github.com/huggingface/swift-transformers (1.72s)
Computing version for https://github.com/huggingface/swift-transformers
[69373/124538] Fetching swift-atomics, swift-asn1, swift-huggingface, swift-collections, swift-nio
Fetching https://github.com/apple/swift-system.git
[90629/143525] Fetching swift-atomics, swift-asn1, swift-huggingface, swift-collections, swift-nio, swift-crypto
Computed https://github.com/huggingface/swift-transformers at 1.3.0 (3.52s)
[92748/151144] Fetching swift-atomics, swift-asn1, swift-huggingface, swift-collections, swift-nio, swift-crypto, swift-system
Fetched https://github.com/apple/swift-system.git (1.31s)
[97064/143525] Fetching swift-atomics, swift-asn1, swift-huggingface, swift-collections, swift-nio, swift-crypto
Fetched https://github.com/apple/swift-crypto.git (3.87s)
[105409/124538] Fetching swift-atomics, swift-asn1, swift-huggingface, swift-collections, swift-nio
Fetched https://github.com/apple/swift-collections.git (9.56s)
Fetched https://github.com/apple/swift-asn1.git (9.56s)
Fetched https://github.com/apple/swift-atomics.git (9.56s)
Fetched https://github.com/huggingface/swift-huggingface.git (9.56s)
Computing version for https://github.com/ibireme/yyjson.git
Fetched https://github.com/apple/swift-nio.git (9.56s)
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (16.53s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.4.0 (2.32s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (0.72s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.9.0 (0.62s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.3.5 (0.63s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (0.72s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.4.1 (0.61s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.98.0 (0.71s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.61s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.60s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.3.5
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.4.0
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.98.0
Creating working copy for https://github.com/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.12.0
Creating working copy for https://github.com/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 0.9.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "coreml-llm",
"name": "CoreMLLLM",
"url": "https://github.com/john-rocky/CoreML-LLM.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CoreML-LLM",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-transformers",
"name": "swift-transformers",
"url": "https://github.com/huggingface/swift-transformers",
"version": "1.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-transformers",
"traits": [
],
"dependencies": [
{
"identity": "swift-jinja",
"name": "Jinja",
"url": "https://github.com/huggingface/swift-jinja.git",
"version": "3.2.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-jinja",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.7.6",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"traits": [
],
"dependencies": [
]
}
]
},
{
"identity": "swift-huggingface",
"name": "swift-huggingface",
"url": "https://github.com/huggingface/swift-huggingface.git",
"version": "1.0.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-huggingface",
"traits": [
],
"dependencies": [
{
"identity": "eventsource",
"name": "EventSource",
"url": "https://github.com/mattt/EventSource.git",
"version": "1.6.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/EventSource",
"traits": [
],
"dependencies": [
]
},
{
"identity": "swift-crypto",
"name": "swift-crypto",
"url": "https://github.com/apple/swift-crypto.git",
"version": "4.5.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-crypto",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-asn1",
"name": "swift-asn1",
"url": "https://github.com/apple/swift-asn1.git",
"version": "1.7.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-asn1",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.7.6",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"traits": [
],
"dependencies": [
]
},
{
"identity": "swift-crypto",
"name": "swift-crypto",
"url": "https://github.com/apple/swift-crypto.git",
"version": "4.5.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-crypto",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-asn1",
"name": "swift-asn1",
"url": "https://github.com/apple/swift-asn1.git",
"version": "1.7.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-asn1",
"traits": [
"default"
],
"dependencies": [
]
}
]
},
{
"identity": "yyjson",
"name": "yyjson",
"url": "https://github.com/ibireme/yyjson.git",
"version": "0.13.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/yyjson",
"traits": [
],
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/john-rocky/CoreML-LLM.git
[1/6463] Fetching coreml-llm
Fetched https://github.com/john-rocky/CoreML-LLM.git (2.60s)
Fetching https://github.com/huggingface/swift-transformers from cache
Fetched https://github.com/huggingface/swift-transformers from cache (0.56s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.4.0 (1.24s)
Fetching https://github.com/ibireme/yyjson.git from cache
Fetching https://github.com/huggingface/swift-huggingface.git from cache
Fetching https://github.com/apple/swift-crypto.git from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetching https://github.com/huggingface/swift-jinja.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (0.64s)
Fetched https://github.com/ibireme/yyjson.git from cache (0.69s)
Fetched https://github.com/apple/swift-crypto.git from cache (0.69s)
Fetched https://github.com/huggingface/swift-jinja.git from cache (0.69s)
Fetched https://github.com/huggingface/swift-huggingface.git from cache (0.69s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.13.0 (1.37s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 1.0.1 (0.63s)
Fetching https://github.com/mattt/EventSource.git from cache
Fetched https://github.com/mattt/EventSource.git from cache (0.49s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 3.2.1 (0.57s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.6.0 (0.60s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.6 (0.70s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (0.03s)
Fetching https://github.com/apple/swift-asn1.git from cache
Fetched https://github.com/apple/swift-asn1.git from cache (0.51s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.4 (0.57s)
Creating working copy for https://github.com/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.13.0
Creating working copy for https://github.com/john-rocky/CoreML-LLM.git
Working copy of https://github.com/john-rocky/CoreML-LLM.git resolved at main (6273b09)
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.6
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 3.2.1
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.4
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.4.0
Creating working copy for https://github.com/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 1.0.1
Found 1 product dependencies
- swift-transformers
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.4
Building package at path: $PWD
https://github.com/john-rocky/CoreML-LLM.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0.app xcrun swift build --arch arm64
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 1099]
[Planning deferred tasks]
[Starting]
[9 / 443]
[208 / 443] swift-crypto_Crypto
[214 / 443]
[231 / 449] CNIOWindows
[237 / 472] CNIOWindows
[249 / 500]
[261 / 523]
[275 / 549]
[295 / 549]
[303 / 549]
[318 / 581]
[324 / 581]
[333 / 581] InternalCollectionsUtilities
[338 / 581] _NIOBase64
[344 / 581] Atomics
[346 / 581] Atomics
[349 / 581] Atomics
[352 / 581]
[356 / 581] _NIODataStructures
[373 / 581] NIOConcurrencyHelpers
[384 / 581] NIOConcurrencyHelpers
[387 / 581]
[390 / 581]
[396 / 581]
[405 / 583] Atomics
[414 / 605] ContainersPreview
[416 / 605]
[420 / 605] ContainersPreview
[428 / 605] ContainersPreview
[432 / 605]
[439 / 606]
[447 / 617] OrderedCollections
[456 / 617] OrderedCollections-product
[464 / 617] Crypto
[466 / 617] Crypto
[470 / 617] Crypto
[475 / 617] Crypto
[477 / 617] DequeModule
[485 / 617] Crypto
[488 / 619] Crypto
[490 / 619] NIOCore
[501 / 642] NIOCore
[503 / 642] NIOCore
[505 / 642] Jinja
[513 / 642] NIOCore
[516 / 642] NIOCore
[517 / 642] NIOCore
[518 / 642] Jinja
[519 / 642] Jinja-product
[520 / 642] Jinja-product
[521 / 642] NIOCore
[523 / 642] NIOCore
[532 / 643] EventSource
[537 / 648] EventSource
[544 / 649] EventSource
[546 / 649] HuggingFace
[558 / 687]
[564 / 687]
[567 / 687]
[569 / 687]
[571 / 687]
[572 / 687]
[573 / 687]
[584 / 687] HuggingFace
[591 / 688] HuggingFace
[593 / 728]
[603 / 751]
[606 / 751]
[607 / 751]
[612 / 751]
[614 / 751]
[616 / 751]
[620 / 751]
[624 / 751]
[627 / 751]
[629 / 751]
[630 / 751]
[641 / 751]
[643 / 751]
[644 / 751]
[646 / 751]
[648 / 751]
[649 / 751]
[656 / 751] Hub
[663 / 752] Hub
[663 / 752] Tokenizers
[673 / 763] Tokenizers
[674 / 763] Tokenizers
[681 / 764] Tokenizers
[685 / 764] CoreMLLLM
[691 / 787]
[692 / 787]
[694 / 787]
[696 / 787]
[697 / 787]
[708 / 787] CoreMLLLM
[740 / 793]
[741 / 794]
[743 / 797] coreml-llm-smoke-product
[751 / 808] video-test-product
[754 / 810] functiongemma-demo-product
[757 / 810] verify-k8-probe-product
[764 / 810] determinism-oracle-product
[771 / 814] coreml-llm-smoke-product
[775 / 814] embeddinggemma-demo-product
[776 / 814] coreml-llm-smoke-product
[777 / 814] ane-residency-gate-product
[784 / 821] CoreMLLLM
[785 / 821] accept-rate-bench-product
[788 / 821] ane-residency-gate-product
[798 / 821] CoreMLLLM-product
[806 / 821] gemma4mm-smoke-product
[808 / 821]
[819 / 821] accept-rate-bench-product
Build complete! (32.31 sec)
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/SuffixSpeculativeEngine.swift:164:13: [1;33mwarning: [1;39mresult of 'try?' is unused[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m162 |[0;0m if let url = persistURL, commitsSinceSave >= saveEvery {
[0;36m163 |[0;0m commitsSinceSave = 0
[0;36m164 |[0;0m [4;39mtry? tree.save(to: url)[0;0m
[0;36m|[0;0m `- [1;33mwarning: [1;39mresult of 'try?' is unused[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m165 |[0;0m }
[0;36m166 |[0;0m }
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/Gemma3BundleDownloader.swift:335:17: [1;33mwarning: [1;39mstored property 'continuation' of 'Sendable'-conforming class 'Delegate' is mutable[0;0m
[0;36m333 |[0;0m let state: ProgressState
[0;36m334 |[0;0m let onUpdate: (Progress) -> Void
[0;36m335 |[0;0m var continuation: CheckedContinuation<(URL, URLResponse), Swift.Error>?
[0;36m|[0;0m `- [1;33mwarning: [1;39mstored property 'continuation' of 'Sendable'-conforming class 'Delegate' is mutable[0;0m
[0;36m336 |[0;0m private var lastUpdate = Date.distantPast
[0;36m337 |[0;0m private var movedURL: URL?
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/Gemma3BundleDownloader.swift:335:17: [1;33mwarning: [1;39mstored property 'continuation' of 'Sendable'-conforming class 'Delegate' is mutable[0;0m
[0;36m333 |[0;0m let state: ProgressState
[0;36m334 |[0;0m let onUpdate: (Progress) -> Void
[0;36m335 |[0;0m var continuation: CheckedContinuation<(URL, URLResponse), Swift.Error>?
[0;36m|[0;0m `- [1;33mwarning: [1;39mstored property 'continuation' of 'Sendable'-conforming class 'Delegate' is mutable[0;0m
[0;36m336 |[0;0m private var lastUpdate = Date.distantPast
[0;36m337 |[0;0m private var movedURL: URL?
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/CoreMLLLM.swift:627:33: [1;33mwarning: [1;39mcapture of 'm' with non-Sendable type 'MLModel' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m625 |[0;0m "pixel_position_ids": MLFeatureValue(multiArray: pid),
[0;36m626 |[0;0m ])
[0;36m627 |[0;0m _ = try m.prediction(from: input)
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'm' with non-Sendable type 'MLModel' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m628 |[0;0m let dw = CFAbsoluteTimeGetCurrent() - tw
[0;36m629 |[0;0m print("[Load] vision GPU prewarm predict in \(String(format: "%.1f", dw))s")
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLModel.h:28:12: [1;39mnote: [1;39mclass 'MLModel' does not conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
[0;36m27 |[0;0m ML_EXPORT
[0;36m28 |[0;0m @interface MLModel : NSObject
[0;36m|[0;0m `- [1;39mnote: [1;39mclass 'MLModel' does not conform to the 'Sendable' protocol[0;0m
[0;36m29 |[0;0m
[0;36m30 |[0;0m /// A model holds a description of its required inputs and expected outputs.
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/CoreMLLLM.swift:1:1: [1;33mwarning: [1;39madd '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/add-preconcurrency-import\AddPreconcurrencyImport]8;;\]
[0;36m1 |[0;0m import CoreML
[0;36m|[0;0m `- [1;33mwarning: [1;39madd '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/add-preconcurrency-import\AddPreconcurrencyImport]8;;\]
[0;36m2 |[0;0m import Foundation
[0;36m3 |[0;0m import Tokenizers
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/CoreMLLLM.swift:680:33: [1;33mwarning: [1;39mcapture of 'm' with non-Sendable type 'MLModel' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m678 |[0;0m "pixel_position_ids": MLFeatureValue(multiArray: pid),
[0;36m679 |[0;0m ])
[0;36m680 |[0;0m _ = try m.prediction(from: input)
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'm' with non-Sendable type 'MLModel' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m681 |[0;0m let dw = CFAbsoluteTimeGetCurrent() - tw
[0;36m682 |[0;0m print("[Load] vision ANE prewarm predict in \(String(format: "%.1f", dw))s")
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLModel.h:28:12: [1;39mnote: [1;39mclass 'MLModel' does not conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
[0;36m27 |[0;0m ML_EXPORT
[0;36m28 |[0;0m @interface MLModel : NSObject
[0;36m|[0;0m `- [1;39mnote: [1;39mclass 'MLModel' does not conform to the 'Sendable' protocol[0;0m
[0;36m29 |[0;0m
[0;36m30 |[0;0m /// A model holds a description of its required inputs and expected outputs.
[#AddPreconcurrencyImport]: <https://docs.swift.org/compiler/documentation/diagnostics/add-preconcurrency-import>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/AudioProcessor.swift:174:9: [1;33mwarning: [1;39m'cblas_sgemm' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m172 |[0;0m // output_proj: (S, 1024) @ W^T(1024, 1536) → (S, 1536)
[0;36m173 |[0;0m var projected = [Float](repeating: 0, count: S * outDim)
[0;36m174 |[0;0m cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans,
[0;36m|[0;0m `- [1;33mwarning: [1;39m'cblas_sgemm' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m175 |[0;0m Int32(S), Int32(outDim), Int32(inDim),
[0;36m176 |[0;0m 1.0, inputF32, Int32(inDim),
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/AudioProcessor.swift:200:9: [1;33mwarning: [1;39m'cblas_sgemm' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m198 |[0;0m let finalDim = proj.finalDim
[0;36m199 |[0;0m var features = [Float](repeating: 0, count: S * finalDim)
[0;36m200 |[0;0m cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans,
[0;36m|[0;0m `- [1;33mwarning: [1;39m'cblas_sgemm' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m201 |[0;0m Int32(S), Int32(finalDim), Int32(outDim),
[0;36m202 |[0;0m 1.0, projected, Int32(outDim),
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/AudioProcessor.swift:300:13: [1;33mwarning: [1;39m'cblas_sgemv' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m298 |[0;0m
[0;36m299 |[0;0m let melOffset = f * numMelBins
[0;36m300 |[0;0m cblas_sgemv(CblasRowMajor, CblasTrans,
[0;36m|[0;0m `- [1;33mwarning: [1;39m'cblas_sgemv' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m301 |[0;0m Int32(numFFTBins), Int32(numMelBins),
[0;36m302 |[0;0m 1.0, melFilterbank, Int32(numMelBins),
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/ChunkedEngine.swift:868:22: [1;33mwarning: [1;39mconcurrently-executed local function 'bgLoad' must be marked as '@Sendable'; this is an error in the Swift 6 language mode[0;0m
[0;36m866 |[0;0m return nil
[0;36m867 |[0;0m }
[0;36m868 |[0;0m func bgLoad(_ name: String) throws -> MLModel {
[0;36m|[0;0m `- [1;33mwarning: [1;39mconcurrently-executed local function 'bgLoad' must be marked as '@Sendable'; this is an error in the Swift 6 language mode[0;0m
[0;36m869 |[0;0m guard let url = bgFind(name) else {
[0;36m870 |[0;0m throw CoreMLLLMError.modelNotFound(name)
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/ChunkedEngine.swift:785:24: [1;33mwarning: [1;39mno calls to throwing functions occur within 'try' expression[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
[0;36m783 |[0;0m let shape: [NSNumber] = [NSNumber(value: slots), NSNumber(value: nkv),
[0;36m784 |[0;0m NSNumber(value: seqLen), NSNumber(value: maxHd)]
[0;36m785 |[0;0m return try MLMultiArray(pixelBuffer: pb, shape: shape)
[0;36m|[0;0m `- [1;33mwarning: [1;39mno calls to throwing functions occur within 'try' expression[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
[0;36m786 |[0;0m }
[0;36m787 |[0;0m // Fallback to standard allocation
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/ChunkedEngine.swift:1018:22: [1;33mwarning: [1;39mresult of call to 'withUnsafeBytes' is unused[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m1016 |[0;0m "snapshot buffer \(i) size mismatch (got \(blobs[i].count), need \(expected))"])
[0;36m1017 |[0;0m }
[0;36m1018 |[0;0m blobs[i].withUnsafeBytes [4;39m{ src in[0;0m
[0;36m|[0;0m `- [1;33mwarning: [1;39mresult of call to 'withUnsafeBytes' is unused[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m1019 |[0;0m memcpy(buf.dataPointer, src.baseAddress!, expected)
[0;36m1020 |[0;0m }
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/ChunkedEngine.swift:1668:13: [1;33mwarning: [1;39minitialization of immutable value 'hidden' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m1666 |[0;0m let ctx = config.contextLength
[0;36m1667 |[0;0m let W = config.slidingWindow
[0;36m1668 |[0;0m let hidden = config.hiddenSize
[0;36m|[0;0m `- [1;33mwarning: [1;39minitialization of immutable value 'hidden' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m1669 |[0;0m
[0;36m1670 |[0;0m // Build batched embeddings for K tokens: (1, K, hidden)
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/ChunkedEngine.swift:2074:9: [1;33mwarning: [1;39m'cblas_sgemv' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m2072 |[0;0m
[0;36m2073 |[0;0m var proj = [Float](repeating: 0, count: totalDim)
[0;36m2074 |[0;0m cblas_sgemv(CblasRowMajor, CblasNoTrans,
[0;36m|[0;0m `- [1;33mwarning: [1;39m'cblas_sgemv' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m2075 |[0;0m Int32(totalDim), Int32(hidden),
[0;36m2076 |[0;0m config.perLayerProjScale, perLayerProjF32, Int32(hidden),
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
[#UnnecessaryEffectMarker]: <https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker>
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/Qwen35MLKVGenerator.swift:519:21: [1;33mwarning: [1;39m'cblas_sgemv' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m517 |[0;0m scaled.withUnsafeBufferPointer { xPtr in
[0;36m518 |[0;0m logitsBuf.withUnsafeMutableBufferPointer { yPtr in
[0;36m519 |[0;0m cblas_sgemv(CblasRowMajor, CblasNoTrans,
[0;36m|[0;0m `- [1;33mwarning: [1;39m'cblas_sgemv' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support.[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m520 |[0;0m Int32(V), Int32(H),
[0;36m521 |[0;0m 1.0,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/Gemma4StatefulEngine.swift:827:13: [1;33mwarning: [1;39mvariable 'shared' was never mutated; consider changing to 'let' constant[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
[0;36m825 |[0;0m
[0;36m826 |[0;0m // 5) Chunks 3 + 4
[0;36m827 |[0;0m var shared: [String: MLFeatureValue] = [
[0;36m|[0;0m `- [1;33mwarning: [1;39mvariable 'shared' was never mutated; consider changing to 'let' constant[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
[0;36m828 |[0;0m "causal_mask_full": fvMF,
[0;36m829 |[0;0m "causal_mask_sliding": fvMS,
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/Gemma4StatefulMultimodalEngine.swift:832:13: [1;33mwarning: [1;39mvariable 'sharedInputs' was never mutated; consider changing to 'let' constant[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
[0;36m830 |[0;0m else { throw CoreMLLLMError.modelNotFound("decode chunk_2 missing outputs") }
[0;36m831 |[0;0m
[0;36m832 |[0;0m var sharedInputs: [String: MLFeatureValue] = [
[0;36m|[0;0m `- [1;33mwarning: [1;39mvariable 'sharedInputs' was never mutated; consider changing to 'let' constant[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
[0;36m833 |[0;0m "causal_mask_full": fvMaskFull,
[0;36m834 |[0;0m "causal_mask_sliding": fvMaskSliding,
/Users/admin/builder/spi-builder-workspace/Sources/CoreMLLLM/Gemma4StatefulMultimodalEngine.swift:1003:13: [1;33mwarning: [1;39mvariable 'sharedInputs' was never mutated; consider changing to 'let' constant[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
[0;36m1001 |[0;0m else { throw CoreMLLLMError.modelNotFound("prefill T=288 chunk_2 missing outputs") }
[0;36m1002 |[0;0m
[0;36m1003 |[0;0m var sharedInputs: [String: MLFeatureValue] = [
[0;36m|[0;0m `- [1;33mwarning: [1;39mvariable 'sharedInputs' was never mutated; consider changing to 'let' constant[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
[0;36m1004 |[0;0m "causal_mask_full": fvMF,
[0;36m1005 |[0;0m "causal_mask_sliding": fvMS,
[#VariableNeverMutated]: <https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated>
Build complete.
{
"dependencies" : [
{
"identity" : "swift-transformers",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/huggingface/swift-transformers"
}
],
"manifest_display_name" : "CoreMLLLM",
"name" : "CoreMLLLM",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "18.0"
},
{
"name" : "macos",
"version" : "15.0"
}
],
"products" : [
{
"name" : "CoreMLLLM",
"targets" : [
"CoreMLLLM"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "video-test",
"targets" : [
"VideoTest"
],
"type" : {
"executable" : null
}
},
{
"name" : "accept-rate-bench",
"targets" : [
"AcceptRateBench"
],
"type" : {
"executable" : null
}
},
{
"name" : "coreml-llm-smoke",
"targets" : [
"CoreMLLLMSmoke"
],
"type" : {
"executable" : null
}
},
{
"name" : "union-bitexact",
"targets" : [
"UnionBitExact"
],
"type" : {
"executable" : null
}
},
{
"name" : "determinism-oracle",
"targets" : [
"DeterminismOracle"
],
"type" : {
"executable" : null
}
},
{
"name" : "verify-k8-probe",
"targets" : [
"VerifyK8Probe"
],
"type" : {
"executable" : null
}
},
{
"name" : "ane-residency-gate",
"targets" : [
"AneResidencyGate"
],
"type" : {
"executable" : null
}
},
{
"name" : "gemma4mm-smoke",
"targets" : [
"Gemma4MMSmoke"
],
"type" : {
"executable" : null
}
},
{
"name" : "functiongemma-demo",
"targets" : [
"FunctionGemmaDemo"
],
"type" : {
"executable" : null
}
},
{
"name" : "embeddinggemma-demo",
"targets" : [
"EmbeddingGemmaDemo"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "VideoTest",
"module_type" : "SwiftTarget",
"name" : "VideoTest",
"path" : "Sources/VideoTest",
"product_memberships" : [
"video-test"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"CoreMLLLM"
],
"type" : "executable"
},
{
"c99name" : "VerifyK8Probe",
"module_type" : "SwiftTarget",
"name" : "VerifyK8Probe",
"path" : "Sources/verify-k8-probe",
"product_memberships" : [
"verify-k8-probe"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"CoreMLLLM"
],
"type" : "executable"
},
{
"c99name" : "UnionBitExact",
"module_type" : "SwiftTarget",
"name" : "UnionBitExact",
"path" : "Sources/union-bitexact",
"product_memberships" : [
"union-bitexact"
],
"sources" : [
"Verifier.swift",
"iOSStub.swift"
],
"target_dependencies" : [
"CoreMLLLM"
],
"type" : "executable"
},
{
"c99name" : "Gemma4MMSmoke",
"module_type" : "SwiftTarget",
"name" : "Gemma4MMSmoke",
"path" : "Sources/gemma4mm-smoke",
"product_dependencies" : [
"Tokenizers"
],
"product_memberships" : [
"gemma4mm-smoke"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"CoreMLLLM"
],
"type" : "executable"
},
{
"c99name" : "FunctionGemmaDemo",
"module_type" : "SwiftTarget",
"name" : "FunctionGemmaDemo",
"path" : "Sources/functiongemma-demo",
"product_memberships" : [
"functiongemma-demo"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"CoreMLLLM"
],
"type" : "executable"
},
{
"c99name" : "EmbeddingGemmaDemo",
"module_type" : "SwiftTarget",
"name" : "EmbeddingGemmaDemo",
"path" : "Sources/embeddinggemma-demo",
"product_memberships" : [
"embeddinggemma-demo"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"CoreMLLLM"
],
"type" : "executable"
},
{
"c99name" : "DeterminismOracle",
"module_type" : "SwiftTarget",
"name" : "DeterminismOracle",
"path" : "Sources/determinism-oracle",
"product_memberships" : [
"determinism-oracle"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"CoreMLLLM"
],
"type" : "executable"
},
{
"c99name" : "CoreMLLLMTests",
"module_type" : "SwiftTarget",
"name" : "CoreMLLLMTests",
"path" : "Tests/CoreMLLLMTests",
"sources" : [
"ChunkedEngineKVParityTests.swift",
"CrossVocabDraftTests.swift",
"CrossVocabMapTests.swift",
"SuffixTreeTests.swift"
],
"target_dependencies" : [
"CoreMLLLM"
],
"type" : "test"
},
{
"c99name" : "CoreMLLLMSmoke",
"module_type" : "SwiftTarget",
"name" : "CoreMLLLMSmoke",
"path" : "Sources/CoreMLLLMSmoke",
"product_memberships" : [
"coreml-llm-smoke"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"CoreMLLLM"
],
"type" : "executable"
},
{
"c99name" : "CoreMLLLM",
"module_type" : "SwiftTarget",
"name" : "CoreMLLLM",
"path" : "Sources/CoreMLLLM",
"product_dependencies" : [
"Tokenizers"
],
"product_memberships" : [
"CoreMLLLM",
"video-test",
"accept-rate-bench",
"coreml-llm-smoke",
"union-bitexact",
"determinism-oracle",
"verify-k8-probe",
"ane-residency-gate",
"gemma4mm-smoke",
"functiongemma-demo",
"embeddinggemma-demo"
],
"sources" : [
"AudioProcessor.swift",
"ChunkedEngine.swift",
"ComputePlanAudit.swift",
"ComputePreferenceLoader.swift",
"CoreMLLLM.swift",
"CrossVocabDraft.swift",
"CrossVocabSpeculativeEngine.swift",
"DrafterUnion.swift",
"EmbeddingLookup.swift",
"Gemma3BundleDownloader.swift",
"Gemma3EmbeddingGemma.swift",
"Gemma3FunctionGemma.swift",
"Gemma4StatefulEngine.swift",
"Gemma4StatefulMultimodalEngine.swift",
"Granite4Generator.swift",
"ImageProcessor.swift",
"LookaheadEngine.swift",
"MirrorSpeculativeLoop.swift",
"ModelConfig.swift",
"ModelDownloader.swift",
"MtpDraftSource.swift",
"MtpSpeculativeEngine.swift",
"PrefixCache.swift",
"PrefixKVCache.swift",
"PromptLookupDraft.swift",
"PromptLookupLoop.swift",
"Qwen35Generator.swift",
"Qwen35MLKVGenerator.swift",
"Qwen3VL2BGenerator.swift",
"Qwen3VL2BStatefulGenerator.swift",
"Qwen3VL2BVisionEncoder.swift",
"SpecProfile.swift",
"SpeculativeLoop.swift",
"SuffixSpeculativeEngine.swift",
"SuffixTree.swift",
"VideoProcessor.swift"
],
"type" : "library"
},
{
"c99name" : "AneResidencyGate",
"module_type" : "SwiftTarget",
"name" : "AneResidencyGate",
"path" : "Sources/ane-residency-gate",
"product_memberships" : [
"ane-residency-gate"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"CoreMLLLM"
],
"type" : "executable"
},
{
"c99name" : "AcceptRateBench",
"module_type" : "SwiftTarget",
"name" : "AcceptRateBench",
"path" : "Sources/accept-rate-bench",
"product_memberships" : [
"accept-rate-bench"
],
"sources" : [
"Bench.swift",
"Drafters.swift",
"Prompts.swift",
"iOSStub.swift"
],
"target_dependencies" : [
"CoreMLLLM"
],
"type" : "executable"
}
],
"tools_version" : "6.0"
}
Done.