From 0c11e055be1e156153b71cff8ea714d5829b9371 Mon Sep 17 00:00:00 2001 From: Sanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:16:49 +0530 Subject: [PATCH] support distil-large-v3 (#1898) --- candle-examples/examples/whisper/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/candle-examples/examples/whisper/main.rs b/candle-examples/examples/whisper/main.rs index da8c73ae..ecd5ff84 100644 --- a/candle-examples/examples/whisper/main.rs +++ b/candle-examples/examples/whisper/main.rs @@ -374,6 +374,8 @@ enum WhichModel { DistilMediumEn, #[value(name = "distil-large-v2")] DistilLargeV2, + #[value(name = "distil-large-v3")] + DistilLargeV3, } impl WhichModel { @@ -386,7 +388,8 @@ impl WhichModel { | Self::Large | Self::LargeV2 | Self::LargeV3 - | Self::DistilLargeV2 => true, + | Self::DistilLargeV2 + | Self::DistilLargeV3 => true, Self::TinyEn | Self::BaseEn | Self::SmallEn | Self::MediumEn | Self::DistilMediumEn => { false } @@ -408,6 +411,7 @@ impl WhichModel { Self::LargeV3 => ("openai/whisper-large-v3", "main"), Self::DistilMediumEn => ("distil-whisper/distil-medium.en", "main"), Self::DistilLargeV2 => ("distil-whisper/distil-large-v2", "main"), + Self::DistilLargeV3 => ("distil-whisper/distil-large-v3", "main"), } } }