Instructions to use Babelscape/mrebel-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Babelscape/mrebel-large 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="Babelscape/mrebel-large")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Babelscape/mrebel-large") model = AutoModelForSeq2SeqLM.from_pretrained("Babelscape/mrebel-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
50e0587 -
Update README.md
645e329 -
Update README.md
2ee9ca3 -
Update README.md
37f3e35 -
Update README.md
8ef36bc -
Update README.md
5df3a7a -
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (5a9e10f31cc784ae49f475820b01852a7a5b2688) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>628ac2e -
Update README.md
4703bfa -
Update README.md
77f36ca
-
Update README.md
63151ea -
Update README.md
4736d5d -
Update README.md
d8d3783
-
Update README.md
44fe20b -
Update README.md
636d6bb -
Create README.md
7e209f6 -
add tokenizer
080970f -
add model
ffca624 -
initial commit
0e587bd