Summarization
Transformers
PyTorch
English
bart
text2text-generation
sagemaker
Eval Results (legacy)
Run this model with HF Jobs
Run philschmid/bart-base-samsum on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/philschmid/bart-base-samsum. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/philschmid/bart-base-samsum on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("philschmid/bart-base-samsum") model = AutoModelForSeq2SeqLM.from_pretrained("philschmid/bart-base-samsum", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
807745b
1
Parent(s): 38a5b89
Add evaluation results on samsum dataset (#1)
Browse files- Add evaluation results on samsum dataset (1641ce08c58858b7757e7006f8e90afab049ae7b)
Co-authored-by: Evaluation Bot <autoevaluator@users.noreply.huggingface.co>
8 unmodified lines91011121314151617181920218 unmodified linesdatasets:- samsumwidget:- text: |Jeff: Can I train a 🤗 Transformers model on Amazon SageMaker?Philipp: Sure you can use the new Hugging Face Deep Learning Container.Jeff: ok.Jeff: and how can I get started?Jeff: where can I find documentation?Philipp: ok, ok you can find everything here. https://huggingface.co/blog/the-partnership-amazon-sagemaker-and-hugging-face---## `bart-base-samsum`8 unmodified lines9101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354558 unmodified linesdatasets:- samsumwidget:- text: "Jeff: Can I train a \U0001F917 Transformers model on Amazon SageMaker? \n\Philipp: Sure you can use the new Hugging Face Deep Learning Container. \nJeff:\\ ok.\nJeff: and how can I get started? \nJeff: where can I find documentation?\\ \nPhilipp: ok, ok you can find everything here. https://huggingface.co/blog/the-partnership-amazon-sagemaker-and-hugging-face\\ "model-index:- name: philschmid/bart-base-samsumresults:- task:type: summarizationname: Summarizationdataset:name: samsumtype: samsumconfig: samsumsplit: testmetrics:- name: ROUGE-1type: rougevalue: 45.3438verified: true- name: ROUGE-2type: rougevalue: 21.6953verified: true- name: ROUGE-Ltype: rougevalue: 38.1365verified: true- name: ROUGE-LSUMtype: rougevalue: 41.5913verified: true- name: losstype: lossvalue: 1.5832244157791138verified: true- name: gen_lentype: gen_lenvalue: 17.9927verified: true---## `bart-base-samsum`
README.md+41-7