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