Instructions to use mehdielg/primera-billsum-arxiv with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use mehdielg/primera-billsum-arxiv with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("allenai/PRIMERA") model = PeftModel.from_pretrained(base_model, "mehdielg/primera-billsum-arxiv") - Transformers
How to use mehdielg/primera-billsum-arxiv 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="mehdielg/primera-billsum-arxiv")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mehdielg/primera-billsum-arxiv", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Ctrl+K
mehdi
docs: rewrite README โ correct method (bf16 LoRA, not QLoRA) and chain lineage
959d37c verified