Instructions to use DevMehdip/whisper-small-fa-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use DevMehdip/whisper-small-fa-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSpeechSeq2Seq base_model = AutoModelForSpeechSeq2Seq.from_pretrained("openai/whisper-small") model = PeftModel.from_pretrained(base_model, "DevMehdip/whisper-small-fa-lora") - Transformers
How to use DevMehdip/whisper-small-fa-lora with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("DevMehdip/whisper-small-fa-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Ctrl+K