Instructions to use facebook/mms-1b-all with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/mms-1b-all with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="facebook/mms-1b-all")# Load model directly from transformers import AutoProcessor, AutoModelForCTC processor = AutoProcessor.from_pretrained("facebook/mms-1b-all") model = AutoModelForCTC.from_pretrained("facebook/mms-1b-all") - Notebooks
- Google Colab
- Kaggle
OSError: facebook/mms-1b-all does not appear to have a file named adapter.cmn.bin. Checkout 'https://huggingface.co/facebook/mms-1b-all/main' for available files.
#17
by xiongcai - opened
How to load the mms-1b-all model for Chinese, Mandarin? I find the iso code of Chinese, Mandarin is cmn at this page: https://dl.fbaipublicfiles.com/mms/misc/language_coverage_mms.html, but when I load the model by :
model = model = Wav2Vec2ForCTC.from_pretrained(model_id, target_lang='cmn', ignore_mismatched_sizes=True)
but the above Error is occurred.