Elastic Transformers
Collection
Hugging Face Transformers models accelerated by TheStage AI ANNA: Automated NNs Accelerator. โข 18 items โข Updated โข 3
Run TheStageAI/whisper-medium on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/TheStageAI/whisper-medium. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/TheStageAI/whisper-medium on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use TheStageAI/whisper-medium with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="TheStageAI/whisper-medium") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("TheStageAI/whisper-medium", device_map="auto")# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("TheStageAI/whisper-medium", device_map="auto")This repository contains a CoreML and MLX-optimized Whisper model for efficient speech recognition on Apple devices.
from asr_streaming import StreamingConfig, StreamingBackend
# Create config with HuggingFace repository
config = StreamingConfig(
use_huggingface=True,
huggingface_repo="TheStageAI/whisper-medium"
)
# Initialize the backend
backend = StreamingBackend(config)
# Now use the backend as normal
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="TheStageAI/whisper-medium")