Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support distil whisper models #88

Merged
merged 9 commits into from
Mar 25, 2024
Merged

Support distil whisper models #88

merged 9 commits into from
Mar 25, 2024

Conversation

ZachNagengast
Copy link
Contributor

@ZachNagengast ZachNagengast commented Mar 23, 2024

Distil whisper models are a great addition to the standard openai models especially for smaller devices, and with distil large v3 out now, its a great time to add support for them.

Important note: This required some significant changes to how we search for models, specifically that we now require the full model name like "openai_whisper-large-v3" rather than just "large-v3" in order to use the convenience methods for downloading a model without doing it manually using the modelFolder param.

Swift

let pipe = try? await WhisperKit(model: "distil-whisper_distil-large-v3")

or

let pipe = try? await WhisperKit(model: "distil*large-v3")

CLI

swift run whisperkit-cli transcribe --model "large-v3" --model-prefix "distil" --audio-path ~/your-audio.mp3

@ZachNagengast ZachNagengast requested a review from atiorh March 23, 2024 01:32
@@ -57,7 +57,7 @@ struct ContentView: View {
@State private var currentFallbacks: Int = 0
@State private var lastBufferSize: Int = 0
@State private var lastConfirmedSegmentEndSeconds: Float = 0
@State private var requiredSegmentsForConfirmation: Int = 2
@State private var requiredSegmentsForConfirmation: Int = 4
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating this to account for #24 increasing the amount of segments generated overall

@ZachNagengast ZachNagengast merged commit 0f19f7e into main Mar 25, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant