|
Download README.md from igorlucic/TranslatingText: direct link, hf CLI and curl.
- Browser
- Download file 220 Bytes
-
https://huggingface.co/igorlucic/TranslatingText/resolve/main/README.md
- Command line
-
hf download hf://igorlucic/TranslatingText/README.md
-
curl -L -o README.md https://huggingface.co/igorlucic/TranslatingText/resolve/main/README.md
220 Bytes
metadata
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'))