How to use DevMehdip/whisper-small-fa-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("openai/whisper-small") model = PeftModel.from_pretrained(base_model, "DevMehdip/whisper-small-fa-lora")
How to use DevMehdip/whisper-small-fa-lora with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("DevMehdip/whisper-small-fa-lora", dtype="auto")