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

  • Log In
  • Sign Up

ainize
/
bart-base-cnn

Summarization
Transformers
PyTorch
English
bart
feature-extraction
Model card Files Files and versions
xet
Community
6

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

  • Libraries
  • Transformers

    How to use ainize/bart-base-cnn 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="ainize/bart-base-cnn")
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("ainize/bart-base-cnn")
    model = AutoModel.from_pretrained("ainize/bart-base-cnn")
  • Notebooks
  • Google Colab
  • Kaggle
bart-base-cnn
559 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
byeongal's picture
byeongal
Update README.md
b90bc9a almost 5 years ago
  • .gitattributes
    690 Bytes
    initial commit almost 5 years ago
  • README.md
    3.96 kB
    Update README.md almost 5 years ago
  • config.json
    1.55 kB
    bart-base-cnn almost 5 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    558 MB
    xet
    bart-base-cnn almost 5 years ago
  • special_tokens_map.json
    239 Bytes
    bart-base-cnn almost 5 years ago
  • tokenizer.json
    1.36 MB
    bart-base-cnn almost 5 years ago
  • tokenizer_config.json
    261 Bytes
    bart-base-cnn almost 5 years ago