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 ·
5918ef4
1
Parent(s): 618c352
Update README.md
Browse files8 unmodified lines9101112131415168 unmodified linesdatasets:- samsumwidget:- text: "Jeff: Can I train a 🤗 Transformers model on Amazon SageMaker? "- text: "Philipp: Sure you can use the new Hugging Face Deep Learning Container.."---## `bart-base-samsum`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`
README.md+7-2