Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Babelscape
/
mrebel-base

Translation
Transformers
PyTorch
Safetensors
m2m_100
text2text-generation
seq2seq
relation-extraction
Model card Files Files and versions
xet
Community
2

Instructions to use Babelscape/mrebel-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Babelscape/mrebel-base 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-base")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("Babelscape/mrebel-base")
    model = AutoModelForSeq2SeqLM.from_pretrained("Babelscape/mrebel-base")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
mrebel-base
3.88 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 16 commits
PereLluis13's picture
PereLluis13
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
233588d almost 3 years ago
  • .gitattributes
    1.48 kB
    initial commit almost 3 years ago
  • README.md
    7.85 kB
    Update README.md almost 3 years ago
  • added_tokens.json
    523 Bytes
    Update added_tokens.json almost 3 years ago
  • config.json
    938 Bytes
    add model almost 3 years ago
  • model.safetensors
    1.94 GB
    xet
    Adding `safetensors` variant of this model (#1) almost 3 years ago
  • pytorch_model.bin
    1.94 GB
    xet
    add model almost 3 years ago
  • sentencepiece.bpe.model
    2.42 MB
    xet
    add tokenizer almost 3 years ago
  • special_tokens_map.json
    1.6 kB
    Update special_tokens_map.json almost 3 years ago
  • tokenizer_config.json
    1.91 kB
    Update tokenizer_config.json almost 3 years ago
  • vocab.json
    3.71 MB
    add tokenizer almost 3 years ago