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