Build Information
Successful build of whisperkit, reference v0.13.0 (b3c412
), with Swift 6.1 for macOS (SPM) on 13 Jun 2025 11:08:30 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
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 | }
/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!,
[111/120] Compiling WhisperKit TokenSampler.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 | }
/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!,
[112/120] Compiling WhisperKit Configurations.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1560: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
:
1558 | public static let defaultAppendPunctuations: String = "\"'.。,,!!??::”)]}、"
1559 |
1560 | 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
1561 | var config = ModelSupportConfig(
1562 | 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:917: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
915 | @available(macCatalyst, unavailable)
916 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
917 | 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
918 | }
919 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:917: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
915 | @available(macCatalyst, unavailable)
916 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
917 | 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
918 | }
919 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:980: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
978 | @available(macCatalyst, unavailable)
979 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
980 | 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
981 | }
982 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:980: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
978 | @available(macCatalyst, unavailable)
979 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
980 | 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
981 | }
982 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1085: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
1083 | @available(macCatalyst, unavailable)
1084 | public var logitsShapedArray: MLShapedArray<Float16> {
1085 | 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
1086 | }
1087 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1085: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
1083 | @available(macCatalyst, unavailable)
1084 | public var logitsShapedArray: MLShapedArray<Float16> {
1085 | 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
1086 | }
1087 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1097: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
1095 | @available(macCatalyst, unavailable)
1096 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1097 | 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
1098 | }
1099 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1097: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
1095 | @available(macCatalyst, unavailable)
1096 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1097 | 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
1098 | }
1099 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1109: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
1107 | @available(macCatalyst, unavailable)
1108 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1109 | 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
1110 | }
1111 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1109: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
1107 | @available(macCatalyst, unavailable)
1108 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1109 | 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
1110 | }
1111 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1124: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
1122 | return nil
1123 | }
1124 | 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
1125 | }
1126 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1124: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
1122 | return nil
1123 | }
1124 | 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
1125 | }
1126 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1192: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
1190 | @available(macCatalyst, unavailable)
1191 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1192 | 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
1193 | }
1194 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1192: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
1190 | @available(macCatalyst, unavailable)
1191 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1192 | 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
1193 | }
1194 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1204: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
1202 | @available(macCatalyst, unavailable)
1203 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1204 | 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
1205 | }
1206 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1204: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
1202 | @available(macCatalyst, unavailable)
1203 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1204 | 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
1205 | }
1206 |
[113/120] Compiling WhisperKit FeatureExtractor.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1560: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
:
1558 | public static let defaultAppendPunctuations: String = "\"'.。,,!!??::”)]}、"
1559 |
1560 | 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
1561 | var config = ModelSupportConfig(
1562 | 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:917: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
915 | @available(macCatalyst, unavailable)
916 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
917 | 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
918 | }
919 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:917: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
915 | @available(macCatalyst, unavailable)
916 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
917 | 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
918 | }
919 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:980: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
978 | @available(macCatalyst, unavailable)
979 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
980 | 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
981 | }
982 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:980: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
978 | @available(macCatalyst, unavailable)
979 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
980 | 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
981 | }
982 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1085: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
1083 | @available(macCatalyst, unavailable)
1084 | public var logitsShapedArray: MLShapedArray<Float16> {
1085 | 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
1086 | }
1087 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1085: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
1083 | @available(macCatalyst, unavailable)
1084 | public var logitsShapedArray: MLShapedArray<Float16> {
1085 | 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
1086 | }
1087 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1097: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
1095 | @available(macCatalyst, unavailable)
1096 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1097 | 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
1098 | }
1099 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1097: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
1095 | @available(macCatalyst, unavailable)
1096 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1097 | 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
1098 | }
1099 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1109: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
1107 | @available(macCatalyst, unavailable)
1108 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1109 | 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
1110 | }
1111 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1109: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
1107 | @available(macCatalyst, unavailable)
1108 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1109 | 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
1110 | }
1111 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1124: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
1122 | return nil
1123 | }
1124 | 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
1125 | }
1126 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1124: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
1122 | return nil
1123 | }
1124 | 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
1125 | }
1126 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1192: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
1190 | @available(macCatalyst, unavailable)
1191 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1192 | 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
1193 | }
1194 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1192: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
1190 | @available(macCatalyst, unavailable)
1191 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1192 | 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
1193 | }
1194 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1204: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
1202 | @available(macCatalyst, unavailable)
1203 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1204 | 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
1205 | }
1206 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1204: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
1202 | @available(macCatalyst, unavailable)
1203 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1204 | 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
1205 | }
1206 |
[114/120] Compiling WhisperKit Models.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1560: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
:
1558 | public static let defaultAppendPunctuations: String = "\"'.。,,!!??::”)]}、"
1559 |
1560 | 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
1561 | var config = ModelSupportConfig(
1562 | 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:917: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
915 | @available(macCatalyst, unavailable)
916 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
917 | 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
918 | }
919 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:917: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
915 | @available(macCatalyst, unavailable)
916 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
917 | 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
918 | }
919 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:980: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
978 | @available(macCatalyst, unavailable)
979 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
980 | 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
981 | }
982 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:980: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
978 | @available(macCatalyst, unavailable)
979 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
980 | 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
981 | }
982 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1085: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
1083 | @available(macCatalyst, unavailable)
1084 | public var logitsShapedArray: MLShapedArray<Float16> {
1085 | 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
1086 | }
1087 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1085: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
1083 | @available(macCatalyst, unavailable)
1084 | public var logitsShapedArray: MLShapedArray<Float16> {
1085 | 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
1086 | }
1087 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1097: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
1095 | @available(macCatalyst, unavailable)
1096 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1097 | 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
1098 | }
1099 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1097: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
1095 | @available(macCatalyst, unavailable)
1096 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1097 | 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
1098 | }
1099 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1109: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
1107 | @available(macCatalyst, unavailable)
1108 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1109 | 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
1110 | }
1111 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1109: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
1107 | @available(macCatalyst, unavailable)
1108 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1109 | 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
1110 | }
1111 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1124: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
1122 | return nil
1123 | }
1124 | 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
1125 | }
1126 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1124: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
1122 | return nil
1123 | }
1124 | 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
1125 | }
1126 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1192: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
1190 | @available(macCatalyst, unavailable)
1191 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1192 | 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
1193 | }
1194 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1192: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
1190 | @available(macCatalyst, unavailable)
1191 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1192 | 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
1193 | }
1194 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1204: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
1202 | @available(macCatalyst, unavailable)
1203 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1204 | 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
1205 | }
1206 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1204: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
1202 | @available(macCatalyst, unavailable)
1203 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1204 | 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
1205 | }
1206 |
[115/120] Compiling WhisperKit AudioChunker.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:128:26: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
126 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
127 | static func loadAudioAsync(fromPath audioFilePath: String) async throws -> AVAudioPCMBuffer {
128 | return try await Task {
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
129 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
130 | }.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:128:26: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
126 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
127 | static func loadAudioAsync(fromPath audioFilePath: String) async throws -> AVAudioPCMBuffer {
128 | return try await Task {
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
129 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
130 | }.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:130:11: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
128 | return try await Task {
129 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
130 | }.value
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
131 | }
132 |
/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/AudioStreamTranscriber.swift:199: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
197 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
198 | let checkWindow = compressionCheckWindow
199 | 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
200 | Task { [weak self] in
201 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:511:15: note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
509 | // Structs
510 |
511 | public struct TranscriptionResult: Codable {
| `- note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
512 | public var text: String
513 | public var segments: [TranscriptionSegment]
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:340: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
338 | await withTaskGroup(of: [(index: Int, result: Result<[Float], Swift.Error>)].self) { taskGroup -> [Result<[Float], Swift.Error>] in
339 | for (index, audioPath) in audioPaths.enumerated() {
340 | 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
341 | do {
342 | let audio = try AudioProcessor.loadAudioAsFloatArray(fromPath: audioPath, channelMode: channelMode)
| `- note: closure captures 'channelMode' which is accessible to code in the current task
343 | return [(index: index, result: .success(audio))]
344 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:199:41: warning: sending 'options.some' risks causing data races; this is an error in the Swift 6 language mode
197 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
198 | let checkWindow = compressionCheckWindow
199 | 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
200 | Task { [weak self] in
201 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:199:41: warning: sending value of non-Sendable type '(TranscriptionProgress) -> Bool?' risks causing data races; this is an error in the Swift 6 language mode
197 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
198 | let checkWindow = compressionCheckWindow
199 | 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
200 | Task { [weak self] in
201 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:199:41: warning: sending 'self.transcribeTask' risks causing data races; this is an error in the Swift 6 language mode
197 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
198 | let checkWindow = compressionCheckWindow
199 | 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
200 | Task { [weak self] in
201 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:200: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
198 | let checkWindow = compressionCheckWindow
199 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
200 | 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
201 | await self?.onProgressCallback(progress)
| `- note: closure captures 'progress' which is accessible to code in the current task
202 | }
203 | return AudioStreamTranscriber.shouldStopEarly(progress: progress, options: options, compressionCheckWindow: checkWindow)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:201:29: warning: sending 'progress' risks causing data races; this is an error in the Swift 6 language mode
199 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
200 | Task { [weak self] in
201 | 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
202 | }
203 | return AudioStreamTranscriber.shouldStopEarly(progress: progress, options: options, compressionCheckWindow: checkWindow)
[116/120] Compiling WhisperKit AudioProcessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:128:26: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
126 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
127 | static func loadAudioAsync(fromPath audioFilePath: String) async throws -> AVAudioPCMBuffer {
128 | return try await Task {
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
129 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
130 | }.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:128:26: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
126 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
127 | static func loadAudioAsync(fromPath audioFilePath: String) async throws -> AVAudioPCMBuffer {
128 | return try await Task {
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
129 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
130 | }.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:130:11: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
128 | return try await Task {
129 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
130 | }.value
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
131 | }
132 |
/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/AudioStreamTranscriber.swift:199: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
197 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
198 | let checkWindow = compressionCheckWindow
199 | 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
200 | Task { [weak self] in
201 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:511:15: note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
509 | // Structs
510 |
511 | public struct TranscriptionResult: Codable {
| `- note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
512 | public var text: String
513 | public var segments: [TranscriptionSegment]
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:340: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
338 | await withTaskGroup(of: [(index: Int, result: Result<[Float], Swift.Error>)].self) { taskGroup -> [Result<[Float], Swift.Error>] in
339 | for (index, audioPath) in audioPaths.enumerated() {
340 | 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
341 | do {
342 | let audio = try AudioProcessor.loadAudioAsFloatArray(fromPath: audioPath, channelMode: channelMode)
| `- note: closure captures 'channelMode' which is accessible to code in the current task
343 | return [(index: index, result: .success(audio))]
344 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:199:41: warning: sending 'options.some' risks causing data races; this is an error in the Swift 6 language mode
197 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
198 | let checkWindow = compressionCheckWindow
199 | 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
200 | Task { [weak self] in
201 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:199:41: warning: sending value of non-Sendable type '(TranscriptionProgress) -> Bool?' risks causing data races; this is an error in the Swift 6 language mode
197 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
198 | let checkWindow = compressionCheckWindow
199 | 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
200 | Task { [weak self] in
201 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:199:41: warning: sending 'self.transcribeTask' risks causing data races; this is an error in the Swift 6 language mode
197 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
198 | let checkWindow = compressionCheckWindow
199 | 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
200 | Task { [weak self] in
201 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:200: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
198 | let checkWindow = compressionCheckWindow
199 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
200 | 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
201 | await self?.onProgressCallback(progress)
| `- note: closure captures 'progress' which is accessible to code in the current task
202 | }
203 | return AudioStreamTranscriber.shouldStopEarly(progress: progress, options: options, compressionCheckWindow: checkWindow)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:201:29: warning: sending 'progress' risks causing data races; this is an error in the Swift 6 language mode
199 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
200 | Task { [weak self] in
201 | 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
202 | }
203 | return AudioStreamTranscriber.shouldStopEarly(progress: progress, options: options, compressionCheckWindow: checkWindow)
[117/120] Compiling WhisperKit AudioStreamTranscriber.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:128:26: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
126 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
127 | static func loadAudioAsync(fromPath audioFilePath: String) async throws -> AVAudioPCMBuffer {
128 | return try await Task {
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
129 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
130 | }.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:128:26: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
126 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
127 | static func loadAudioAsync(fromPath audioFilePath: String) async throws -> AVAudioPCMBuffer {
128 | return try await Task {
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
129 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
130 | }.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:130:11: warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
128 | return try await Task {
129 | try AudioProcessor.loadAudio(fromPath: audioFilePath)
130 | }.value
| `- warning: type 'AVAudioPCMBuffer' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
131 | }
132 |
/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/AudioStreamTranscriber.swift:199: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
197 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
198 | let checkWindow = compressionCheckWindow
199 | 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
200 | Task { [weak self] in
201 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:511:15: note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
509 | // Structs
510 |
511 | public struct TranscriptionResult: Codable {
| `- note: consider making struct 'TranscriptionResult' conform to the 'Sendable' protocol
512 | public var text: String
513 | public var segments: [TranscriptionSegment]
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioProcessor.swift:340: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
338 | await withTaskGroup(of: [(index: Int, result: Result<[Float], Swift.Error>)].self) { taskGroup -> [Result<[Float], Swift.Error>] in
339 | for (index, audioPath) in audioPaths.enumerated() {
340 | 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
341 | do {
342 | let audio = try AudioProcessor.loadAudioAsFloatArray(fromPath: audioPath, channelMode: channelMode)
| `- note: closure captures 'channelMode' which is accessible to code in the current task
343 | return [(index: index, result: .success(audio))]
344 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:199:41: warning: sending 'options.some' risks causing data races; this is an error in the Swift 6 language mode
197 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
198 | let checkWindow = compressionCheckWindow
199 | 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
200 | Task { [weak self] in
201 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:199:41: warning: sending value of non-Sendable type '(TranscriptionProgress) -> Bool?' risks causing data races; this is an error in the Swift 6 language mode
197 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
198 | let checkWindow = compressionCheckWindow
199 | 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
200 | Task { [weak self] in
201 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:199:41: warning: sending 'self.transcribeTask' risks causing data races; this is an error in the Swift 6 language mode
197 | options.clipTimestamps = [state.lastConfirmedSegmentEndSeconds]
198 | let checkWindow = compressionCheckWindow
199 | 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
200 | Task { [weak self] in
201 | await self?.onProgressCallback(progress)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:200: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
198 | let checkWindow = compressionCheckWindow
199 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
200 | 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
201 | await self?.onProgressCallback(progress)
| `- note: closure captures 'progress' which is accessible to code in the current task
202 | }
203 | return AudioStreamTranscriber.shouldStopEarly(progress: progress, options: options, compressionCheckWindow: checkWindow)
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:201:29: warning: sending 'progress' risks causing data races; this is an error in the Swift 6 language mode
199 | return try await transcribeTask.run(audioArray: samples, decodeOptions: options) { [weak self] progress in
200 | Task { [weak self] in
201 | 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
202 | }
203 | return AudioStreamTranscriber.shouldStopEarly(progress: progress, options: options, compressionCheckWindow: checkWindow)
[118/125] Compiling WhisperKitCLI CLIUtils.swift
[119/125] 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",
[120/125] 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",
[121/125] Compiling WhisperKitCLI CLIArguments.swift
[122/125] 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"
[122/125] Write Objects.LinkFileList
[123/125] Linking whisperkit-cli
[124/125] Applying whisperkit-cli
Build complete! (16.57s)
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/Text/LogitsFilter.swift",
"Core/Text/SegmentSeeker.swift",
"Core/Text/TokenSampler.swift",
"Core/TextDecoder.swift",
"Core/TranscribeTask.swift",
"Core/WhisperKit.swift",
"Utilities/Concurrency.swift",
"Utilities/Extensions+Internal.swift",
"Utilities/Extensions+Public.swift",
"Utilities/Logging.swift",
"Utilities/ModelUtilities.swift",
"Utilities/ResultWriter.swift",
"Utilities/TextUtilities.swift",
"Utilities/TranscriptionUtilities.swift",
"Utilities/WhisperError.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.13.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 4633b45fc732d8c55568be09dd852f9dc1582c25 -> FETCH_HEAD
HEAD is now at 4633b45 Update the artifact
Cloned https://github.com/swiftlang/swift-docc-render-artifact
Extracting symbol information for 'WhisperKit'...
Finished extracting symbol information for 'WhisperKit'. (7.91s)
Building documentation for 'WhisperKit'...
warning: Parameter 'maxReadFrameSize' is missing documentation
--> Sources/WhisperKit/Core/Audio/AudioProcessor.swift:59:64-59:64
57 | /// - channelMode: Channel Mode selected for loadAudio
58 | /// - startTime: Optional start time in seconds to read from
59 + /// - endTime: Optional end time in seconds to read until
| ╰─suggestion: Document 'maxReadFrameSize' parameter
60 | /// - Returns: `AVAudioPCMBuffer` containing the audio data.
61 | 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:124:21-124:31
122 | public extension AudioProcessing {
123 | /// Loads and converts audio data from a specified file paths.
124 + /// - Parameter audioPaths: The file paths of the audio files.
| ╰─suggestion: Replace 'audioPaths' with 'audioFilePath'
125 | /// - Returns: `AVAudioPCMBuffer` containing the audio data.
126 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
warning: Parameter 'audioPaths' not found in type method declaration
--> Sources/WhisperKit/Core/Audio/AudioProcessor.swift:124:21-124:31
122 | public extension AudioProcessing {
123 | /// Loads and converts audio data from a specified file paths.
124 + /// - Parameter audioPaths: The file paths of the audio files.
| ╰─suggestion: Replace 'audioPaths' with 'audioFilePath'
125 | /// - Returns: `AVAudioPCMBuffer` containing the audio data.
126 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
warning: Parameter 'audioFilePath' is missing documentation
--> Sources/WhisperKit/Core/Audio/AudioProcessor.swift:124:67-124:67
122 | public extension AudioProcessing {
123 | /// Loads and converts audio data from a specified file paths.
124 + /// - Parameter audioPaths: The file paths of the audio files.
| ╰─suggestion: Document 'audioFilePath' parameter
125 | /// - Returns: `AVAudioPCMBuffer` containing the audio data.
126 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
warning: Parameter 'audioFilePath' is missing documentation
--> Sources/WhisperKit/Core/Audio/AudioProcessor.swift:124:67-124:67
122 | public extension AudioProcessing {
123 | /// Loads and converts audio data from a specified file paths.
124 + /// - Parameter audioPaths: The file paths of the audio files.
| ╰─suggestion: Document 'audioFilePath' parameter
125 | /// - Returns: `AVAudioPCMBuffer` containing the audio data.
126 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
warning: Parameter 'channelMode' is missing documentation
--> Sources/WhisperKit/Core/Audio/AudioProcessor.swift:364:94-364:94
362 | /// - channelCount: The desired output channel count.
363 | /// - frameCount: The desired frames to read from the input audio file. (default: all).
| ╰─suggestion: Document 'channelMode' parameter
364 + /// - maxReadFrameSize: Maximum number of frames to read at once (default: 10 million).
365 | /// - Returns: Resampled audio as an AVAudioPCMBuffer, or nil if resampling fails.
366 | public static func resampleAudio(
warning: Parameter 'energyValuesToConsider' not found in type method declaration
--> Sources/WhisperKit/Core/Audio/AudioProcessor.swift:618:11-618:72
616 | /// - relativeEnergy: relative energy values
617 | /// - nextBufferInSeconds: duration of the next buffer in seconds
618 + /// - energyValuesToConsider: number of energy values to consider
| ╰─suggestion: Remove 'energyValuesToConsider' parameter documentation
619 | /// - silenceThreshold: silence threshold
620 | /// - Returns: true if voice is detected, false otherwise
Finished building documentation for 'WhisperKit' (0.52s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/argmaxinc/whisperkit/v0.13.0
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Updating https://github.com/huggingface/swift-transformers.git
Updating https://github.com/apple/swift-argument-parser.git
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.64s)
Updated https://github.com/apple/swift-argument-parser.git (0.52s)
Updated https://github.com/huggingface/swift-transformers.git (0.52s)
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.65s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 0.1.8 (0.46s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.4 (0.58s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.86s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.50s)
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.4
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] Emitting module SymbolKit
[7/57] Compiling SymbolKit DeclarationFragments.swift
[8/57] Compiling SymbolKit Fragment.swift
[9/57] Compiling SymbolKit FragmentKind.swift
[10/57] Compiling SymbolKit FunctionParameter.swift
[11/57] Compiling SymbolKit FunctionSignature.swift
[12/57] Compiling SymbolKit GenericConstraint.swift
[13/57] Compiling SymbolKit GenericParameter.swift
[14/57] Compiling SymbolKit Generics.swift
[15/57] Compiling SymbolKit Namespace.swift
[16/57] Compiling SymbolKit SemanticVersion.swift
[17/57] Compiling SymbolKit AccessControl.swift
[18/57] Compiling SymbolKit Availability.swift
[19/57] Compiling SymbolKit AvailabilityItem.swift
[20/57] Compiling SymbolKit Domain.swift
[21/57] Compiling SymbolKit Mixin+Equals.swift
[22/57] Compiling SymbolKit Mixin+Hash.swift
[23/57] Compiling SymbolKit Mixin.swift
[24/57] Compiling SymbolKit LineList.swift
[25/57] Compiling SymbolKit Position.swift
[26/57] Compiling SymbolKit Identifier.swift
[27/57] Compiling SymbolKit KindIdentifier.swift
[28/57] Compiling SymbolKit Location.swift
[29/57] Compiling SymbolKit Mutability.swift
[30/57] Compiling SymbolKit SourceRange.swift
[31/57] Compiling SymbolKit Metadata.swift
[32/57] Compiling SymbolKit Module.swift
[33/57] Compiling SymbolKit OperatingSystem.swift
[34/57] Compiling SymbolKit Platform.swift
[35/57] Compiling SymbolKit Relationship.swift
[36/57] Compiling SymbolKit RelationshipKind.swift
[37/57] Compiling SymbolKit SourceOrigin.swift
[38/57] Compiling SymbolKit GenericConstraints.swift
[39/57] Compiling SymbolKit Swift.swift
[40/57] Compiling SymbolKit Names.swift
[41/57] Compiling SymbolKit SPI.swift
[42/57] Compiling SymbolKit Snippet.swift
[43/57] Compiling SymbolKit Extension.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] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Emitting module snippet_extract
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.15s)
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 TensorUtils LogitsProcessor.swift
[4/16] Emitting module TensorUtils
[5/16] Compiling TensorUtils LogitsWarper.swift
[6/16] Compiling Hub Hub.swift
[7/16] Compiling Hub Downloader.swift
[8/16] Emitting module Hub
[9/16] Compiling Hub HubApi.swift
[10/16] Compiling TensorUtils MLShapedArray+Utils.swift
[11/16] Compiling TensorUtils MLMultiArray+Utils.swift
[12/16] Compiling TensorUtils TopPLogitsWarper.swift
[13/16] Compiling TensorUtils RepetitionPenaltyWarper.swift
[14/16] Compiling TensorUtils TemperatureLogitsWarper.swift
[15/16] Compiling TensorUtils TopKLogitsWarper.swift
[16/16] Compiling TensorUtils Math.swift
[17/28] Compiling Tokenizers Trie.swift
[18/29] Compiling Tokenizers UnigramTokenizer.swift
[19/29] Compiling Tokenizers TokenLattice.swift
[20/29] Compiling Tokenizers Utils.swift
[21/29] Compiling Tokenizers Tokenizer.swift
[22/29] Compiling Tokenizers ByteEncoder.swift
[23/29] Compiling Tokenizers Decoder.swift
[24/29] Compiling Tokenizers Normalizer.swift
[25/29] Compiling Tokenizers PostProcessor.swift
[26/29] Compiling Tokenizers BPETokenizer.swift
[27/29] Compiling Tokenizers BertTokenizer.swift
[28/29] Emitting module Tokenizers
[29/29] Compiling Tokenizers PreTokenizer.swift
[30/32] Compiling Generation GenerationConfig.swift
[31/32] Emitting module Generation
[32/32] Compiling Generation Generation.swift
[33/35] Compiling Models LanguageModelTypes.swift
[34/35] Emitting module Models
[35/35] Compiling Models LanguageModel.swift
[36/58] Compiling WhisperKit EnergyVAD.swift
[37/58] Compiling WhisperKit VoiceActivityDetector.swift
[38/58] Compiling WhisperKit AudioEncoder.swift
[39/60] Emitting module WhisperKit
[40/60] Compiling WhisperKit Logging.swift
[41/60] Compiling WhisperKit ModelUtilities.swift
[42/60] Compiling WhisperKit TranscriptionUtilities.swift
[43/60] Compiling WhisperKit WhisperError.swift
[44/60] Compiling WhisperKit ResultWriter.swift
[45/60] Compiling WhisperKit TextUtilities.swift
[46/60] Compiling WhisperKit Extensions+Internal.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Utilities/Extensions+Public.swift:116: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 | // MARK: CoreML
57 |
58 | public extension MLMultiArray {
| `- note: add @available attribute to enclosing extension
59 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
60 | convenience init(shape: [NSNumber], dataType: MLMultiArrayDataType, initialValue: Any) throws {
:
112 | }
113 |
114 | func fillLastDimension(indexes: Range<Int>, with value: FloatType) {
| `- note: add @available attribute to enclosing instance method
115 | precondition(shape.count == 3 && shape[0] == 1 && shape[1] == 1, "Must have [1, 1, n] shape")
116 | 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
117 | for index in indexes {
118 | ptr[index * strides[2]] = value
[47/60] Compiling WhisperKit Extensions+Public.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Utilities/Extensions+Public.swift:116: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 | // MARK: CoreML
57 |
58 | public extension MLMultiArray {
| `- note: add @available attribute to enclosing extension
59 | @available(macOS 13, iOS 16, watchOS 10, visionOS 1, *)
60 | convenience init(shape: [NSNumber], dataType: MLMultiArrayDataType, initialValue: Any) throws {
:
112 | }
113 |
114 | func fillLastDimension(indexes: Range<Int>, with value: FloatType) {
| `- note: add @available attribute to enclosing instance method
115 | precondition(shape.count == 3 && shape[0] == 1 && shape[1] == 1, "Must have [1, 1, n] shape")
116 | 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
117 | for index in indexes {
118 | ptr[index * strides[2]] = value
[48/60] 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 | }
/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!,
[49/60] 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 | }
/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!,
[50/60] Compiling WhisperKit TokenSampler.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 | }
/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!,
[51/60] Compiling WhisperKit TextDecoder.swift
[52/60] Compiling WhisperKit TranscribeTask.swift
[53/60] Compiling WhisperKit Configurations.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:917: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
915 | @available(macCatalyst, unavailable)
916 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
917 | 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
918 | }
919 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:917: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
915 | @available(macCatalyst, unavailable)
916 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
917 | 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
918 | }
919 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:980: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
978 | @available(macCatalyst, unavailable)
979 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
980 | 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
981 | }
982 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:980: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
978 | @available(macCatalyst, unavailable)
979 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
980 | 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
981 | }
982 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1085: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
1083 | @available(macCatalyst, unavailable)
1084 | public var logitsShapedArray: MLShapedArray<Float16> {
1085 | 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
1086 | }
1087 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1085: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
1083 | @available(macCatalyst, unavailable)
1084 | public var logitsShapedArray: MLShapedArray<Float16> {
1085 | 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
1086 | }
1087 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1097: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
1095 | @available(macCatalyst, unavailable)
1096 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1097 | 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
1098 | }
1099 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1097: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
1095 | @available(macCatalyst, unavailable)
1096 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1097 | 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
1098 | }
1099 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1109: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
1107 | @available(macCatalyst, unavailable)
1108 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1109 | 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
1110 | }
1111 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1109: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
1107 | @available(macCatalyst, unavailable)
1108 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1109 | 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
1110 | }
1111 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1124: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
1122 | return nil
1123 | }
1124 | 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
1125 | }
1126 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1124: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
1122 | return nil
1123 | }
1124 | 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
1125 | }
1126 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1192: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
1190 | @available(macCatalyst, unavailable)
1191 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1192 | 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
1193 | }
1194 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1192: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
1190 | @available(macCatalyst, unavailable)
1191 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1192 | 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
1193 | }
1194 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1204: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
1202 | @available(macCatalyst, unavailable)
1203 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1204 | 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
1205 | }
1206 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1204: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
1202 | @available(macCatalyst, unavailable)
1203 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1204 | 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
1205 | }
1206 |
[54/60] Compiling WhisperKit FeatureExtractor.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:917: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
915 | @available(macCatalyst, unavailable)
916 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
917 | 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
918 | }
919 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:917: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
915 | @available(macCatalyst, unavailable)
916 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
917 | 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
918 | }
919 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:980: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
978 | @available(macCatalyst, unavailable)
979 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
980 | 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
981 | }
982 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:980: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
978 | @available(macCatalyst, unavailable)
979 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
980 | 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
981 | }
982 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1085: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
1083 | @available(macCatalyst, unavailable)
1084 | public var logitsShapedArray: MLShapedArray<Float16> {
1085 | 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
1086 | }
1087 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1085: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
1083 | @available(macCatalyst, unavailable)
1084 | public var logitsShapedArray: MLShapedArray<Float16> {
1085 | 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
1086 | }
1087 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1097: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
1095 | @available(macCatalyst, unavailable)
1096 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1097 | 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
1098 | }
1099 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1097: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
1095 | @available(macCatalyst, unavailable)
1096 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1097 | 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
1098 | }
1099 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1109: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
1107 | @available(macCatalyst, unavailable)
1108 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1109 | 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
1110 | }
1111 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1109: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
1107 | @available(macCatalyst, unavailable)
1108 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1109 | 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
1110 | }
1111 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1124: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
1122 | return nil
1123 | }
1124 | 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
1125 | }
1126 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1124: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
1122 | return nil
1123 | }
1124 | 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
1125 | }
1126 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1192: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
1190 | @available(macCatalyst, unavailable)
1191 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1192 | 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
1193 | }
1194 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1192: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
1190 | @available(macCatalyst, unavailable)
1191 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1192 | 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
1193 | }
1194 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1204: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
1202 | @available(macCatalyst, unavailable)
1203 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1204 | 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
1205 | }
1206 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1204: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
1202 | @available(macCatalyst, unavailable)
1203 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1204 | 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
1205 | }
1206 |
[55/60] Compiling WhisperKit Models.swift
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:917: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
915 | @available(macCatalyst, unavailable)
916 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
917 | 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
918 | }
919 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:917: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
915 | @available(macCatalyst, unavailable)
916 | public var melspectrogram_featuresShapedArray: MLShapedArray<Float16> {
917 | 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
918 | }
919 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:980: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
978 | @available(macCatalyst, unavailable)
979 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
980 | 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
981 | }
982 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:980: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
978 | @available(macCatalyst, unavailable)
979 | public var encoder_output_embedsShapedArray: MLShapedArray<Float16> {
980 | 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
981 | }
982 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1085: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
1083 | @available(macCatalyst, unavailable)
1084 | public var logitsShapedArray: MLShapedArray<Float16> {
1085 | 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
1086 | }
1087 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1085: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
1083 | @available(macCatalyst, unavailable)
1084 | public var logitsShapedArray: MLShapedArray<Float16> {
1085 | 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
1086 | }
1087 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1097: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
1095 | @available(macCatalyst, unavailable)
1096 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1097 | 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
1098 | }
1099 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1097: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
1095 | @available(macCatalyst, unavailable)
1096 | public var key_cache_updatesShapedArray: MLShapedArray<Float16> {
1097 | 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
1098 | }
1099 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1109: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
1107 | @available(macCatalyst, unavailable)
1108 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1109 | 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
1110 | }
1111 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1109: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
1107 | @available(macCatalyst, unavailable)
1108 | public var value_cache_updatesShapedArray: MLShapedArray<Float16> {
1109 | 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
1110 | }
1111 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1124: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
1122 | return nil
1123 | }
1124 | 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
1125 | }
1126 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1124: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
1122 | return nil
1123 | }
1124 | 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
1125 | }
1126 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1192: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
1190 | @available(macCatalyst, unavailable)
1191 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1192 | 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
1193 | }
1194 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1192: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
1190 | @available(macCatalyst, unavailable)
1191 | public var key_cache_prefillShapedArray: MLShapedArray<Float16> {
1192 | 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
1193 | }
1194 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1204: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
1202 | @available(macCatalyst, unavailable)
1203 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1204 | 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
1205 | }
1206 |
/Users/admin/builder/spi-builder-workspace/Sources/WhisperKit/Core/Models.swift:1204: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
1202 | @available(macCatalyst, unavailable)
1203 | public var value_cache_prefillShapedArray: MLShapedArray<Float16> {
1204 | 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
1205 | }
1206 |
[56/60] Compiling WhisperKit AudioChunker.swift
[57/60] Compiling WhisperKit AudioProcessor.swift
[58/60] Compiling WhisperKit AudioStreamTranscriber.swift
[59/60] Compiling WhisperKit WhisperKit.swift
[60/60] Compiling WhisperKit Concurrency.swift
Build of target: 'WhisperKit' complete! (3.64s)
1750
11 /Users/admin/builder/spi-builder-workspace/.docs/argmaxinc/whisperkit/v0.13.0
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/argmaxinc/whisperkit/v0.13.0
File count: 1750
Doc size: 11.0MB
Preparing doc bundle ...
Uploading prod-argmaxinc-whisperkit-v0.13.0-7e8bd6f5.zip to s3://spi-docs-inbox/prod-argmaxinc-whisperkit-v0.13.0-7e8bd6f5.zip
Copying... [11%]
Copying... [23%]
Copying... [31%]
Copying... [42%]
Copying... [51%]
Copying... [62%]
Copying... [70%]
Copying... [82%]
Copying... [90%]
Copying... [100%]
Done.