Downloads · 30 days
15
19% of all-time downloads
AnjanSB/Qwen2.5-3B-Instruct-NQ-RAG-DPO-LoRA
Qwen2.5-3B-Instruct-NQ-RAG-DPO-LoRA is a text generation model from AnjanSB. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
This repository contains a LoRA adapter fine-tuned using Direct Preference Optimization (DPO) over a Retrieval-Augmented Generation (RAG) evaluation pipeline built on the Natural Questions validation set.
Downloads · 30 days
15
19% of all-time downloads
All-time downloads
80
Public
Repo size
14.8 MB
Likes
0
Public
Click a slice to open those files.
.safetensors14.8 MB · 100%
From the Hugging Face model README
This repository contains a LoRA adapter fine-tuned using Direct Preference Optimization (DPO) over a Retrieval-Augmented Generation (RAG) evaluation pipeline built on the Natural Questions validation set.
Base Model: Qwen/Qwen2.5-3B-Instruct
RAG responses generated over NQ validation split
Responses scored using custom reward signals:
Faithfulness
Citation usage
Hallucination detection
Refusal detection
Preference pairs constructed using margin filtering
LoRA fine-tuning using DPO
This model is trained and evaluated using:
Dataset repository:
AnjanSB/NQ-RAG-DPO-Evaluation
Configurations used:
rag_responses (base + trained generations)
responses_scores (reward signals)
dpo_train_data (preference dataset)
comparison_metrics (evaluation results)
| Metric | Base Model | Trained Model | Train Data |
|---|---|---|---|
| Mean Responses Margin | 0.4246 | 0.3612 | 2.1835 |
| Total Prompts | 1500 | 1500 | 228 |
| Mean Total Reward | 0.8378 | 0.8356 | 0.8582 |
| Faithfulness | 0.4300 | 0.4370 | 0.5307 |
| Citation Score | 0.8353 | 0.8683 | 0.8035 |
| Hallucination | 0.1974 | 0.1842 | 0.1095 |
The Train Data which is used to train base model indicates small in size(228 Total records) and high quality(2.18 a significant jump of mean response margin between choosen and rejected responses of a same prompt).
The trained model shows:
Significantly improved responses margin which indicates stable responses.
Improved citation usage
Reduced hallucination
Slightly improved faithfulness
Stable refusal behavior
AnjanSB
Experiment Repo : https://dagshub.com/AnjanSB/RAG-DPO-PEFT-LLMOPS
Profile : https://www.linkedin.com/in/anjansb/