Downloads · 30 days
20
50% of all-time downloads
nidhipandya/NewsScope-lora
NewsScope-lora is a text generation model from nidhipandya. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
This repository contains a LoRA adapter fine-tuned for schema-grounded claim extraction from news articles.
Downloads · 30 days
20
50% of all-time downloads
All-time downloads
40
Public
Repo size
185 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 91%
From the Hugging Face model README
This repository contains a LoRA adapter fine-tuned for schema-grounded claim extraction from news articles.
It produces structured JSON outputs with:
You must accept the Meta LLaMA license for the base model on Hugging Face:
meta-llama/Meta-Llama-3.1-8B-Instruct
Then either:
huggingface-cli login, orHF_TOKEN in your environment.from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base = AutoModelForCausalLM.from_pretrained(
"meta-llama/Meta-Llama-3.1-8B-Instruct",
torch_dtype=torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(base_model, "nidhipandya/NewsScope-lora")
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3.1-8B-Instruct")
@article{pandyaNewsscope,
title={NewsScope: Schema-Grounded Cross-Domain News Claim Extraction with Open Models},
author={Pandya, Nidhi},
journal={arXiv preprint arXiv:TBD},
year={TBD}
}