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