Views
No views yet
stage_astage_baudio_projector weights1import torch
2from transformers import AutoModel, AutoTokenizer, WhisperFeatureExtractor
3
4stage = "stage_b"
5
6model = AutoModel.from_pretrained(
7 "RaghaRao314159/transcription-models",
8 subfolder=stage,
9 trust_remote_code=True,
10 torch_dtype=torch.bfloat16,
11)
12tokenizer = AutoTokenizer.from_pretrained(
13 "RaghaRao314159/transcription-models",
14 subfolder=stage,
15 trust_remote_code=True,
16)
17feature_extractor = WhisperFeatureExtractor.from_pretrained(
18 "RaghaRao314159/transcription-models",
19 subfolder=stage,
20)python pull_model_and_infer.py --model-source "RaghaRao314159/transcription-models" --stage both --audio-path test.mp3