Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

leukas
/
mt5-small-nc16-250k-deen

Translation
Transformers
PyTorch
German
English
t5
text2text-generation
text-generation-inference
Model card Files Files and versions
xet
Community
1

Instructions to use leukas/mt5-small-nc16-250k-deen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use leukas/mt5-small-nc16-250k-deen 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="leukas/mt5-small-nc16-250k-deen")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("leukas/mt5-small-nc16-250k-deen")
    model = AutoModelForSeq2SeqLM.from_pretrained("leukas/mt5-small-nc16-250k-deen", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
mt5-small-nc16-250k-deen
1.21 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 5 commits
leukas's picture
leukas
Update README.md
c433bb3 over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    749 Bytes
    Update README.md over 3 years ago
  • config.json
    737 Bytes
    Upload T5ForConditionalGeneration over 3 years ago
  • generation_config.json
    142 Bytes
    Upload T5ForConditionalGeneration over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "torch._utils._rebuild_tensor_v2",
    • "collections.OrderedDict",
    • "torch.FloatStorage"

    What is a pickle import?

    1.2 GB
    xet
    Upload T5ForConditionalGeneration over 3 years ago
  • special_tokens_map.json
    74 Bytes
    Upload tokenizer over 3 years ago
  • spiece.model
    4.31 MB
    xet
    Upload tokenizer over 3 years ago
  • tokenizer_config.json
    285 Bytes
    Upload tokenizer over 3 years ago