Instructions to use dlaima/bart-lora-highlightsum with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use dlaima/bart-lora-highlightsum with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("facebook/bart-large-cnn") model = PeftModel.from_pretrained(base_model, "dlaima/bart-lora-highlightsum") - Transformers
How to use dlaima/bart-lora-highlightsum with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("dlaima/bart-lora-highlightsum", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from dlaima/bart-lora-highlightsum: direct link, hf CLI and curl.
- Browser
- Download file 3.56 MB
-
https://huggingface.co/dlaima/bart-lora-highlightsum/resolve/main/tokenizer.json
- Command line
-
hf download hf://dlaima/bart-lora-highlightsum/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/dlaima/bart-lora-highlightsum/resolve/main/tokenizer.json
3.56 MB
File too large to display, you can check the raw version instead.