Instructions to use facebook/m2m100_418M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/m2m100_418M with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("facebook/m2m100_418M") model = AutoModelForSeq2SeqLM.from_pretrained("facebook/m2m100_418M") - Notebooks
- Google Colab
- Kaggle
How to achieve multilinguial with inference API
#11
by prathmeshadsod - opened
I am not able to find how we can use this model to get control on source and target language with using API. Source language we can give as a input but target it is only able to translate in Portuguese. Can you give me sample code in API or something like that.
@prathmeshadsod Visit this link : https://huggingface.co/facebook/mbart-large-50-many-to-many-mmt/discussions/10#651556fc47e76a9dea5ea973
You can find the API to pass both source and target language. But the model is different . The model used is mbart50-large-many-to-many-mmt for text translation.