From b48539e881ddf13223b863e7a66e5310ab5be00b Mon Sep 17 00:00:00 2001 From: atila Date: Tue, 24 Sep 2024 20:53:30 -0700 Subject: [PATCH] Set default concurrentWorkerCount to cap peak memory for long files when chunkingStrategy is vad --- Sources/WhisperKit/Core/Models.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/WhisperKit/Core/Models.swift b/Sources/WhisperKit/Core/Models.swift index 701f548..7866620 100644 --- a/Sources/WhisperKit/Core/Models.swift +++ b/Sources/WhisperKit/Core/Models.swift @@ -337,7 +337,7 @@ public struct DecodingOptions { logProbThreshold: Float? = -1.0, firstTokenLogProbThreshold: Float? = -1.5, noSpeechThreshold: Float? = 0.6, - concurrentWorkerCount: Int = 0, + concurrentWorkerCount: Int = 16, chunkingStrategy: ChunkingStrategy? = nil ) { self.verbose = verbose