Instructions to use Helsinki-NLP/opus-mt-en-tn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-en-tn with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-tn")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-tn") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-tn", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 3c14537238c619d5d19ff5fc71422b71d075887bb52a319504047f50c5bd4b2c
- Size of remote file:
- 296 MB
- SHA256:
- f28aeff5ea6c30e0289ecd7a85b201c8e9896bd50c65a8adb68d257f1deb90d9
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.