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

  • Log In
  • Sign Up

sdadas
/
mt5-base-translator-pl-en

Translation
Transformers
PyTorch
Safetensors
Polish
English
mt5
text2text-generation
Model card Files Files and versions
xet
Community
1

Instructions to use sdadas/mt5-base-translator-pl-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use sdadas/mt5-base-translator-pl-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="sdadas/mt5-base-translator-pl-en")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("sdadas/mt5-base-translator-pl-en")
    model = AutoModelForSeq2SeqLM.from_pretrained("sdadas/mt5-base-translator-pl-en")
  • Notebooks
  • Google Colab
  • Kaggle
mt5-base-translator-pl-en
4.68 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 6 commits
sdadas's picture
sdadas
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
e848cb5 about 3 years ago
  • .gitattributes
    1.53 kB
    Upload tokenizer about 3 years ago
  • README.md
    67 Bytes
    Update README.md about 3 years ago
  • config.json
    817 Bytes
    Upload MT5ForConditionalGeneration about 3 years ago
  • model.safetensors
    2.33 GB
    xet
    Adding `safetensors` variant of this model (#1) about 3 years ago
  • pytorch_model.bin
    2.33 GB
    xet
    Upload MT5ForConditionalGeneration about 3 years ago
  • special_tokens_map.json
    74 Bytes
    Upload tokenizer about 3 years ago
  • spiece.model
    4.31 MB
    xet
    Upload tokenizer about 3 years ago
  • tokenizer.json
    16.3 MB
    xet
    Upload tokenizer about 3 years ago
  • tokenizer_config.json
    532 Bytes
    Upload tokenizer about 3 years ago