Views
No views yet
distil-whisper/distil-large-v3 available on argmaxinc/whisperkit-coreml is English-only. Despite being flagged as multilingual (it inherits the tokenizer from large-v3), its decoder was distilled exclusively on English data. This means it ignores language tokens like <|it|> and always outputs English text, regardless of DecodingOptions.language settings.| Component | Source | Notes |
|---|---|---|
| AudioEncoder | openai/whisper-large-v3 | Identical to large-v3 (frozen during distillation) |
| MelSpectrogram | openai/whisper-large-v3 | Standard mel-spectrogram preprocessing |
| TextDecoder | bofenghuang/whisper-large-v3-distil-it-v0.2 | 2 decoder layers, trained on Italian data |
| config.json | distil-whisper/distil-large-v3 | Architecture config (2 decoder layers, 32 encoder layers) |
| generation_config.json | distil-whisper/distil-large-v3 | Modified: language set to null (was `< |
1whisperkit-generate-model \
2 --model-version bofenghuang/whisper-large-v3-distil-it-v0.2 \
3 --output-dir ./outputcoremltools compatibility issue, but since the encoder is identical to large-v3 (frozen during distillation), we reused the encoder from argmaxinc/whisperkit-coreml.openai_whisper-large-v3 CoreML model on argmaxinc/whisperkit-coreml."language": null instead of "language": "<|en|>" to avoid English bias.1import WhisperKit
2
3// Download the model
4let modelURL = try await WhisperKit.download(
5 variant: "bofenghuang_whisper-large-v3-distil-it",
6 from: "jmadseeker/whisperkit-coreml-distil-large-v3-it"
7)
8
9// Initialize WhisperKit
10let config = WhisperKitConfig(modelFolder: modelURL.path, verbose: false, logLevel: .error, load: true)
11let whisperKit = try await WhisperKit(config)
12
13// Transcribe in Italian
14let options = DecodingOptions(
15 task: .transcribe,
16 language: "it",
17 temperature: 0.0,
18 temperatureIncrementOnFallback: 0.2,
19 temperatureFallbackCount: 2
20)
21let results = try await whisperKit.transcribe(audioPath: audioURL.path, decodeOptions: options)
22print(results.first?.text ?? "")large-v3 (2 decoder layers vs 32)large-v3 for Italian transcription