Automatic Speech Recognition
Transformers
Safetensors
seamless_m4t_v2
feature-extraction
audio-to-audio
text-to-speech
seamless_communication
Instructions to use facebook/seamless-m4t-v2-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/seamless-m4t-v2-large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="facebook/seamless-m4t-v2-large")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("facebook/seamless-m4t-v2-large") model = AutoModel.from_pretrained("facebook/seamless-m4t-v2-large") - Notebooks
- Google Colab
- Kaggle
Model v2 usage
#9
by alielfilali01 - opened
Hi, @Ali-C137!
I can load the model with the instructions form the SeamlessM4T v2 documentation
from transformers import AutoProcessor, SeamlessM4Tv2Model
processor = AutoProcessor.from_pretrained("facebook/seamless-m4t-v2-large")
model = SeamlessM4Tv2Model.from_pretrained("facebook/seamless-m4t-v2-large")
Hi, @Ali-C137!
I can load the model with the instructions form the SeamlessM4T v2 documentationfrom transformers import AutoProcessor, SeamlessM4Tv2Model processor = AutoProcessor.from_pretrained("facebook/seamless-m4t-v2-large") model = SeamlessM4Tv2Model.from_pretrained("facebook/seamless-m4t-v2-large")
I did the same by following the documentation as well ๐ I will try again tomorrow and see !?
alielfilali01 changed discussion status to closed
You need to make sure you are using the latest transformers from main:
$ pip install --upgrade git+https://github.com/huggingface/transformers.git

