Instructions to use spolivin/bart-arxiv-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use spolivin/bart-arxiv-lora 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="spolivin/bart-arxiv-lora")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("spolivin/bart-arxiv-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download arxiv_summarization_lora.ipynb from spolivin/bart-arxiv-lora: direct link, hf CLI and curl.
- Browser
- Download file 464 kB
-
https://huggingface.co/spolivin/bart-arxiv-lora/resolve/main/arxiv_summarization_lora.ipynb
- Command line
-
hf download hf://spolivin/bart-arxiv-lora/arxiv_summarization_lora.ipynb
-
curl -L -o arxiv_summarization_lora.ipynb https://huggingface.co/spolivin/bart-arxiv-lora/resolve/main/arxiv_summarization_lora.ipynb
464 kB