Instructions to use Helsinki-NLP/opus-mt-en-cpp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-en-cpp 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-cpp")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-cpp") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-cpp") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 374efcad08e5dafe1eb98c8b956a7176f8ccc862859a4c507fb151f9c4afcd1b
- Size of remote file:
- 298 MB
- SHA256:
- b2a9ea68b6a011d4d40685cb6308a8b521b01377842db65f029a771a14e92cd5
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.