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

  • Log In
  • Sign Up

patrickvonplaten
/
roberta_shared_bbc_xsum

Summarization
Transformers
PyTorch
English
encoder-decoder
text2text-generation
Model card Files Files and versions
xet
Community
3

Instructions to use patrickvonplaten/roberta_shared_bbc_xsum with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use patrickvonplaten/roberta_shared_bbc_xsum 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="patrickvonplaten/roberta_shared_bbc_xsum")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("patrickvonplaten/roberta_shared_bbc_xsum")
    model = AutoModelForSeq2SeqLM.from_pretrained("patrickvonplaten/roberta_shared_bbc_xsum")
  • Notebooks
  • Google Colab
  • Kaggle
roberta_shared_bbc_xsum
616 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
julien-c's picture
julien-c HF Staff
Migrate model card from transformers-repo
7cc174b over 5 years ago
  • .gitattributes
    345 Bytes
    initial commit over 5 years ago
  • README.md
    503 Bytes
    Migrate model card from transformers-repo over 5 years ago
  • config.json
    3.64 kB
    Update config.json over 5 years ago
  • merges.txt
    456 kB
    Update merges.txt over 5 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    615 MB
    xet
    Update pytorch_model.bin over 5 years ago
  • special_tokens_map.json
    772 Bytes
    Update special_tokens_map.json over 5 years ago
  • tokenizer_config.json
    1.05 kB
    Update tokenizer_config.json over 5 years ago
  • vocab.json
    899 kB
    Update vocab.json over 5 years ago