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

  • Log In
  • Sign Up

twwch
/
mt5-base-summary

Summarization
Transformers
PyTorch
Safetensors
Chinese
t5
text2text-generation
text-generation-inference
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • Transformers

    How to use twwch/mt5-base-summary 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="twwch/mt5-base-summary")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("twwch/mt5-base-summary")
    model = AutoModelForSeq2SeqLM.from_pretrained("twwch/mt5-base-summary")
  • Notebooks
  • Google Colab
  • Kaggle
mt5-base-summary
4.66 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 7 commits
twwch's picture
twwch
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
06b2098 verified almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    6.7 kB
    Update README.md over 2 years ago
  • added_tokens.json
    44 Bytes
    Upload 7 files over 2 years ago
  • config.json
    838 Bytes
    Upload 7 files over 2 years ago
  • generation_config.json
    163 Bytes
    Update generation_config.json over 2 years ago
  • model.safetensors
    2.33 GB
    xet
    Adding `safetensors` variant of this model (#1) almost 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    2.33 GB
    xet
    Upload 7 files over 2 years ago
  • special_tokens_map.json
    74 Bytes
    Upload 7 files over 2 years ago
  • spiece.model
    4.31 MB
    xet
    Upload 7 files over 2 years ago
  • tokenizer_config.json
    853 Bytes
    Upload 7 files over 2 years ago