Build Information
Successful build of whisperkit, reference v0.12.0 (6a509d
), with Swift 6.1 for macOS (SPM) on 1 May 2025 09:50:13 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/argmaxinc/whisperkit.git
Reference: v0.12.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/argmaxinc/whisperkit
* tag v0.12.0 -> FETCH_HEAD
HEAD is now at 6a509d6 Release v0.12.0
Cloned https://github.com/argmaxinc/whisperkit.git
Revision (git rev-parse @):
6a509d6181da1f71517159425d6ec9d94d424f55
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/argmaxinc/whisperkit.git at v0.12.0
Fetching https://github.com/huggingface/swift-transformers.git
Fetching https://github.com/apple/swift-argument-parser.git from cache
[1/3139] Fetching swift-transformers
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.67s)
Fetched https://github.com/huggingface/swift-transformers.git from cache (1.07s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.3.0 (1.60s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 0.1.8 (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.3.0
Creating working copy for https://github.com/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 0.1.8
========================================
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",
"dependencies": [
{
"identity": "whisperkit",
"name": "whisperkit",
"url": "https://github.com/argmaxinc/whisperkit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/whisperkit",
"dependencies": [
{
"identity": "swift-transformers",
"name": "swift-transformers",
"url": "https://github.com/huggingface/swift-transformers.git",
"version": "0.1.15",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-transformers",
"dependencies": [
{
"identity": "swift-argument-parser",
"name": "swift-argument-parser",
"url": "https://github.com/apple/swift-argument-parser.git",
"version": "1.5.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
"dependencies": [
]
},
{
"identity": "jinja",
"name": "Jinja",
"url": "https://github.com/johnmai-dev/Jinja",
"version": "1.1.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Jinja",
"dependencies": [
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
}
]
}
]
},
{
"identity": "swift-argument-parser",
"name": "swift-argument-parser",
"url": "https://github.com/apple/swift-argument-parser.git",
"version": "1.5.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/argmaxinc/whisperkit.git
[1/6102] Fetching whisperkit
Fetched https://github.com/argmaxinc/whisperkit.git from cache (1.69s)
Fetching https://github.com/huggingface/swift-transformers.git from cache
Fetching https://github.com/apple/swift-argument-parser.git from cache
Fetched https://github.com/huggingface/swift-transformers.git from cache (0.50s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.50s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.0 (0.57s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 0.1.15 (0.45s)
Fetching https://github.com/johnmai-dev/Jinja
[1/366] Fetching jinja
Fetched https://github.com/johnmai-dev/Jinja from cache (0.77s)
Computing version for https://github.com/johnmai-dev/Jinja
Computed https://github.com/johnmai-dev/Jinja at 1.1.2 (1.23s)
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (0.83s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (1.88s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 0.1.15
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/argmaxinc/whisperkit.git
Working copy of https://github.com/argmaxinc/whisperkit.git resolved at v0.12.0 (6a509d6)
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.5.0
Found 2 product dependencies
- swift-transformers
- swift-argument-parser
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/argmaxinc/whisperkit.git
https://github.com/argmaxinc/whisperkit.git
{
"dependencies" : [
{
"identity" : "swift-transformers",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.8",
"upper_bound" : "0.2.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/huggingface/swift-transformers.git"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser.git"
}
],
"manifest_display_name" : "whisperkit",
"name" : "whisperkit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "WhisperKit",
"targets" : [
"WhisperKit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "whisperkit-cli",
"targets" : [
"WhisperKitCLI"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "WhisperKitTests",
"module_type" : "SwiftTarget",
"name" : "WhisperKitTests",
"path" : ".",
"product_dependencies" : [
"Transformers"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/8_Channel_ID.m4a",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/config-v02.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/config-v03.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/es_test_clip.wav",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/ja_test_clip.wav",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/jfk.wav",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/jfk_441khz.m4a",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/ted_60.m4a",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"Tests/WhisperKitTests/Evaluate/DistanceCalculation.swift",
"Tests/WhisperKitTests/Evaluate/NormalizeEn.swift",
"Tests/WhisperKitTests/Evaluate/SpellingMapping.swift",
"Tests/WhisperKitTests/Evaluate/WERUtils.swift",
"Tests/WhisperKitTests/FunctionalTests.swift",
"Tests/WhisperKitTests/RegressionTestUtils.swift",
"Tests/WhisperKitTests/RegressionTests.swift",
"Tests/WhisperKitTests/TestUtils.swift",
"Tests/WhisperKitTests/UnitTests.swift"
],
"target_dependencies" : [
"WhisperKit"
],
"type" : "test"
},
{
"c99name" : "WhisperKitCLI",
"module_type" : "SwiftTarget",
"name" : "WhisperKitCLI",
"path" : "Sources/WhisperKitCLI",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"whisperkit-cli"
],
"sources" : [
"CLIArguments.swift",
"CLIUtils.swift",
"TranscribeCLI.swift",
"WhisperKitCLI.swift"
],
"target_dependencies" : [
"WhisperKit"
],
"type" : "executable"
},
{
"c99name" : "WhisperKit",
"module_type" : "SwiftTarget",
"name" : "WhisperKit",
"path" : "Sources/WhisperKit",
"product_dependencies" : [
"Transformers"
],
"product_memberships" : [
"WhisperKit",
"whisperkit-cli"
],
"sources" : [
"Core/Audio/AudioChunker.swift",
"Core/Audio/AudioProcessor.swift",
"Core/Audio/AudioStreamTranscriber.swift",
"Core/Audio/EnergyVAD.swift",
"Core/Audio/VoiceActivityDetector.swift",
"Core/AudioEncoder.swift",
"Core/Configurations.swift",
"Core/FeatureExtractor.swift",
"Core/Models.swift",
"Core/ResultWriter.swift",
"Core/Text/LogitsFilter.swift",
"Core/Text/SegmentSeeker.swift",
"Core/Text/TokenSampler.swift",
"Core/TextDecoder.swift",
"Core/TranscribeTask.swift",
"Core/Utils/Concurrency.swift",
"Core/Utils/Utils.swift",
"Core/WhisperKit.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
warning: 'spi-builder-workspace': Invalid Resource 'Models/whisperkit-coreml': File not found.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/17] Write sources
[5/17] Write whisperkit-cli-entitlement.plist
[7/17] Write sources
[7/17] Copying t5_tokenizer_config.json
[8/17] Write sources
[8/17] Copying gpt2_tokenizer_config.json
[12/17] Write sources
[13/17] Write swift-version-2F0A5646E1D333AE.txt
[15/34] Compiling ArgumentParserToolInfo ToolInfo.swift
[16/34] Emitting module ArgumentParserToolInfo
[17/72] Compiling ArgumentParser ArgumentHelp.swift
[18/72] Compiling ArgumentParser ArgumentVisibility.swift
[19/72] Compiling ArgumentParser CompletionKind.swift
[20/72] Compiling ArgumentParser Errors.swift
[21/76] Compiling ArgumentParser AsyncParsableCommand.swift
[22/76] Compiling ArgumentParser CommandConfiguration.swift
[23/76] Compiling ArgumentParser EnumerableFlag.swift
[24/76] Compiling ArgumentParser ExpressibleByArgument.swift
[25/76] Compiling ArgumentParser ParsableArguments.swift
[26/76] Compiling ArgumentParser ParsableArgumentsValidation.swift
[27/76] Compiling ArgumentParser ParsableCommand.swift
[28/76] Compiling ArgumentParser ArgumentDecoder.swift
[29/76] Compiling ArgumentParser BashCompletionsGenerator.swift
[30/76] Compiling ArgumentParser CompletionsGenerator.swift
[31/76] Compiling ArgumentParser FishCompletionsGenerator.swift
[32/76] Compiling ArgumentParser ZshCompletionsGenerator.swift
[33/76] Compiling ArgumentParser Argument.swift
[34/76] Compiling ArgumentParser Platform.swift
[35/76] Compiling ArgumentParser SequenceExtensions.swift
[36/76] Compiling ArgumentParser StringExtensions.swift
[37/76] Compiling ArgumentParser Tree.swift
[38/76] Emitting module Hub
[39/76] Compiling Hub resource_bundle_accessor.swift
[40/76] Compiling Hub Hub.swift
[41/76] Compiling Hub HubApi.swift
[42/76] Compiling Hub Downloader.swift
[43/76] Emitting module ArgumentParser
[44/76] Compiling ArgumentParser ArgumentDefinition.swift
[45/76] Compiling ArgumentParser ArgumentSet.swift
[46/76] Compiling ArgumentParser CommandParser.swift
[47/76] Compiling ArgumentParser InputKey.swift
[48/76] Compiling ArgumentParser Flag.swift
[49/76] Compiling ArgumentParser NameSpecification.swift
[50/76] Compiling ArgumentParser Option.swift
[51/76] Compiling ArgumentParser OptionGroup.swift
[52/76] Compiling ArgumentParser ParserError.swift
[53/76] Compiling ArgumentParser SplitArguments.swift
[54/76] Compiling ArgumentParser DumpHelpGenerator.swift
[55/76] Compiling ArgumentParser HelpCommand.swift
[56/76] Compiling ArgumentParser InputOrigin.swift
[57/76] Compiling ArgumentParser Name.swift
[58/76] Compiling ArgumentParser Parsed.swift
[59/76] Compiling ArgumentParser ParsedValues.swift
[60/76] Compiling ArgumentParser HelpGenerator.swift
[61/76] Compiling ArgumentParser MessageInfo.swift
[62/76] Compiling ArgumentParser UsageGenerator.swift
[63/76] Compiling ArgumentParser CollectionExtensions.swift
[64/88] Compiling TensorUtils MLMultiArray+Utils.swift
[65/88] Compiling TensorUtils MLShapedArray+Utils.swift
[66/88] Compiling Tokenizers Trie.swift
[67/88] Compiling Tokenizers UnigramTokenizer.swift
[68/89] Compiling TensorUtils TopPLogitsWarper.swift
[69/89] Compiling TensorUtils TopKLogitsWarper.swift
[70/89] Compiling TensorUtils RepetitionPenaltyWarper.swift
[71/89] Compiling TensorUtils LogitsProcessor.swift
[72/89] Compiling TensorUtils LogitsWarper.swift
[73/89] Emitting module TensorUtils
[74/89] Compiling TensorUtils Math.swift
[75/89] Compiling TensorUtils TemperatureLogitsWarper.swift
[76/89] Compiling Tokenizers Tokenizer.swift
[77/89] Compiling Tokenizers ByteEncoder.swift
[78/89] Compiling Tokenizers Decoder.swift
[79/89] Compiling Tokenizers TokenLattice.swift
[80/89] Compiling Tokenizers Normalizer.swift
[81/89] Compiling Tokenizers PreTokenizer.swift
[82/89] Compiling Tokenizers PostProcessor.swift
[83/89] Emitting module Tokenizers
[84/89] Compiling Tokenizers BPETokenizer.swift
[85/89] Compiling Tokenizers BertTokenizer.swift
[86/89] Compiling Tokenizers Utils.swift
[87/92] Compiling Generation GenerationConfig.swift
[88/92] Emitting module Generation
[89/92] Compiling Generation Generation.swift
[90/95] Compiling Models LanguageModelTypes.swift
[91/95] Emitting module Models
[92/95] Compiling Models LanguageModel.swift
[93/113] Emitting module WhisperKit
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1600:23: warning: static property 'fallbackModelSupportConfig' is not concurrency-safe because non-'Sendable' type 'ModelSupportConfig' may have shared mutable state; this is an error in the Swift 6 language mode
204 | }
205 |
206 | public struct ModelSupportConfig: Codable {
| `- note: consider making struct 'ModelSupportConfig' conform to the 'Sendable' protocol
207 | public let repoName: String
208 | public let repoVersion: String
:
1598 | public static let defaultAppendPunctuations: String = "\"'.。,,!!??::”)]}、"
1599 |
1600 | public static let fallbackModelSupportConfig: ModelSupportConfig = {
| |- warning: static property 'fallbackModelSupportConfig' is not concurrency-safe because non-'Sendable' type 'ModelSupportConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fallbackModelSupportConfig' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1601 | var config = ModelSupportConfig(
1602 | repoName: "whisperkit-coreml-fallback",
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Utils/Utils.swift:836:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Logging' may have shared mutable state; this is an error in the Swift 6 language mode
833 | // MARK: - Singletons
834 |
835 | open class Logging {
| `- note: class 'Logging' does not conform to the 'Sendable' protocol
836 | public static let shared = Logging()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Logging' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
837 | public var logLevel: LogLevel = .none
838 |
[94/113] Compiling WhisperKit AudioStreamTranscriber.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:198:41: warning: non-sendable result type 'TranscriptionResult' cannot be sent from nonisolated context in call to instance method 'run(audioArray:decodeOptions:callback:)'; this is an error in the Swift 6 language mode
196 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
197 | let checkWindow = compressionCheckWindow
198 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
| `- warning: non-sendable result type 'TranscriptionResult' cannot be sent from nonisolated context in call to instance method 'run(audioArray:decodeOptions:callback:)'; this is an error in the Swift 6 language mode
199 | Task { [weak self] in
200 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:551:15: note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
549 | // Structs
550 |
551 | public struct TranscriptionResult: Codable {
| `- note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
552 | public var text: String
553 | public var segments: [TranscriptionSegment]
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:198:41: warning: sending 'options.some' risks causing data races; this is an error in the Swift 6 language mode
196 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
197 | let checkWindow = compressionCheckWindow
198 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
| |- warning: sending 'options.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'options.some' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
199 | Task { [weak self] in
200 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:198:41: warning: sending value of non-Sendable type '(TranscriptionProgress) -> Bool?' risks causing data races; this is an error in the Swift 6 language mode
196 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
197 | let checkWindow = compressionCheckWindow
198 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
| |- warning: sending value of non-Sendable type '(TranscriptionProgress) -> Bool?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type '(TranscriptionProgress) -> Bool?' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
199 | Task { [weak self] in
200 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:198:41: warning: sending 'self.transcribeTask' risks causing data races; this is an error in the Swift 6 language mode
196 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
197 | let checkWindow = compressionCheckWindow
198 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
| |- warning: sending 'self.transcribeTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.transcribeTask' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
199 | Task { [weak self] in
200 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:199:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
197 | let checkWindow = compressionCheckWindow
198 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
199 | Task { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
200 | await self?.onProgressCallback(progress)
| `- note: closure captures 'progress' which is accessible to code in the current task
201 | }
202 | return AudioStreamTranscriber.shouldStopEarly(progress: progress, options: options, compressionCheckWindow: checkWindow)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:200:29: warning: sending 'progress' risks causing data races; this is an error in the Swift 6 language mode
198 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
199 | Task { [weak self] in
200 | await self?.onProgressCallback(progress)
| |- warning: sending 'progress' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'progress' to actor-isolated instance method 'onProgressCallback' risks causing data races between actor-isolated and task-isolated uses
201 | }
202 | return AudioStreamTranscriber.shouldStopEarly(progress: progress, options: options, compressionCheckWindow: checkWindow)
[95/113] Compiling WhisperKit EnergyVAD.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:198:41: warning: non-sendable result type 'TranscriptionResult' cannot be sent from nonisolated context in call to instance method 'run(audioArray:decodeOptions:callback:)'; this is an error in the Swift 6 language mode
196 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
197 | let checkWindow = compressionCheckWindow
198 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
| `- warning: non-sendable result type 'TranscriptionResult' cannot be sent from nonisolated context in call to instance method 'run(audioArray:decodeOptions:callback:)'; this is an error in the Swift 6 language mode
199 | Task { [weak self] in
200 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:551:15: note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
549 | // Structs
550 |
551 | public struct TranscriptionResult: Codable {
| `- note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
552 | public var text: String
553 | public var segments: [TranscriptionSegment]
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:198:41: warning: sending 'options.some' risks causing data races; this is an error in the Swift 6 language mode
196 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
197 | let checkWindow = compressionCheckWindow
198 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
| |- warning: sending 'options.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'options.some' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
199 | Task { [weak self] in
200 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:198:41: warning: sending value of non-Sendable type '(TranscriptionProgress) -> Bool?' risks causing data races; this is an error in the Swift 6 language mode
196 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
197 | let checkWindow = compressionCheckWindow
198 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
| |- warning: sending value of non-Sendable type '(TranscriptionProgress) -> Bool?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type '(TranscriptionProgress) -> Bool?' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
199 | Task { [weak self] in
200 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:198:41: warning: sending 'self.transcribeTask' risks causing data races; this is an error in the Swift 6 language mode
196 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
197 | let checkWindow = compressionCheckWindow
198 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
| |- warning: sending 'self.transcribeTask' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.transcribeTask' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
199 | Task { [weak self] in
200 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:199:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
197 | let checkWindow = compressionCheckWindow
198 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
199 | Task { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
200 | await self?.onProgressCallback(progress)
| `- note: closure captures 'progress' which is accessible to code in the current task
201 | }
202 | return AudioStreamTranscriber.shouldStopEarly(progress: progress, options: options, compressionCheckWindow: checkWindow)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:200:29: warning: sending 'progress' risks causing data races; this is an error in the Swift 6 language mode
198 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
199 | Task { [weak self] in
200 | await self?.onProgressCallback(progress)
| |- warning: sending 'progress' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'progress' to actor-isolated instance method 'onProgressCallback' risks causing data races between actor-isolated and task-isolated uses
201 | }
202 | return AudioStreamTranscriber.shouldStopEarly(progress: progress, options: options, compressionCheckWindow: checkWindow)
[96/113] Compiling WhisperKit AudioChunker.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:112:26: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
110 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
111 | static func loadAudioAsync(fromPath audioFilePath: String) async throws -> AVAudioPCMBuffer {
112 | return try await Task {
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
113 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
114 | }.value
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h:67:12: note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
65 | */
66 | API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0))
67 | @interface AVAudioPCMBuffer : AVAudioBuffer
| `- note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
68 |
69 | /*! @method initWithPCMFormat:frameCapacity:
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFAudio'
3 |
4 | import Accelerate
5 | import AVFoundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFAudio'
6 | import CoreAudio
7 | import CoreML
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:112:26: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
110 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
111 | static func loadAudioAsync(fromPath audioFilePath: String) async throws -> AVAudioPCMBuffer {
112 | return try await Task {
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
113 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
114 | }.value
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h:67:12: note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
65 | */
66 | API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0))
67 | @interface AVAudioPCMBuffer : AVAudioBuffer
| `- note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
68 |
69 | /*! @method initWithPCMFormat:frameCapacity:
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:114:11: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
112 | return try await Task {
113 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
114 | }.value
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
115 | }
116 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h:67:12: note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
65 | */
66 | API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0))
67 | @interface AVAudioPCMBuffer : AVAudioBuffer
| `- note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
68 |
69 | /*! @method initWithPCMFormat:frameCapacity:
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:341:35: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
339 | await withTaskGroup(of: [(index: Int, result: Result<[Float], Swift.Error>)].self) { taskGroup -> [Result<[Float], Swift.Error>] in
340 | for (index, audioPath) in audioPaths.enumerated() {
341 | taskGroup.addTask {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
342 | do {
343 | let audio = try AudioProcessor.loadAudioAsFloatArray(fromPath: audioPath, channelMode: channelMode)
| `- note: closure captures 'channelMode' which is accessible to code in the current task
344 | return [(index: index, result: .success(audio))]
345 | } catch {
[97/113] Compiling WhisperKit AudioProcessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:112:26: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
110 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
111 | static func loadAudioAsync(fromPath audioFilePath: String) async throws -> AVAudioPCMBuffer {
112 | return try await Task {
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
113 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
114 | }.value
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h:67:12: note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
65 | */
66 | API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0))
67 | @interface AVAudioPCMBuffer : AVAudioBuffer
| `- note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
68 |
69 | /*! @method initWithPCMFormat:frameCapacity:
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFAudio'
3 |
4 | import Accelerate
5 | import AVFoundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AVFAudio'
6 | import CoreAudio
7 | import CoreML
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:112:26: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
110 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
111 | static func loadAudioAsync(fromPath audioFilePath: String) async throws -> AVAudioPCMBuffer {
112 | return try await Task {
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
113 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
114 | }.value
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h:67:12: note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
65 | */
66 | API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0))
67 | @interface AVAudioPCMBuffer : AVAudioBuffer
| `- note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
68 |
69 | /*! @method initWithPCMFormat:frameCapacity:
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:114:11: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
112 | return try await Task {
113 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
114 | }.value
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
115 | }
116 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h:67:12: note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
65 | */
66 | API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0))
67 | @interface AVAudioPCMBuffer : AVAudioBuffer
| `- note: class 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol
68 |
69 | /*! @method initWithPCMFormat:frameCapacity:
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:341:35: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
339 | await withTaskGroup(of: [(index: Int, result: Result<[Float], Swift.Error>)].self) { taskGroup -> [Result<[Float], Swift.Error>] in
340 | for (index, audioPath) in audioPaths.enumerated() {
341 | taskGroup.addTask {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
342 | do {
343 | let audio = try AudioProcessor.loadAudioAsFloatArray(fromPath: audioPath, channelMode: channelMode)
| `- note: closure captures 'channelMode' which is accessible to code in the current task
344 | return [(index: index, result: .success(audio))]
345 | } catch {
[98/114] Compiling WhisperKit Models.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1600:23: warning: static property 'fallbackModelSupportConfig' is not concurrency-safe because non-'Sendable' type 'ModelSupportConfig' may have shared mutable state; this is an error in the Swift 6 language mode
204 | }
205 |
206 | public struct ModelSupportConfig: Codable {
| `- note: consider making struct 'ModelSupportConfig' conform to the 'Sendable' protocol
207 | public let repoName: String
208 | public let repoVersion: String
:
1598 | public static let defaultAppendPunctuations: String = "\"'.。,,!!??::”)]}、"
1599 |
1600 | public static let fallbackModelSupportConfig: ModelSupportConfig = {
| |- warning: static property 'fallbackModelSupportConfig' is not concurrency-safe because non-'Sendable' type 'ModelSupportConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fallbackModelSupportConfig' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1601 | var config = ModelSupportConfig(
1602 | repoName: "whisperkit-coreml-fallback",
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:32:37: warning: type 'MLModel' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
30 | public extension WhisperMLModel {
31 | func loadModel(at modelPath: URL, computeUnits: MLComputeUnits, prewarmMode: Bool = false) async throws {
32 | let loadedModel = try await Task {
| `- warning: type 'MLModel' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | let modelConfig = MLModelConfiguration()
34 | modelConfig.computeUnits = computeUnits
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLModel.h:28:12: note: class 'MLModel' does not conform to the 'Sendable' protocol
26 | API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
27 | ML_EXPORT
28 | @interface MLModel : NSObject
| `- note: class 'MLModel' does not conform to the 'Sendable' protocol
29 |
30 | /// A model holds a description of its required inputs and expected outputs.
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:6:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'
4 | import Accelerate
5 | import AVFAudio
6 | import CoreML
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'
7 | import Hub
8 | import NaturalLanguage
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:32:37: warning: type 'MLModel' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
30 | public extension WhisperMLModel {
31 | func loadModel(at modelPath: URL, computeUnits: MLComputeUnits, prewarmMode: Bool = false) async throws {
32 | let loadedModel = try await Task {
| `- warning: type 'MLModel' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | let modelConfig = MLModelConfiguration()
34 | modelConfig.computeUnits = computeUnits
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLModel.h:28:12: note: class 'MLModel' does not conform to the 'Sendable' protocol
26 | API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
27 | ML_EXPORT
28 | @interface MLModel : NSObject
| `- note: class 'MLModel' does not conform to the 'Sendable' protocol
29 |
30 | /// A model holds a description of its required inputs and expected outputs.
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:36:11: warning: type 'MLModel' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
34 | modelConfig.computeUnits = computeUnits
35 | return try await MLModel.load(contentsOf: modelPath, configuration: modelConfig)
36 | }.value
| `- warning: type 'MLModel' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 |
38 | model = prewarmMode ? nil : loadedModel
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLModel.h:28:12: note: class 'MLModel' does not conform to the 'Sendable' protocol
26 | API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
27 | ML_EXPORT
28 | @interface MLModel : NSObject
| `- note: class 'MLModel' does not conform to the 'Sendable' protocol
29 |
30 | /// A model holds a description of its required inputs and expected outputs.
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:957:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
955 | @available(macCatalyst, unavailable)
956 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
957 | return MLShapedArray<Float16>(self.melspectrogramFeatures)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
958 | }
959 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:957:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
955 | @available(macCatalyst, unavailable)
956 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
957 | return MLShapedArray<Float16>(self.melspectrogramFeatures)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
958 | }
959 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1020:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1018 | @available(macCatalyst, unavailable)
1019 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
1020 | return MLShapedArray<Float16>(self.encoder_output_embeds)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1021 | }
1022 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1020:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1018 | @available(macCatalyst, unavailable)
1019 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
1020 | return MLShapedArray<Float16>(self.encoder_output_embeds)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1021 | }
1022 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1125:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1123 | @available(macCatalyst, unavailable)
1124 | public var logitsShapedArray: MLShapedArray<Float16> {
1125 | return MLShapedArray<Float16>(self.logits)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1126 | }
1127 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1125:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1123 | @available(macCatalyst, unavailable)
1124 | public var logitsShapedArray: MLShapedArray<Float16> {
1125 | return MLShapedArray<Float16>(self.logits)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1126 | }
1127 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1137:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1135 | @available(macCatalyst, unavailable)
1136 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1137 | return MLShapedArray<Float16>(self.key_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1138 | }
1139 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1137:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1135 | @available(macCatalyst, unavailable)
1136 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1137 | return MLShapedArray<Float16>(self.key_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1138 | }
1139 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1149:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1147 | @available(macCatalyst, unavailable)
1148 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1149 | return MLShapedArray<Float16>(self.value_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1150 | }
1151 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1149:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1147 | @available(macCatalyst, unavailable)
1148 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1149 | return MLShapedArray<Float16>(self.value_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1150 | }
1151 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1164:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1162 | return nil
1163 | }
1164 | return MLShapedArray<Float16>(alignment_heads_weights)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1165 | }
1166 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1164:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1162 | return nil
1163 | }
1164 | return MLShapedArray<Float16>(alignment_heads_weights)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1165 | }
1166 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1232:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1230 | @available(macCatalyst, unavailable)
1231 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1232 | return MLShapedArray<Float16>(self.key_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1233 | }
1234 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1232:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1230 | @available(macCatalyst, unavailable)
1231 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1232 | return MLShapedArray<Float16>(self.key_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1233 | }
1234 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1244:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1242 | @available(macCatalyst, unavailable)
1243 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1244 | return MLShapedArray<Float16>(self.value_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1245 | }
1246 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1244:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1242 | @available(macCatalyst, unavailable)
1243 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1244 | return MLShapedArray<Float16>(self.value_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1245 | }
1246 |
[99/114] Compiling WhisperKit ResultWriter.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1600:23: warning: static property 'fallbackModelSupportConfig' is not concurrency-safe because non-'Sendable' type 'ModelSupportConfig' may have shared mutable state; this is an error in the Swift 6 language mode
204 | }
205 |
206 | public struct ModelSupportConfig: Codable {
| `- note: consider making struct 'ModelSupportConfig' conform to the 'Sendable' protocol
207 | public let repoName: String
208 | public let repoVersion: String
:
1598 | public static let defaultAppendPunctuations: String = "\"'.。,,!!??::”)]}、"
1599 |
1600 | public static let fallbackModelSupportConfig: ModelSupportConfig = {
| |- warning: static property 'fallbackModelSupportConfig' is not concurrency-safe because non-'Sendable' type 'ModelSupportConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fallbackModelSupportConfig' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1601 | var config = ModelSupportConfig(
1602 | repoName: "whisperkit-coreml-fallback",
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:32:37: warning: type 'MLModel' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
30 | public extension WhisperMLModel {
31 | func loadModel(at modelPath: URL, computeUnits: MLComputeUnits, prewarmMode: Bool = false) async throws {
32 | let loadedModel = try await Task {
| `- warning: type 'MLModel' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | let modelConfig = MLModelConfiguration()
34 | modelConfig.computeUnits = computeUnits
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLModel.h:28:12: note: class 'MLModel' does not conform to the 'Sendable' protocol
26 | API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
27 | ML_EXPORT
28 | @interface MLModel : NSObject
| `- note: class 'MLModel' does not conform to the 'Sendable' protocol
29 |
30 | /// A model holds a description of its required inputs and expected outputs.
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:6:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'
4 | import Accelerate
5 | import AVFAudio
6 | import CoreML
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'
7 | import Hub
8 | import NaturalLanguage
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:32:37: warning: type 'MLModel' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
30 | public extension WhisperMLModel {
31 | func loadModel(at modelPath: URL, computeUnits: MLComputeUnits, prewarmMode: Bool = false) async throws {
32 | let loadedModel = try await Task {
| `- warning: type 'MLModel' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
33 | let modelConfig = MLModelConfiguration()
34 | modelConfig.computeUnits = computeUnits
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLModel.h:28:12: note: class 'MLModel' does not conform to the 'Sendable' protocol
26 | API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
27 | ML_EXPORT
28 | @interface MLModel : NSObject
| `- note: class 'MLModel' does not conform to the 'Sendable' protocol
29 |
30 | /// A model holds a description of its required inputs and expected outputs.
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:36:11: warning: type 'MLModel' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
34 | modelConfig.computeUnits = computeUnits
35 | return try await MLModel.load(contentsOf: modelPath, configuration: modelConfig)
36 | }.value
| `- warning: type 'MLModel' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
37 |
38 | model = prewarmMode ? nil : loadedModel
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLModel.h:28:12: note: class 'MLModel' does not conform to the 'Sendable' protocol
26 | API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
27 | ML_EXPORT
28 | @interface MLModel : NSObject
| `- note: class 'MLModel' does not conform to the 'Sendable' protocol
29 |
30 | /// A model holds a description of its required inputs and expected outputs.
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:957:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
955 | @available(macCatalyst, unavailable)
956 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
957 | return MLShapedArray<Float16>(self.melspectrogramFeatures)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
958 | }
959 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:957:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
955 | @available(macCatalyst, unavailable)
956 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
957 | return MLShapedArray<Float16>(self.melspectrogramFeatures)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
958 | }
959 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1020:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1018 | @available(macCatalyst, unavailable)
1019 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
1020 | return MLShapedArray<Float16>(self.encoder_output_embeds)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1021 | }
1022 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1020:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1018 | @available(macCatalyst, unavailable)
1019 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
1020 | return MLShapedArray<Float16>(self.encoder_output_embeds)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1021 | }
1022 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1125:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1123 | @available(macCatalyst, unavailable)
1124 | public var logitsShapedArray: MLShapedArray<Float16> {
1125 | return MLShapedArray<Float16>(self.logits)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1126 | }
1127 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1125:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1123 | @available(macCatalyst, unavailable)
1124 | public var logitsShapedArray: MLShapedArray<Float16> {
1125 | return MLShapedArray<Float16>(self.logits)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1126 | }
1127 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1137:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1135 | @available(macCatalyst, unavailable)
1136 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1137 | return MLShapedArray<Float16>(self.key_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1138 | }
1139 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1137:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1135 | @available(macCatalyst, unavailable)
1136 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1137 | return MLShapedArray<Float16>(self.key_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1138 | }
1139 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1149:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1147 | @available(macCatalyst, unavailable)
1148 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1149 | return MLShapedArray<Float16>(self.value_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1150 | }
1151 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1149:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1147 | @available(macCatalyst, unavailable)
1148 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1149 | return MLShapedArray<Float16>(self.value_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1150 | }
1151 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1164:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1162 | return nil
1163 | }
1164 | return MLShapedArray<Float16>(alignment_heads_weights)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1165 | }
1166 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1164:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1162 | return nil
1163 | }
1164 | return MLShapedArray<Float16>(alignment_heads_weights)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1165 | }
1166 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1232:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1230 | @available(macCatalyst, unavailable)
1231 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1232 | return MLShapedArray<Float16>(self.key_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1233 | }
1234 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1232:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1230 | @available(macCatalyst, unavailable)
1231 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1232 | return MLShapedArray<Float16>(self.key_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1233 | }
1234 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1244:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1242 | @available(macCatalyst, unavailable)
1243 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1244 | return MLShapedArray<Float16>(self.value_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1245 | }
1246 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1244:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1242 | @available(macCatalyst, unavailable)
1243 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1244 | return MLShapedArray<Float16>(self.value_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1245 | }
1246 |
[100/114] Compiling WhisperKit VoiceActivityDetector.swift
[101/114] Compiling WhisperKit AudioEncoder.swift
[102/114] Compiling WhisperKit TokenSampler.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:104:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
102 | let logitsDescriptor = BNNSNDArrayDescriptor(
103 | data: logitsRawPointer,
104 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
105 | shape: .vector(logits.count, stride: 1)
106 | )!
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:113:33: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
111 | if temperature != 0.0 {
112 | let scaledLogits = BNNSNDArrayDescriptor.allocateUninitialized(
113 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
114 | shape: .vector(logits.count, stride: 1)
115 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:117:27: warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
115 | )
116 |
117 | try! BNNS.applyActivation(
| `- warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
118 | activation: BNNS.ActivationFunction.linear(alpha: Float(1 / temperature)),
119 | input: logitsDescriptor,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:118:38: warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
116 |
117 | try! BNNS.applyActivation(
118 | activation: BNNS.ActivationFunction.linear(alpha: Float(1 / temperature)),
| `- warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
119 | input: logitsDescriptor,
120 | output: scaledLogits,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:134:22: warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
132 | )
133 |
134 | try BNNS.applyActivation(
| `- warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
135 | activation: BNNS.ActivationFunction.softmax,
136 | input: softmaxInput!,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:135:34: warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
133 |
134 | try BNNS.applyActivation(
135 | activation: BNNS.ActivationFunction.softmax,
| `- warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
136 | input: softmaxInput!,
137 | output: softmaxOutput!,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/TextDecoder.swift:331:47: warning: capture of 'keyTensorPointer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a '@Sendable' closure
329 | // `tensor[0, j, 0, k + index] = slice[0, j, 0, k + index]`
330 | let keyDestIndex = j * keyTargetStrides[1] + (index + k) * keyTargetStrides[3]
331 | let keyDest = keyTensorPointer.baseAddress! + keyDestIndex * bytesPerSample
| `- warning: capture of 'keyTensorPointer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a '@Sendable' closure
332 |
333 | let keySliceIndex = j * sliceStrides[1] + k * sliceStrides[3]
Swift.UnsafeMutableRawBufferPointer:1:23: note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawBufferPointer {
| `- note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
2 | @inlinable public init(start: UnsafeMutableRawPointer?, count: Int)
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/TextDecoder.swift:334:48: warning: capture of 'keySlicePointer' with non-sendable type 'UnsafeRawBufferPointer' in a '@Sendable' closure
332 |
333 | let keySliceIndex = j * sliceStrides[1] + k * sliceStrides[3]
334 | let keySlice = keySlicePointer.baseAddress! + keySliceIndex * bytesPerSample
| `- warning: capture of 'keySlicePointer' with non-sendable type 'UnsafeRawBufferPointer' in a '@Sendable' closure
335 | memcpy(keyDest, keySlice, bytesPerSample)
336 |
Swift.UnsafeRawBufferPointer:1:23: note: struct 'UnsafeRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeRawBufferPointer {
| `- note: struct 'UnsafeRawBufferPointer' does not conform to the 'Sendable' protocol
2 | @inlinable public init(start: UnsafeRawPointer?, count: Int)
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/TextDecoder.swift:338:47: warning: capture of 'valueTensorPointer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a '@Sendable' closure
336 |
337 | let valDestIndex = j * valueTargetStrides[1] + (index + k) * valueTargetStrides[3]
338 | let valDest = valueTensorPointer.baseAddress! + valDestIndex * bytesPerSample
| `- warning: capture of 'valueTensorPointer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a '@Sendable' closure
339 |
340 | let valSliceIndex = j * sliceStrides[1] + k * sliceStrides[3]
Swift.UnsafeMutableRawBufferPointer:1:23: note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawBufferPointer {
| `- note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
2 | @inlinable public init(start: UnsafeMutableRawPointer?, count: Int)
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/TextDecoder.swift:341:48: warning: capture of 'valueSlicePointer' with non-sendable type 'UnsafeRawBufferPointer' in a '@Sendable' closure
339 |
340 | let valSliceIndex = j * sliceStrides[1] + k * sliceStrides[3]
341 | let valSlice = valueSlicePointer.baseAddress! + valSliceIndex * bytesPerSample
| `- warning: capture of 'valueSlicePointer' with non-sendable type 'UnsafeRawBufferPointer' in a '@Sendable' closure
342 | memcpy(valDest, valSlice, bytesPerSample)
343 | }
Swift.UnsafeRawBufferPointer:1:23: note: struct 'UnsafeRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeRawBufferPointer {
| `- note: struct 'UnsafeRawBufferPointer' does not conform to the 'Sendable' protocol
2 | @inlinable public init(start: UnsafeRawPointer?, count: Int)
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/TextDecoder.swift:842:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
840 | // Call the callback if it is provided on a background thread
841 | if let callback = callback {
842 | Task.detached(priority: .low) { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
843 | guard let self = self else { return }
| `- note: closure captures non-Sendable 'self'
844 | let shouldContinue = callback(result)
| | `- note: closure captures non-Sendable 'result'
| `- note: closure captures non-Sendable 'callback'
845 | if let shouldContinue = shouldContinue, !shouldContinue, !isPrefill {
846 | Logging.debug("Early stopping")
[103/114] Compiling WhisperKit TextDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:104:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
102 | let logitsDescriptor = BNNSNDArrayDescriptor(
103 | data: logitsRawPointer,
104 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
105 | shape: .vector(logits.count, stride: 1)
106 | )!
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:113:33: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
111 | if temperature != 0.0 {
112 | let scaledLogits = BNNSNDArrayDescriptor.allocateUninitialized(
113 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
114 | shape: .vector(logits.count, stride: 1)
115 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:117:27: warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
115 | )
116 |
117 | try! BNNS.applyActivation(
| `- warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
118 | activation: BNNS.ActivationFunction.linear(alpha: Float(1 / temperature)),
119 | input: logitsDescriptor,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:118:38: warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
116 |
117 | try! BNNS.applyActivation(
118 | activation: BNNS.ActivationFunction.linear(alpha: Float(1 / temperature)),
| `- warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
119 | input: logitsDescriptor,
120 | output: scaledLogits,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:134:22: warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
132 | )
133 |
134 | try BNNS.applyActivation(
| `- warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
135 | activation: BNNS.ActivationFunction.softmax,
136 | input: softmaxInput!,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:135:34: warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
133 |
134 | try BNNS.applyActivation(
135 | activation: BNNS.ActivationFunction.softmax,
| `- warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
136 | input: softmaxInput!,
137 | output: softmaxOutput!,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/TextDecoder.swift:331:47: warning: capture of 'keyTensorPointer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a '@Sendable' closure
329 | // `tensor[0, j, 0, k + index] = slice[0, j, 0, k + index]`
330 | let keyDestIndex = j * keyTargetStrides[1] + (index + k) * keyTargetStrides[3]
331 | let keyDest = keyTensorPointer.baseAddress! + keyDestIndex * bytesPerSample
| `- warning: capture of 'keyTensorPointer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a '@Sendable' closure
332 |
333 | let keySliceIndex = j * sliceStrides[1] + k * sliceStrides[3]
Swift.UnsafeMutableRawBufferPointer:1:23: note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawBufferPointer {
| `- note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
2 | @inlinable public init(start: UnsafeMutableRawPointer?, count: Int)
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/TextDecoder.swift:334:48: warning: capture of 'keySlicePointer' with non-sendable type 'UnsafeRawBufferPointer' in a '@Sendable' closure
332 |
333 | let keySliceIndex = j * sliceStrides[1] + k * sliceStrides[3]
334 | let keySlice = keySlicePointer.baseAddress! + keySliceIndex * bytesPerSample
| `- warning: capture of 'keySlicePointer' with non-sendable type 'UnsafeRawBufferPointer' in a '@Sendable' closure
335 | memcpy(keyDest, keySlice, bytesPerSample)
336 |
Swift.UnsafeRawBufferPointer:1:23: note: struct 'UnsafeRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeRawBufferPointer {
| `- note: struct 'UnsafeRawBufferPointer' does not conform to the 'Sendable' protocol
2 | @inlinable public init(start: UnsafeRawPointer?, count: Int)
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/TextDecoder.swift:338:47: warning: capture of 'valueTensorPointer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a '@Sendable' closure
336 |
337 | let valDestIndex = j * valueTargetStrides[1] + (index + k) * valueTargetStrides[3]
338 | let valDest = valueTensorPointer.baseAddress! + valDestIndex * bytesPerSample
| `- warning: capture of 'valueTensorPointer' with non-sendable type 'UnsafeMutableRawBufferPointer' in a '@Sendable' closure
339 |
340 | let valSliceIndex = j * sliceStrides[1] + k * sliceStrides[3]
Swift.UnsafeMutableRawBufferPointer:1:23: note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawBufferPointer {
| `- note: struct 'UnsafeMutableRawBufferPointer' does not conform to the 'Sendable' protocol
2 | @inlinable public init(start: UnsafeMutableRawPointer?, count: Int)
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/TextDecoder.swift:341:48: warning: capture of 'valueSlicePointer' with non-sendable type 'UnsafeRawBufferPointer' in a '@Sendable' closure
339 |
340 | let valSliceIndex = j * sliceStrides[1] + k * sliceStrides[3]
341 | let valSlice = valueSlicePointer.baseAddress! + valSliceIndex * bytesPerSample
| `- warning: capture of 'valueSlicePointer' with non-sendable type 'UnsafeRawBufferPointer' in a '@Sendable' closure
342 | memcpy(valDest, valSlice, bytesPerSample)
343 | }
Swift.UnsafeRawBufferPointer:1:23: note: struct 'UnsafeRawBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeRawBufferPointer {
| `- note: struct 'UnsafeRawBufferPointer' does not conform to the 'Sendable' protocol
2 | @inlinable public init(start: UnsafeRawPointer?, count: Int)
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/TextDecoder.swift:842:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
840 | // Call the callback if it is provided on a background thread
841 | if let callback = callback {
842 | Task.detached(priority: .low) { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
843 | guard let self = self else { return }
| `- note: closure captures non-Sendable 'self'
844 | let shouldContinue = callback(result)
| | `- note: closure captures non-Sendable 'result'
| `- note: closure captures non-Sendable 'callback'
845 | if let shouldContinue = shouldContinue, !shouldContinue, !isPrefill {
846 | Logging.debug("Early stopping")
[104/114] Compiling WhisperKit Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Utils/Utils.swift:836:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Logging' may have shared mutable state; this is an error in the Swift 6 language mode
833 | // MARK: - Singletons
834 |
835 | open class Logging {
| `- note: class 'Logging' does not conform to the 'Sendable' protocol
836 | public static let shared = Logging()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Logging' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
837 | public var logLevel: LogLevel = .none
838 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Utils/Utils.swift:76:9: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
56 | }
57 |
58 | extension MLMultiArray {
| `- note: add @available attribute to enclosing extension
59 | /// Calculate the linear offset by summing the products of each dimension's index with the dimension's stride.
60 | /// More info [here](https://developer.apple.com/documentation/coreml/mlmultiarray/2879231-subscript)
:
72 | }
73 |
74 | func fillLastDimension(indexes: Range<Int>, with value: FloatType) {
| `- note: add @available attribute to enclosing instance method
75 | precondition(shape.count == 3 && shape[0] == 1 && shape[1] == 1, "Must have [1, 1, n] shape")
76 | withUnsafeMutableBufferPointer(ofType: FloatType.self) { ptr, strides in
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
77 | for index in indexes {
78 | ptr[index * strides[2]] = value
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Utils/Utils.swift:190:30: warning: type 'any MLFeatureProvider' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
188 | return try await prediction(from: input, options: options)
189 | } else {
190 | return try await Task {
| `- warning: type 'any MLFeatureProvider' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
191 | try prediction(from: input, options: options)
192 | }.value
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureProvider.h:17:11: note: protocol 'MLFeatureProvider' does not conform to the 'Sendable' protocol
15 | */
16 | API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
17 | @protocol MLFeatureProvider
| `- note: protocol 'MLFeatureProvider' does not conform to the 'Sendable' protocol
18 |
19 | @property (readonly, nonatomic) NSSet<NSString *> *featureNames;
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Utils/Utils.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'
3 |
4 | import AVFoundation
5 | import CoreML
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreML'
6 | import Foundation
7 | import Hub
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Utils/Utils.swift:190:30: warning: type 'any MLFeatureProvider' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
188 | return try await prediction(from: input, options: options)
189 | } else {
190 | return try await Task {
| `- warning: type 'any MLFeatureProvider' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
191 | try prediction(from: input, options: options)
192 | }.value
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureProvider.h:17:11: note: protocol 'MLFeatureProvider' does not conform to the 'Sendable' protocol
15 | */
16 | API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
17 | @protocol MLFeatureProvider
| `- note: protocol 'MLFeatureProvider' does not conform to the 'Sendable' protocol
18 |
19 | @property (readonly, nonatomic) NSSet<NSString *> *featureNames;
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Utils/Utils.swift:192:15: warning: type 'any MLFeatureProvider' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
190 | return try await Task {
191 | try prediction(from: input, options: options)
192 | }.value
| `- warning: type 'any MLFeatureProvider' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
193 | }
194 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreML.framework/Headers/MLFeatureProvider.h:17:11: note: protocol 'MLFeatureProvider' does not conform to the 'Sendable' protocol
15 | */
16 | API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0))
17 | @protocol MLFeatureProvider
| `- note: protocol 'MLFeatureProvider' does not conform to the 'Sendable' protocol
18 |
19 | @property (readonly, nonatomic) NSSet<NSString *> *featureNames;
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Utils/Utils.swift:160:9: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
158 | var result: MLMultiArray = initMLMultiArray(shape: [1], dataType: .float16, initialValue: 0.0)
159 |
160 | Task(priority: .high) {
| |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
161 | switch tensorType {
162 | case is Float32.Type:
:
175 |
176 | semaphore.wait()
177 | return result
| `- note: access can happen concurrently
178 | }
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Utils/Utils.swift:190:35: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
188 | return try await prediction(from: input, options: options)
189 | } else {
190 | return try await Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
191 | try prediction(from: input, options: options)
| `- note: closure captures 'self' which is accessible to code in the current task
192 | }.value
193 | }
[105/114] Compiling WhisperKit Configurations.swift
[106/114] Compiling WhisperKit FeatureExtractor.swift
[107/114] Compiling WhisperKit TranscribeTask.swift
[108/114] Compiling WhisperKit Concurrency.swift
[109/114] Compiling WhisperKit LogitsFilter.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:158:25: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
156 | guard let logprobsInputDescriptor = BNNSNDArrayDescriptor(
157 | data: logprobsInputPointer,
158 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
159 | shape: .vector(logits.count, stride: 1)
160 | ) else {
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:166:25: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
164 |
165 | let logprobs = BNNSNDArrayDescriptor.allocateUninitialized(
166 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
167 | shape: .vector(logits.count, stride: 1)
168 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:172:22: warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
170 |
171 | do {
172 | try BNNS.applyActivation(
| `- warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
173 | activation: BNNS.ActivationFunction.logSoftmax,
174 | input: logprobsInputDescriptor,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:173:34: warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
171 | do {
172 | try BNNS.applyActivation(
173 | activation: BNNS.ActivationFunction.logSoftmax,
| `- warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
174 | input: logprobsInputDescriptor,
175 | output: logprobs,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:188:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
186 | guard let logSumExpInputDescriptor = BNNSNDArrayDescriptor(
187 | data: logSumExpInputPointer,
188 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
189 | shape: .vector(timeTokenCount, stride: 1)
190 | ) else {
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:196:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
194 |
195 | let timestampLogProb = BNNSNDArrayDescriptor.allocateUninitialized(
196 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
197 | shape: .vector(1, stride: 1)
198 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:215:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
213 | guard let maxTextTokenLogProbInputDescriptor = BNNSNDArrayDescriptor(
214 | data: maxTextTokenLogProbInputPointer,
215 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
216 | shape: .vector(noTimeTokenCount, stride: 1)
217 | ) else {
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:223:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
221 |
222 | let maxTextTokenLogProb = BNNSNDArrayDescriptor.allocateUninitialized(
223 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
224 | shape: .vector(1, stride: 1)
225 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
[110/114] Compiling WhisperKit SegmentSeeker.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:158:25: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
156 | guard let logprobsInputDescriptor = BNNSNDArrayDescriptor(
157 | data: logprobsInputPointer,
158 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
159 | shape: .vector(logits.count, stride: 1)
160 | ) else {
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:166:25: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
164 |
165 | let logprobs = BNNSNDArrayDescriptor.allocateUninitialized(
166 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
167 | shape: .vector(logits.count, stride: 1)
168 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:172:22: warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
170 |
171 | do {
172 | try BNNS.applyActivation(
| `- warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
173 | activation: BNNS.ActivationFunction.logSoftmax,
174 | input: logprobsInputDescriptor,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:173:34: warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
171 | do {
172 | try BNNS.applyActivation(
173 | activation: BNNS.ActivationFunction.logSoftmax,
| `- warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
174 | input: logprobsInputDescriptor,
175 | output: logprobs,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:188:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
186 | guard let logSumExpInputDescriptor = BNNSNDArrayDescriptor(
187 | data: logSumExpInputPointer,
188 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
189 | shape: .vector(timeTokenCount, stride: 1)
190 | ) else {
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:196:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
194 |
195 | let timestampLogProb = BNNSNDArrayDescriptor.allocateUninitialized(
196 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
197 | shape: .vector(1, stride: 1)
198 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:215:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
213 | guard let maxTextTokenLogProbInputDescriptor = BNNSNDArrayDescriptor(
214 | data: maxTextTokenLogProbInputPointer,
215 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
216 | shape: .vector(noTimeTokenCount, stride: 1)
217 | ) else {
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:223:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
221 |
222 | let maxTextTokenLogProb = BNNSNDArrayDescriptor.allocateUninitialized(
223 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
224 | shape: .vector(1, stride: 1)
225 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
[111/114] Compiling WhisperKit WhisperKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/WhisperKit.swift:700:39: warning: type 'TranscriptionResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
698 | for (batchIndex, audioArrayBatch) in batchedAudioArrays.enumerated() {
699 | // Use withTaskGroup to manage concurrent transcription tasks
700 | let partialResult = await withTaskGroup(of: [(index: Int, result: Result<[TranscriptionResult], Swift.Error>)].self) { taskGroup -> [Result<[TranscriptionResult], Swift.Error>] in
| `- warning: type 'TranscriptionResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
701 | for (audioIndex, audioArray) in audioArrayBatch.enumerated() {
702 | // Setup callback to keep track of batches and chunks
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:551:15: note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
549 | // Structs
550 |
551 | public struct TranscriptionResult: Codable {
| `- note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
552 | public var text: String
553 | public var segments: [TranscriptionSegment]
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/WhisperKit.swift:700:130: warning: type 'TranscriptionResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
698 | for (batchIndex, audioArrayBatch) in batchedAudioArrays.enumerated() {
699 | // Use withTaskGroup to manage concurrent transcription tasks
700 | let partialResult = await withTaskGroup(of: [(index: Int, result: Result<[TranscriptionResult], Swift.Error>)].self) { taskGroup -> [Result<[TranscriptionResult], Swift.Error>] in
| `- warning: type 'TranscriptionResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
701 | for (audioIndex, audioArray) in audioArrayBatch.enumerated() {
702 | // Setup callback to keep track of batches and chunks
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:551:15: note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
549 | // Structs
550 |
551 | public struct TranscriptionResult: Codable {
| `- note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
552 | public var text: String
553 | public var segments: [TranscriptionSegment]
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/WhisperKit.swift:713:31: warning: type 'TranscriptionResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
711 |
712 | // Add a new task to the task group for each audio array
713 | taskGroup.addTask {
| `- warning: type 'TranscriptionResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
714 | do {
715 | let transcribeResult: [TranscriptionResult] = try await self.transcribe(
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:551:15: note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
549 | // Structs
550 |
551 | public struct TranscriptionResult: Codable {
| `- note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
552 | public var text: String
553 | public var segments: [TranscriptionSegment]
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/WhisperKit.swift:713:39: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
711 |
712 | // Add a new task to the task group for each audio array
713 | taskGroup.addTask {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
714 | do {
715 | let transcribeResult: [TranscriptionResult] = try await self.transcribe(
| `- note: closure captures 'self' which is accessible to code in the current task
716 | audioArray: audioArray,
717 | decodeOptions: batchedDecodeOptions,
[112/119] Compiling WhisperKitCLI CLIUtils.swift
[113/119] Compiling WhisperKitCLI TranscribeCLI.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKitCLI/TranscribeCLI.swift:11:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
10 | struct TranscribeCLI: AsyncParsableCommand {
11 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
12 | commandName: "transcribe",
13 | abstract: "Transcribe audio to text using WhisperKit"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKitCLI/TranscribeCLI.swift:4:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | // Copyright © 2024 Argmax, Inc. All rights reserved.
3 |
4 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
5 | import CoreML
6 | import Foundation
:
9 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
10 | struct TranscribeCLI: AsyncParsableCommand {
11 | static let configuration = CommandConfiguration(
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | commandName: "transcribe",
13 | abstract: "Transcribe audio to text using WhisperKit"
[114/119] Emitting module WhisperKitCLI
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKitCLI/TranscribeCLI.swift:11:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
10 | struct TranscribeCLI: AsyncParsableCommand {
11 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
12 | commandName: "transcribe",
13 | abstract: "Transcribe audio to text using WhisperKit"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKitCLI/TranscribeCLI.swift:4:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | // Copyright © 2024 Argmax, Inc. All rights reserved.
3 |
4 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
5 | import CoreML
6 | import Foundation
:
9 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
10 | struct TranscribeCLI: AsyncParsableCommand {
11 | static let configuration = CommandConfiguration(
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | commandName: "transcribe",
13 | abstract: "Transcribe audio to text using WhisperKit"
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKitCLI/WhisperKitCLI.swift:12:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
10 | @main
11 | struct WhisperKitCLI: AsyncParsableCommand {
12 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
13 | commandName: "whisperkit-cli",
14 | abstract: "WhisperKit CLI",
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKitCLI/WhisperKitCLI.swift:4:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | // Copyright © 2024 Argmax, Inc. All rights reserved.
3 |
4 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
5 | import Foundation
6 |
:
10 | @main
11 | struct WhisperKitCLI: AsyncParsableCommand {
12 | static let configuration = CommandConfiguration(
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | commandName: "whisperkit-cli",
14 | abstract: "WhisperKit CLI",
[115/119] Compiling WhisperKitCLI CLIArguments.swift
[116/119] Compiling WhisperKitCLI WhisperKitCLI.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKitCLI/WhisperKitCLI.swift:12:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
10 | @main
11 | struct WhisperKitCLI: AsyncParsableCommand {
12 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
13 | commandName: "whisperkit-cli",
14 | abstract: "WhisperKit CLI",
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKitCLI/WhisperKitCLI.swift:4:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | // Copyright © 2024 Argmax, Inc. All rights reserved.
3 |
4 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
5 | import Foundation
6 |
:
10 | @main
11 | struct WhisperKitCLI: AsyncParsableCommand {
12 | static let configuration = CommandConfiguration(
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | commandName: "whisperkit-cli",
14 | abstract: "WhisperKit CLI",
[116/119] Write Objects.LinkFileList
[117/119] Linking whisperkit-cli
[118/119] Applying whisperkit-cli
Build complete! (17.14s)
warning: 'spi-builder-workspace': Invalid Resource 'Models/whisperkit-coreml': File not found.
Build complete.
{
"dependencies" : [
{
"identity" : "swift-transformers",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.8",
"upper_bound" : "0.2.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/huggingface/swift-transformers.git"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser.git"
}
],
"manifest_display_name" : "whisperkit",
"name" : "whisperkit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "WhisperKit",
"targets" : [
"WhisperKit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "whisperkit-cli",
"targets" : [
"WhisperKitCLI"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "WhisperKitTests",
"module_type" : "SwiftTarget",
"name" : "WhisperKitTests",
"path" : ".",
"product_dependencies" : [
"Transformers"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/8_Channel_ID.m4a",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/config-v02.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/config-v03.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/es_test_clip.wav",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/ja_test_clip.wav",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/jfk.wav",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/jfk_441khz.m4a",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WhisperKitTests/Resources/ted_60.m4a",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"Tests/WhisperKitTests/Evaluate/DistanceCalculation.swift",
"Tests/WhisperKitTests/Evaluate/NormalizeEn.swift",
"Tests/WhisperKitTests/Evaluate/SpellingMapping.swift",
"Tests/WhisperKitTests/Evaluate/WERUtils.swift",
"Tests/WhisperKitTests/FunctionalTests.swift",
"Tests/WhisperKitTests/RegressionTestUtils.swift",
"Tests/WhisperKitTests/RegressionTests.swift",
"Tests/WhisperKitTests/TestUtils.swift",
"Tests/WhisperKitTests/UnitTests.swift"
],
"target_dependencies" : [
"WhisperKit"
],
"type" : "test"
},
{
"c99name" : "WhisperKitCLI",
"module_type" : "SwiftTarget",
"name" : "WhisperKitCLI",
"path" : "Sources/WhisperKitCLI",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"whisperkit-cli"
],
"sources" : [
"CLIArguments.swift",
"CLIUtils.swift",
"TranscribeCLI.swift",
"WhisperKitCLI.swift"
],
"target_dependencies" : [
"WhisperKit"
],
"type" : "executable"
},
{
"c99name" : "WhisperKit",
"module_type" : "SwiftTarget",
"name" : "WhisperKit",
"path" : "Sources/WhisperKit",
"product_dependencies" : [
"Transformers"
],
"product_memberships" : [
"WhisperKit",
"whisperkit-cli"
],
"sources" : [
"Core/Audio/AudioChunker.swift",
"Core/Audio/AudioProcessor.swift",
"Core/Audio/AudioStreamTranscriber.swift",
"Core/Audio/EnergyVAD.swift",
"Core/Audio/VoiceActivityDetector.swift",
"Core/AudioEncoder.swift",
"Core/Configurations.swift",
"Core/FeatureExtractor.swift",
"Core/Models.swift",
"Core/ResultWriter.swift",
"Core/Text/LogitsFilter.swift",
"Core/Text/SegmentSeeker.swift",
"Core/Text/TokenSampler.swift",
"Core/TextDecoder.swift",
"Core/TranscribeTask.swift",
"Core/Utils/Concurrency.swift",
"Core/Utils/Utils.swift",
"Core/WhisperKit.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
warning: 'spi-builder-workspace': Invalid Resource 'Models/whisperkit-coreml': File not found.
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/argmaxinc/whisperkit/v0.12.0
Repository: argmaxinc/whisperkit
Swift version used: 6.1
Target: WhisperKit
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
* branch release/6.2 -> FETCH_HEAD
* [new branch] release/6.2 -> origin/release/6.2
HEAD is now at 8799b69 Update the artifact
Cloned https://github.com/swiftlang/swift-docc-render-artifact
Extracting symbol information for 'WhisperKit'...
Finished extracting symbol information for 'WhisperKit'. (10.38s)
Building documentation for 'WhisperKit'...
warning: Parameter 'maxReadFrameSize' is missing documentation
--> Sources/WhisperKit/Core/Audio/AudioProcessor.swift:55:64-55:64
53 | /// - channelMode: Channel Mode selected for loadAudio
54 | /// - startTime: Optional start time in seconds to read from
55 + /// - endTime: Optional end time in seconds to read until
| ╰─suggestion: Document 'maxReadFrameSize' parameter
56 | /// - Returns: `AVAudioPCMBuffer` containing the audio data.
57 | static func loadAudio(fromPath audioFilePath: String, channelMode: ChannelMode, startTime: Double?, endTime: Double?, maxReadFrameSize: AVAudioFrameCount?) throws -> AVAudioPCMBuffer
warning: Parameter 'audioPaths' not found in type method declaration
--> Sources/WhisperKit/Core/Audio/AudioProcessor.swift:108:21-108:31
106 | public extension AudioProcessing {
107 | /// Loads and converts audio data from a specified file paths.
108 + /// - Parameter audioPaths: The file paths of the audio files.
| ╰─suggestion: Replace 'audioPaths' with 'audioFilePath'
109 | /// - Returns: `AVAudioPCMBuffer` containing the audio data.
110 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
warning: Parameter 'audioPaths' not found in type method declaration
--> Sources/WhisperKit/Core/Audio/AudioProcessor.swift:108:21-108:31
106 | public extension AudioProcessing {
107 | /// Loads and converts audio data from a specified file paths.
108 + /// - Parameter audioPaths: The file paths of the audio files.
| ╰─suggestion: Replace 'audioPaths' with 'audioFilePath'
109 | /// - Returns: `AVAudioPCMBuffer` containing the audio data.
110 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
warning: Parameter 'audioFilePath' is missing documentation
--> Sources/WhisperKit/Core/Audio/AudioProcessor.swift:108:67-108:67
106 | public extension AudioProcessing {
107 | /// Loads and converts audio data from a specified file paths.
108 + /// - Parameter audioPaths: The file paths of the audio files.
| ╰─suggestion: Document 'audioFilePath' parameter
109 | /// - Returns: `AVAudioPCMBuffer` containing the audio data.
110 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
warning: Parameter 'audioFilePath' is missing documentation
--> Sources/WhisperKit/Core/Audio/AudioProcessor.swift:108:67-108:67
106 | public extension AudioProcessing {
107 | /// Loads and converts audio data from a specified file paths.
108 + /// - Parameter audioPaths: The file paths of the audio files.
| ╰─suggestion: Document 'audioFilePath' parameter
109 | /// - Returns: `AVAudioPCMBuffer` containing the audio data.
110 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
warning: Parameter 'channelMode' is missing documentation
--> Sources/WhisperKit/Core/Audio/AudioProcessor.swift:365:94-365:94
363 | /// - channelCount: The desired output channel count.
364 | /// - frameCount: The desired frames to read from the input audio file. (default: all).
| ╰─suggestion: Document 'channelMode' parameter
365 + /// - maxReadFrameSize: Maximum number of frames to read at once (default: 10 million).
366 | /// - Returns: Resampled audio as an AVAudioPCMBuffer, or nil if resampling fails.
367 | public static func resampleAudio(
warning: Parameter 'energyValuesToConsider' not found in type method declaration
--> Sources/WhisperKit/Core/Audio/AudioProcessor.swift:619:11-619:72
617 | /// - relativeEnergy: relative energy values
618 | /// - nextBufferInSeconds: duration of the next buffer in seconds
619 + /// - energyValuesToConsider: number of energy values to consider
| ╰─suggestion: Remove 'energyValuesToConsider' parameter documentation
620 | /// - silenceThreshold: silence threshold
621 | /// - Returns: true if voice is detected, false otherwise
Finished building documentation for 'WhisperKit' (0.51s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/argmaxinc/whisperkit/v0.12.0
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Updating https://github.com/apple/swift-argument-parser.git
Updating https://github.com/huggingface/swift-transformers.git
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.46s)
Updated https://github.com/huggingface/swift-transformers.git (0.48s)
Updated https://github.com/apple/swift-argument-parser.git (0.48s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.3.0 (1.00s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 0.1.8 (0.43s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (0.52s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.73s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.34s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
warning: 'spi-builder-workspace': Invalid Resource 'Models/whisperkit-coreml': File not found.
Building for debugging...
[0/7] Write snippet-extract-tool-entitlement.plist
[1/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Compiling SymbolKit GenericConstraint.swift
[7/53] Compiling SymbolKit GenericParameter.swift
[8/53] Compiling SymbolKit Generics.swift
[9/53] Compiling SymbolKit Namespace.swift
[10/57] Emitting module SymbolKit
[11/57] Compiling SymbolKit SemanticVersion.swift
[12/57] Compiling SymbolKit AccessControl.swift
[13/57] Compiling SymbolKit Availability.swift
[14/57] Compiling SymbolKit AvailabilityItem.swift
[15/57] Compiling SymbolKit Domain.swift
[16/57] Compiling SymbolKit Mixin+Equals.swift
[17/57] Compiling SymbolKit Mixin+Hash.swift
[18/57] Compiling SymbolKit Mixin.swift
[19/57] Compiling SymbolKit LineList.swift
[20/57] Compiling SymbolKit Position.swift
[21/57] Compiling SymbolKit Identifier.swift
[22/57] Compiling SymbolKit KindIdentifier.swift
[23/57] Compiling SymbolKit Location.swift
[24/57] Compiling SymbolKit Mutability.swift
[25/57] Compiling SymbolKit SourceRange.swift
[26/57] Compiling SymbolKit Metadata.swift
[27/57] Compiling SymbolKit Module.swift
[28/57] Compiling SymbolKit OperatingSystem.swift
[29/57] Compiling SymbolKit Platform.swift
[30/57] Compiling SymbolKit Names.swift
[31/57] Compiling SymbolKit SPI.swift
[32/57] Compiling SymbolKit Snippet.swift
[33/57] Compiling SymbolKit Extension.swift
[34/57] Compiling SymbolKit Relationship.swift
[35/57] Compiling SymbolKit RelationshipKind.swift
[36/57] Compiling SymbolKit SourceOrigin.swift
[37/57] Compiling SymbolKit GenericConstraints.swift
[38/57] Compiling SymbolKit Swift.swift
[39/57] Compiling SymbolKit DeclarationFragments.swift
[40/57] Compiling SymbolKit Fragment.swift
[41/57] Compiling SymbolKit FragmentKind.swift
[42/57] Compiling SymbolKit FunctionParameter.swift
[43/57] Compiling SymbolKit FunctionSignature.swift
[44/57] Compiling SymbolKit Symbol.swift
[45/57] Compiling SymbolKit SymbolKind.swift
[46/57] Compiling SymbolKit SymbolGraph.swift
[47/57] Compiling SymbolKit GraphCollector.swift
[48/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[49/57] Compiling SymbolKit UnifiedSymbol.swift
[50/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[51/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[52/57] Compiling Snippets Snippet.swift
[53/57] Emitting module Snippets
[54/57] Compiling Snippets SnippetParser.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (3.95s)
warning: 'spi-builder-workspace': Invalid Resource 'Models/whisperkit-coreml': File not found.
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/16] Compiling Hub resource_bundle_accessor.swift
[3/16] Compiling Hub Hub.swift
[4/16] Compiling Hub Downloader.swift
[5/16] Emitting module Hub
[6/16] Compiling Hub HubApi.swift
[7/16] Compiling TensorUtils LogitsWarper.swift
[8/16] Compiling TensorUtils LogitsProcessor.swift
[9/16] Compiling TensorUtils MLShapedArray+Utils.swift
[10/16] Compiling TensorUtils MLMultiArray+Utils.swift
[11/16] Compiling TensorUtils TopKLogitsWarper.swift
[12/16] Compiling TensorUtils TemperatureLogitsWarper.swift
[13/16] Compiling TensorUtils RepetitionPenaltyWarper.swift
[14/16] Compiling TensorUtils TopPLogitsWarper.swift
[15/16] Compiling TensorUtils Math.swift
[16/16] Emitting module TensorUtils
[17/28] Compiling Tokenizers Trie.swift
[18/28] Compiling Tokenizers UnigramTokenizer.swift
[19/28] Compiling Tokenizers TokenLattice.swift
[20/29] Compiling Tokenizers Tokenizer.swift
[21/29] Compiling Tokenizers PostProcessor.swift
[22/29] Compiling Tokenizers ByteEncoder.swift
[23/29] Compiling Tokenizers Decoder.swift
[24/29] Compiling Tokenizers BPETokenizer.swift
[25/29] Compiling Tokenizers BertTokenizer.swift
[26/29] Compiling Tokenizers PreTokenizer.swift
[27/29] Compiling Tokenizers Normalizer.swift
[28/29] Emitting module Tokenizers
[29/29] Compiling Tokenizers Utils.swift
[30/32] Emitting module Generation
[31/32] Compiling Generation GenerationConfig.swift
[32/32] Compiling Generation Generation.swift
[33/35] Compiling Models LanguageModelTypes.swift
[34/35] Emitting module Models
[35/35] Compiling Models LanguageModel.swift
[36/53] Compiling WhisperKit TokenSampler.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:104:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
102 | let logitsDescriptor = BNNSNDArrayDescriptor(
103 | data: logitsRawPointer,
104 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
105 | shape: .vector(logits.count, stride: 1)
106 | )!
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:113:33: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
111 | if temperature != 0.0 {
112 | let scaledLogits = BNNSNDArrayDescriptor.allocateUninitialized(
113 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
114 | shape: .vector(logits.count, stride: 1)
115 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:117:27: warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
115 | )
116 |
117 | try! BNNS.applyActivation(
| `- warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
118 | activation: BNNS.ActivationFunction.linear(alpha: Float(1 / temperature)),
119 | input: logitsDescriptor,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:118:38: warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
116 |
117 | try! BNNS.applyActivation(
118 | activation: BNNS.ActivationFunction.linear(alpha: Float(1 / temperature)),
| `- warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
119 | input: logitsDescriptor,
120 | output: scaledLogits,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:134:22: warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
132 | )
133 |
134 | try BNNS.applyActivation(
| `- warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
135 | activation: BNNS.ActivationFunction.softmax,
136 | input: softmaxInput!,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:135:34: warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
133 |
134 | try BNNS.applyActivation(
135 | activation: BNNS.ActivationFunction.softmax,
| `- warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
136 | input: softmaxInput!,
137 | output: softmaxOutput!,
[37/53] Compiling WhisperKit TextDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:104:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
102 | let logitsDescriptor = BNNSNDArrayDescriptor(
103 | data: logitsRawPointer,
104 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
105 | shape: .vector(logits.count, stride: 1)
106 | )!
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:113:33: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
111 | if temperature != 0.0 {
112 | let scaledLogits = BNNSNDArrayDescriptor.allocateUninitialized(
113 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
114 | shape: .vector(logits.count, stride: 1)
115 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:117:27: warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
115 | )
116 |
117 | try! BNNS.applyActivation(
| `- warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
118 | activation: BNNS.ActivationFunction.linear(alpha: Float(1 / temperature)),
119 | input: logitsDescriptor,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:118:38: warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
116 |
117 | try! BNNS.applyActivation(
118 | activation: BNNS.ActivationFunction.linear(alpha: Float(1 / temperature)),
| `- warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
119 | input: logitsDescriptor,
120 | output: scaledLogits,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:134:22: warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
132 | )
133 |
134 | try BNNS.applyActivation(
| `- warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
135 | activation: BNNS.ActivationFunction.softmax,
136 | input: softmaxInput!,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/TokenSampler.swift:135:34: warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
133 |
134 | try BNNS.applyActivation(
135 | activation: BNNS.ActivationFunction.softmax,
| `- warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
136 | input: softmaxInput!,
137 | output: softmaxOutput!,
[38/53] Compiling WhisperKit Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Utils/Utils.swift:76:9: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
56 | }
57 |
58 | extension MLMultiArray {
| `- note: add @available attribute to enclosing extension
59 | /// Calculate the linear offset by summing the products of each dimension's index with the dimension's stride.
60 | /// More info [here](https://developer.apple.com/documentation/coreml/mlmultiarray/2879231-subscript)
:
72 | }
73 |
74 | func fillLastDimension(indexes: Range<Int>, with value: FloatType) {
| `- note: add @available attribute to enclosing instance method
75 | precondition(shape.count == 3 && shape[0] == 1 && shape[1] == 1, "Must have [1, 1, n] shape")
76 | withUnsafeMutableBufferPointer(ofType: FloatType.self) { ptr, strides in
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
77 | for index in indexes {
78 | ptr[index * strides[2]] = value
[39/53] Compiling WhisperKit TranscribeTask.swift
[40/53] Compiling WhisperKit Concurrency.swift
[41/53] Compiling WhisperKit LogitsFilter.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:158:25: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
156 | guard let logprobsInputDescriptor = BNNSNDArrayDescriptor(
157 | data: logprobsInputPointer,
158 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
159 | shape: .vector(logits.count, stride: 1)
160 | ) else {
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:166:25: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
164 |
165 | let logprobs = BNNSNDArrayDescriptor.allocateUninitialized(
166 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
167 | shape: .vector(logits.count, stride: 1)
168 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:172:22: warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
170 |
171 | do {
172 | try BNNS.applyActivation(
| `- warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
173 | activation: BNNS.ActivationFunction.logSoftmax,
174 | input: logprobsInputDescriptor,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:173:34: warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
171 | do {
172 | try BNNS.applyActivation(
173 | activation: BNNS.ActivationFunction.logSoftmax,
| `- warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
174 | input: logprobsInputDescriptor,
175 | output: logprobs,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:188:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
186 | guard let logSumExpInputDescriptor = BNNSNDArrayDescriptor(
187 | data: logSumExpInputPointer,
188 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
189 | shape: .vector(timeTokenCount, stride: 1)
190 | ) else {
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:196:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
194 |
195 | let timestampLogProb = BNNSNDArrayDescriptor.allocateUninitialized(
196 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
197 | shape: .vector(1, stride: 1)
198 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:215:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
213 | guard let maxTextTokenLogProbInputDescriptor = BNNSNDArrayDescriptor(
214 | data: maxTextTokenLogProbInputPointer,
215 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
216 | shape: .vector(noTimeTokenCount, stride: 1)
217 | ) else {
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:223:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
221 |
222 | let maxTextTokenLogProb = BNNSNDArrayDescriptor.allocateUninitialized(
223 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
224 | shape: .vector(1, stride: 1)
225 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
[42/53] Compiling WhisperKit SegmentSeeker.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:158:25: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
156 | guard let logprobsInputDescriptor = BNNSNDArrayDescriptor(
157 | data: logprobsInputPointer,
158 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
159 | shape: .vector(logits.count, stride: 1)
160 | ) else {
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:166:25: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
164 |
165 | let logprobs = BNNSNDArrayDescriptor.allocateUninitialized(
166 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
167 | shape: .vector(logits.count, stride: 1)
168 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:172:22: warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
170 |
171 | do {
172 | try BNNS.applyActivation(
| `- warning: 'applyActivation(activation:input:output:batchSize:filterParameters:)' is deprecated: Use the BNNSGraph API instead.
173 | activation: BNNS.ActivationFunction.logSoftmax,
174 | input: logprobsInputDescriptor,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:173:34: warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
171 | do {
172 | try BNNS.applyActivation(
173 | activation: BNNS.ActivationFunction.logSoftmax,
| `- warning: 'ActivationFunction' is deprecated: Use the BNNSGraph API instead.
174 | input: logprobsInputDescriptor,
175 | output: logprobs,
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:188:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
186 | guard let logSumExpInputDescriptor = BNNSNDArrayDescriptor(
187 | data: logSumExpInputPointer,
188 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
189 | shape: .vector(timeTokenCount, stride: 1)
190 | ) else {
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:196:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
194 |
195 | let timestampLogProb = BNNSNDArrayDescriptor.allocateUninitialized(
196 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
197 | shape: .vector(1, stride: 1)
198 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:215:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
213 | guard let maxTextTokenLogProbInputDescriptor = BNNSNDArrayDescriptor(
214 | data: maxTextTokenLogProbInputPointer,
215 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
216 | shape: .vector(noTimeTokenCount, stride: 1)
217 | ) else {
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Text/LogitsFilter.swift:223:29: warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
221 |
222 | let maxTextTokenLogProb = BNNSNDArrayDescriptor.allocateUninitialized(
223 | scalarType: FloatType.self,
| `- warning: conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in the Swift 6 language mode
224 | shape: .vector(1, stride: 1)
225 | )
Accelerate.Float16:4:11: note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
2 | @available(macOS, unavailable)
3 | @available(macCatalyst, unavailable)
4 | extension Float16 : BNNSScalar {
| `- note: conformance of 'Float16' to 'BNNSScalar' has been explicitly marked unavailable here
5 | public static var bnnsDataType: BNNSDataType { get }
6 | }
[43/54] Compiling WhisperKit AudioStreamTranscriber.swift
[44/54] Compiling WhisperKit EnergyVAD.swift
[45/54] Compiling WhisperKit Configurations.swift
[46/54] Compiling WhisperKit FeatureExtractor.swift
[47/54] Compiling WhisperKit VoiceActivityDetector.swift
[48/54] Compiling WhisperKit AudioEncoder.swift
[49/54] Compiling WhisperKit Models.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:957:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
955 | @available(macCatalyst, unavailable)
956 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
957 | return MLShapedArray<Float16>(self.melspectrogramFeatures)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
958 | }
959 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:957:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
955 | @available(macCatalyst, unavailable)
956 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
957 | return MLShapedArray<Float16>(self.melspectrogramFeatures)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
958 | }
959 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1020:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1018 | @available(macCatalyst, unavailable)
1019 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
1020 | return MLShapedArray<Float16>(self.encoder_output_embeds)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1021 | }
1022 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1020:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1018 | @available(macCatalyst, unavailable)
1019 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
1020 | return MLShapedArray<Float16>(self.encoder_output_embeds)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1021 | }
1022 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1125:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1123 | @available(macCatalyst, unavailable)
1124 | public var logitsShapedArray: MLShapedArray<Float16> {
1125 | return MLShapedArray<Float16>(self.logits)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1126 | }
1127 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1125:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1123 | @available(macCatalyst, unavailable)
1124 | public var logitsShapedArray: MLShapedArray<Float16> {
1125 | return MLShapedArray<Float16>(self.logits)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1126 | }
1127 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1137:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1135 | @available(macCatalyst, unavailable)
1136 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1137 | return MLShapedArray<Float16>(self.key_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1138 | }
1139 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1137:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1135 | @available(macCatalyst, unavailable)
1136 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1137 | return MLShapedArray<Float16>(self.key_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1138 | }
1139 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1149:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1147 | @available(macCatalyst, unavailable)
1148 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1149 | return MLShapedArray<Float16>(self.value_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1150 | }
1151 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1149:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1147 | @available(macCatalyst, unavailable)
1148 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1149 | return MLShapedArray<Float16>(self.value_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1150 | }
1151 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1164:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1162 | return nil
1163 | }
1164 | return MLShapedArray<Float16>(alignment_heads_weights)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1165 | }
1166 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1164:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1162 | return nil
1163 | }
1164 | return MLShapedArray<Float16>(alignment_heads_weights)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1165 | }
1166 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1232:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1230 | @available(macCatalyst, unavailable)
1231 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1232 | return MLShapedArray<Float16>(self.key_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1233 | }
1234 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1232:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1230 | @available(macCatalyst, unavailable)
1231 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1232 | return MLShapedArray<Float16>(self.key_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1233 | }
1234 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1244:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1242 | @available(macCatalyst, unavailable)
1243 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1244 | return MLShapedArray<Float16>(self.value_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1245 | }
1246 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1244:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1242 | @available(macCatalyst, unavailable)
1243 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1244 | return MLShapedArray<Float16>(self.value_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1245 | }
1246 |
[50/54] Compiling WhisperKit ResultWriter.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:957:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
955 | @available(macCatalyst, unavailable)
956 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
957 | return MLShapedArray<Float16>(self.melspectrogramFeatures)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
958 | }
959 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:957:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
955 | @available(macCatalyst, unavailable)
956 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
957 | return MLShapedArray<Float16>(self.melspectrogramFeatures)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
958 | }
959 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1020:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1018 | @available(macCatalyst, unavailable)
1019 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
1020 | return MLShapedArray<Float16>(self.encoder_output_embeds)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1021 | }
1022 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1020:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1018 | @available(macCatalyst, unavailable)
1019 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
1020 | return MLShapedArray<Float16>(self.encoder_output_embeds)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1021 | }
1022 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1125:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1123 | @available(macCatalyst, unavailable)
1124 | public var logitsShapedArray: MLShapedArray<Float16> {
1125 | return MLShapedArray<Float16>(self.logits)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1126 | }
1127 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1125:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1123 | @available(macCatalyst, unavailable)
1124 | public var logitsShapedArray: MLShapedArray<Float16> {
1125 | return MLShapedArray<Float16>(self.logits)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1126 | }
1127 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1137:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1135 | @available(macCatalyst, unavailable)
1136 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1137 | return MLShapedArray<Float16>(self.key_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1138 | }
1139 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1137:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1135 | @available(macCatalyst, unavailable)
1136 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1137 | return MLShapedArray<Float16>(self.key_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1138 | }
1139 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1149:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1147 | @available(macCatalyst, unavailable)
1148 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1149 | return MLShapedArray<Float16>(self.value_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1150 | }
1151 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1149:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1147 | @available(macCatalyst, unavailable)
1148 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1149 | return MLShapedArray<Float16>(self.value_cache_updates)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1150 | }
1151 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1164:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1162 | return nil
1163 | }
1164 | return MLShapedArray<Float16>(alignment_heads_weights)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1165 | }
1166 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1164:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1162 | return nil
1163 | }
1164 | return MLShapedArray<Float16>(alignment_heads_weights)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1165 | }
1166 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1232:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1230 | @available(macCatalyst, unavailable)
1231 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1232 | return MLShapedArray<Float16>(self.key_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1233 | }
1234 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1232:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1230 | @available(macCatalyst, unavailable)
1231 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1232 | return MLShapedArray<Float16>(self.key_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1233 | }
1234 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1244:16: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1242 | @available(macCatalyst, unavailable)
1243 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1244 | return MLShapedArray<Float16>(self.value_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1245 | }
1246 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1244:37: warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
1242 | @available(macCatalyst, unavailable)
1243 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1244 | return MLShapedArray<Float16>(self.value_cache_prefill)
| |- warning: conformance of 'Float16' to 'MLShapedArrayScalar' is only available in macOS 15.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1245 | }
1246 |
[51/54] Compiling WhisperKit AudioChunker.swift
[52/54] Compiling WhisperKit AudioProcessor.swift
[53/54] Emitting module WhisperKit
[54/54] Compiling WhisperKit WhisperKit.swift
Build of target: 'WhisperKit' complete! (4.19s)
1674
10 /Users/admin/builder/spi-builder-workspace/.docs/argmaxinc/whisperkit/v0.12.0
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/argmaxinc/whisperkit/v0.12.0
File count: 1674
Doc size: 10.0MB
Preparing doc bundle ...
Uploading prod-argmaxinc-whisperkit-v0.12.0-217d6432.zip to s3://spi-docs-inbox/prod-argmaxinc-whisperkit-v0.12.0-217d6432.zip
Copying... [12%]
Copying... [21%]
Copying... [32%]
Copying... [41%]
Copying... [50%]
Copying... [62%]
Copying... [71%]
Copying... [82%]
Copying... [91%]
Copying... [100%]
Done.