Instructions to use Helsinki-NLP/opus-mt-de-uk with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-de-uk 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-de-uk")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-de-uk") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-de-uk", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from Helsinki-NLP/opus-mt-de-uk: direct link, hf CLI and curl.
- Browser
- Download file 307 MB
-
https://huggingface.co/Helsinki-NLP/opus-mt-de-uk/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://Helsinki-NLP/opus-mt-de-uk/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/Helsinki-NLP/opus-mt-de-uk/resolve/main/pytorch_model.bin
307 MB
- Xet hash:
- 1af76a35103e143dd6ca7cf76fc047971c2e7888a55b017a3a8cd0b593737dbc
- Size of remote file:
- 307 MB
- SHA256:
- 32d98f46a3ec931ec2d9deaa07b9d26f33e2b30cb0fecc68ac8b2235bdcb4da2
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.