Skip to content

Commit

Permalink
Set default concurrentWorkerCount to cap peak memory for long files w…
Browse files Browse the repository at this point in the history
…hen chunkingStrategy is vad (#205)
  • Loading branch information
atiorh authored Sep 25, 2024
1 parent c03017f commit 3cd3ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/WhisperKit/Core/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3cd3ef1

Please sign in to comment.