Instructions to use JustFrederik/m2m_100_418m_ct2_float16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JustFrederik/m2m_100_418m_ct2_float16 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("JustFrederik/m2m_100_418m_ct2_float16", dtype="auto") - Notebooks
- Google Colab
- Kaggle
https://huggingface.co/facebook/m2m100_418M
https://github.com/facebookresearch/fairseq/tree/nllb/examples/m2m_100
ct2-fairseq-converter --data_dir . --model_path 418M_last_checkpoint.pt --fixed_dictionary model_dict.128k.txt --quantization float16 --output_dir converted/m2m_100_418m_ct2_float16
External language dictionary is not provided; use lang-pairs to infer the set of supported languages. The language ordering is not stable which might cause misalignment in pretraining and finetuning.
wget https://dl.fbaipublicfiles.com/m2m_100/model_dict.128k.txt
# 418M parameter model
wget https://dl.fbaipublicfiles.com/m2m_100/418M_last_checkpoint.pt
- Downloads last month
- 7
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support