Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nb/Whisper.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
],
"source": [
"from unsloth import FastModel\n",
"from transformers import WhisperForConditionalGeneration\n",
"from transformers import AutoModelForSpeechSeq2Seq\n",
"import torch\n",
"\n",
"fourbit_models = [\n",
Expand All @@ -351,7 +351,7 @@
" model_name = \"unsloth/whisper-large-v3\",\n",
" dtype = None, # Leave as None for auto detection\n",
" load_in_4bit = False, # Set to True to do 4bit quantization which reduces memory\n",
" auto_model = WhisperForConditionalGeneration,\n",
" auto_model = AutoModelForSpeechSeq2Seq,\n",
" whisper_language = \"English\",\n",
" whisper_task = \"transcribe\",\n",
" # token = \"YOUR_HF_TOKEN\", # HF Token for gated models\n",
Expand Down