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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

philschmid
/
bart-base-samsum

Summarization
Transformers
PyTorch
English
bart
text2text-generation
sagemaker
Eval Results (legacy)
Model card Files Files and versions
xet
Community
3

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

  • Libraries
  • Transformers

    How to use philschmid/bart-base-samsum 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="philschmid/bart-base-samsum")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("philschmid/bart-base-samsum")
    model = AutoModelForSeq2SeqLM.from_pretrained("philschmid/bart-base-samsum")
  • Notebooks
  • Google Colab
  • Kaggle
bart-base-samsum
559 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 7 commits
lewtun's picture
lewtun HF Staff
Add evaluation results on samsum dataset
1641ce0 almost 4 years ago
  • .gitattributes
    690 Bytes
    initial commit about 5 years ago
  • README.md
    3.77 kB
    Add evaluation results on samsum dataset almost 4 years ago
  • all_results.json
    742 Bytes
    commit files to HF hub about 5 years ago
  • config.json
    1.68 kB
    commit files to HF hub about 5 years ago
  • eval_results.json
    310 Bytes
    commit files to HF hub about 5 years ago
  • merges.txt
    456 kB
    commit files to HF hub about 5 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    558 MB
    xet
    commit files to HF hub about 5 years ago
  • special_tokens_map.json
    239 Bytes
    commit files to HF hub about 5 years ago
  • tokenizer_config.json
    295 Bytes
    commit files to HF hub about 5 years ago
  • train_results.json
    452 Bytes
    commit files to HF hub about 5 years ago
  • trainer_state.json
    517 Bytes
    commit files to HF hub about 5 years ago
  • training_args.bin

    Detected Pickle imports (4)

    • "transformers.trainer_utils.SchedulerType",
    • "torch.device",
    • "transformers.training_args_seq2seq.Seq2SeqTrainingArguments",
    • "transformers.trainer_utils.IntervalStrategy"

    How to fix it?

    2.35 kB
    xet
    commit files to HF hub about 5 years ago
  • vocab.json
    798 kB
    commit files to HF hub about 5 years ago