Instructions to use philipp-zettl/bart-large-cnn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use philipp-zettl/bart-large-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="philipp-zettl/bart-large-cnn")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("philipp-zettl/bart-large-cnn") model = AutoModelForSeq2SeqLM.from_pretrained("philipp-zettl/bart-large-cnn", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download decoder_model.onnx from philipp-zettl/bart-large-cnn: direct link, hf CLI and curl.
- Browser
- Download file 1.22 GB
-
https://huggingface.co/philipp-zettl/bart-large-cnn/resolve/main/decoder_model.onnx
- Command line
-
hf download hf://philipp-zettl/bart-large-cnn/decoder_model.onnx
-
curl -L -o decoder_model.onnx https://huggingface.co/philipp-zettl/bart-large-cnn/resolve/main/decoder_model.onnx
1.22 GB
- Xet hash:
- 8e7ca10c0c1f8b59072123c201da668538ab3905d9c8740bb13558f2d53bd7e6
- Size of remote file:
- 1.22 GB
- SHA256:
- dc456cbd109f3c21a0b6ccc0101737e022fcdcda31c3d1b6ea72627c475337ba
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.