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

josmunpen
/
mt5-small-spanish-summarization

Summarization
Transformers
PyTorch
Spanish
mt5
text2text-generation
spanish
Model card Files Files and versions
xet
Community
3

Instructions to use josmunpen/mt5-small-spanish-summarization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use josmunpen/mt5-small-spanish-summarization with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "summarization" 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("summarization", model="josmunpen/mt5-small-spanish-summarization", device_map="auto")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("josmunpen/mt5-small-spanish-summarization")
    model = AutoModelForSeq2SeqLM.from_pretrained("josmunpen/mt5-small-spanish-summarization", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
mt5-small-spanish-summarization
2.41 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 22 commits
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model
addee6b about 3 years ago
  • .gitattributes
    744 Bytes
    Adding `safetensors` variant of this model about 3 years ago
  • README.md
    2.99 kB
    Update README.md over 4 years ago
  • config.json
    648 Bytes
    Modelo entrenado about 5 years ago
  • model.safetensors
    1.2 GB
    xet
    Adding `safetensors` variant of this model about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    1.2 GB
    xet
    Modelo entrenado about 5 years ago
  • special_tokens_map.json
    65 Bytes
    Modelo entrenado about 5 years ago
  • spiece.model
    4.31 MB
    xet
    Modelo entrenado about 5 years ago
  • tokenizer.json
    8.33 MB
    Modelo entrenado about 5 years ago
  • tokenizer_config.json
    350 Bytes
    Modelo entrenado about 5 years ago
  • training_args.bin

    Detected Pickle imports (4)

    • "torch.device",
    • "transformers.training_args_seq2seq.Seq2SeqTrainingArguments",
    • "transformers.trainer_utils.SchedulerType",
    • "transformers.trainer_utils.IntervalStrategy"

    How to fix it?

    2.48 kB
    xet
    Modelo entrenado about 5 years ago