Model Card for Model ID
Article in medium: https://medium.com/ai-simplified-in-plain-english/the-unified-brain-how-voxtral-accelerates-the-agentic-ai-revolution-15a8edced1f2
Github: https://github.com/frank-morales2020/MLxDL/blob/main/FT_V2TXT_DEMO.ipynb
Model Details
Model Description
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
- Developed by: [More Information Needed]
- Funded by [optional]: [More Information Needed]
- Shared by [optional]: [More Information Needed]
- Model type: [More Information Needed]
- Language(s) (NLP): [More Information Needed]
- License: [More Information Needed]
- Finetuned from model [optional]: [More Information Needed]
Model Sources [optional]
- Repository: [More Information Needed]
- Paper [optional]: [More Information Needed]
- Demo [optional]: [More Information Needed]
Uses
Direct Use
import torch
import librosa
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
# 1. Configuration - Pointing to your new HF repository
REPO_ID = "frankmorales2020/Voxtral-Mini-4B-H2E-FineTune"
AUDIO_PATH = "barackobama2004dncARXE.mp3" # Or any test file
# 2. Load Model and Processor directly from Hugging Face
print(f"📡 Loading model from HF: {REPO_ID}...")
processor = AutoProcessor.from_pretrained(REPO_ID, trust_remote_code=True)
model = AutoModelForSpeechSeq2Seq.from_pretrained(
REPO_ID,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
model.eval()
# 3. Audio Preprocessing
speech, sr = librosa.load(AUDIO_PATH, sr=16000)
# 4. Transcription Logic
print("🎙️ Transcribing...")
# Voxtral recommends temperature 0.0 for best accuracy
inputs = processor(audio=speech[:16000*20], sampling_rate=16000, return_tensors="pt")
input_features = inputs.input_features.to(model.device, dtype=torch.bfloat16)
with torch.no_grad():
generated_ids = model.generate(
input_features=input_features,
max_new_tokens=1024,
do_sample=False, # Equivalent to temperature 0.0
use_cache=True
)
transcription = processor.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(f"\n✅ Result: {transcription.strip()}")
✅ Result: Thank you so much. Thank you so much. Thank you. Thank you. Thank you, Dick Durbin. You make us all proud. On behalf of the great state of Illinois.
[More Information Needed]
Downstream Use [optional]
[More Information Needed]
Out-of-Scope Use
[More Information Needed]
Bias, Risks, and Limitations
[More Information Needed]
Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
Training Details
Training Data
[More Information Needed]
Training Procedure
Preprocessing [optional]
[More Information Needed]
Training Hyperparameters
- Training regime: [More Information Needed]
Speeds, Sizes, Times [optional]
[More Information Needed]
Evaluation
Testing Data, Factors & Metrics
Testing Data
[More Information Needed]
Factors
[More Information Needed]
Metrics
[More Information Needed]
Results
[More Information Needed]
Summary
Model Examination [optional]
[More Information Needed]
Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: [More Information Needed]
- Hours used: [More Information Needed]
- Cloud Provider: [More Information Needed]
- Compute Region: [More Information Needed]
- Carbon Emitted: [More Information Needed]
Technical Specifications [optional]
Model Architecture and Objective
[More Information Needed]
Compute Infrastructure
[More Information Needed]
Hardware
[More Information Needed]
Software
[More Information Needed]
Citation [optional]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
Glossary [optional]
[More Information Needed]
More Information [optional]
[More Information Needed]
Model Card Authors [optional]
[More Information Needed]
Model Card Contact
[More Information Needed]
- Downloads last month
- 48