Run this model with HF Jobs
Run predibase/tldr_headline_gen on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/predibase/tldr_headline_gen. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/predibase/tldr_headline_gen on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/predibase/tldr_headline_gen. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/predibase/tldr_headline_gen. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use predibase/tldr_headline_gen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use predibase/tldr_headline_gen with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1") model = PeftModel.from_pretrained(base_model, "predibase/tldr_headline_gen") - Notebooks
- Google Colab
- Kaggle
Description: Headline generation given news content
Original dataset: https://huggingface.co/datasets/JulesBelveze/tldr_news
---
Try querying this adapter for free in Lora Land at https://predibase.com/lora-land!
The adapter_category is Summarization and the name is News Headline Generation (tldr_news)
---
Sample input: The following passage is content from a news report. Please summarize this passage in one sentence or less.\n\nPassage: Jeffrey Berns, CEO of Blockchains LLC, wants the Nevada government to allow companies like his to form local governments on land they own, granting them power over everything from schools to law enforcement. Berns envisions a city based on digital currencies and blockchain storage. His company is proposing to build a 15,000 home town 12 miles east of Reno. Nevada Lawmakers have responded with intrigue and skepticism. The proposed legislation has yet to be formally filed or discussed in public hearings.\n\nSummary:
---
Sample output: Blockchain CEO wants to build a city in Nevada
---
Try using this adapter yourself!
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "mistralai/Mistral-7B-v0.1"
peft_model_id = "predibase/tldr_headline_gen"
model = AutoModelForCausalLM.from_pretrained(model_id)
model.load_adapter(peft_model_id)
- Downloads last month
- 73
Model tree for predibase/tldr_headline_gen
Base model
mistralai/Mistral-7B-v0.1