Audio, Text, Large Language Models, Retrieval, Python.
torch.cuda.is_available() else torch.float32 model = AutoModelForSpeechSeq2Seq.from_pretrained( audio_to_text_model_path, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True ) model.to(device) processor = AutoProcessor.from_pretrained(audio_to_text_model_path) pipe = pipeline(