Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

MHkhan50
/
newssum-bart-base-bbc

Summarization
Transformers
ONNX
Safetensors
English
bart
text2text-generation
news
bbc
newssum
Model card Files Files and versions
xet
Community

Instructions to use MHkhan50/newssum-bart-base-bbc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use MHkhan50/newssum-bart-base-bbc 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="MHkhan50/newssum-bart-base-bbc")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("MHkhan50/newssum-bart-base-bbc")
    model = AutoModelForSeq2SeqLM.from_pretrained("MHkhan50/newssum-bart-base-bbc", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
newssum-bart-base-bbc
905 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
MHkhan50's picture
MHkhan50
Add quantised ONNX for Transformers.js
fedddd9 verified 12 days ago
  • onnx
    Add quantised ONNX for Transformers.js 12 days ago
  • .gitattributes
    1.52 kB
    initial commit 12 days ago
  • README.md
    3.67 kB
    Add model card 12 days ago
  • config.json
    1.62 kB
    Upload NewsSum V2 checkpoint 12 days ago
  • generation_config.json
    313 Bytes
    Upload NewsSum V2 checkpoint 12 days ago
  • model.safetensors
    279 MB
    xet
    Upload NewsSum V2 checkpoint 12 days ago
  • newssum_meta.json
    101 Bytes
    Upload NewsSum V2 checkpoint 12 days ago
  • tokenizer.json
    3.56 MB
    Upload NewsSum V2 checkpoint 12 days ago
  • tokenizer_config.json
    416 Bytes
    Upload NewsSum V2 checkpoint 12 days ago