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