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

0x70DA
/
pegasus-cnn_dailymail

Summarization
Transformers
PyTorch
pegasus
text2text-generation
Model card Files Files and versions
xet
Community
7

Instructions to use 0x70DA/pegasus-cnn_dailymail with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use 0x70DA/pegasus-cnn_dailymail 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="0x70DA/pegasus-cnn_dailymail")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("0x70DA/pegasus-cnn_dailymail")
    model = AutoModelForSeq2SeqLM.from_pretrained("0x70DA/pegasus-cnn_dailymail", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
pegasus-cnn_dailymail
2.29 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
MahmoudH's picture
MahmoudH
Create README.md
e181a2c over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    35 Bytes
    Create README.md over 3 years ago
  • config.json
    1.32 kB
    Upload PegasusForConditionalGeneration over 3 years ago
  • generation_config.json
    275 Bytes
    Upload PegasusForConditionalGeneration over 3 years ago
  • pytorch_model.bin
    2.28 GB
    xet
    Upload PegasusForConditionalGeneration over 3 years ago
  • special_tokens_map.json
    1.77 kB
    Upload tokenizer over 3 years ago
  • spiece.model
    1.91 MB
    xet
    Upload tokenizer over 3 years ago
  • tokenizer.json
    6.6 MB
    Upload tokenizer over 3 years ago
  • tokenizer_config.json
    2.03 kB
    Upload tokenizer over 3 years ago