M2M100 418M M2M100 is a multilingual encoder decoder (seq to seq) model trained for Many to Many multilingual translation. It was introduced in this paper and first released in this repository. The model that can directly translate between the 9,900 directions of 100 languages. To translate into a target language, the target language id is forced as the first generated token. To force the target language id as the first generated token, pass the forced bos token id parameter to the generate method. Note: M2M100Tokenizer depends on sentencepiece , so make sure to install it before running the example. To install sentencepiece run pip install sentencepiece See the model hub to look for more fine tuned versions. Languages covered Afrikaans (af), Amharic (am), Arabic (ar), Asturian (ast), Azerbaijani (az), Bashkir (ba), Belarusian (be), Bulgarian (bg), Bengali (bn), Breton (br), Bosnian (bs), Catalan; Valencian (ca), Cebuano (ceb), Czech (cs), Welsh (cy), Danish (da), German (de), Greeek (el), English (en), Spanish (es), Estonian (et), Persian (fa), Fulah (ff), Finnish (fi), French (fr), Western Frisian (fy), Irish (ga), Gaelic; Scottish Gaelic (gd), Galician (gl), Gujarati (gu), Hausa…
We use cookies for essential functionality and analytics. You can accept or reject analytics cookies.Cookie policy