Instructions to use Helsinki-NLP/opus-mt-tpi-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-tpi-en 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-tpi-en")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-tpi-en") model = AutoModelForMultimodalLM.from_pretrained("Helsinki-NLP/opus-mt-tpi-en") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
019da88 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:1eba6c8bf44799e580bc6739d780344cb48a2fe0ceda8ac4c6fd0bbd7771ee83
size 279741333
|