Instructions to use ai-maker-space/Transformers-Workshop-BART-Summarization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ai-maker-space/Transformers-Workshop-BART-Summarization 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="ai-maker-space/Transformers-Workshop-BART-Summarization")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ai-maker-space/Transformers-Workshop-BART-Summarization") model = AutoModelForSeq2SeqLM.from_pretrained("ai-maker-space/Transformers-Workshop-BART-Summarization", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Chris Alexiuk9763b05 -
Update README.md
Chris Alexiukad4c781 -
ai-maker-space/Transformers-Workshop-BART-Summarization
Chris Alexiukfdd5062 -
AI Maker Space/Transformers-Workshop-BART-Summarization
Chris Alexiukc42aca5 -
Upload folder using huggingface_hub
Chris Alexiuka117781 -
initial commit
e4bdd50