license:cc region:us
---
license: cc
---

pip install transformers sentencepiece

pipe = pipeline(task='text2text-generation', model='facebook/m2m100_418M')

pipe("That is a flower", forced_bos_token_id=pipe.tokenizer.get_lang_id(lang='zh'))