Downloads · 30 days
0
rhordoancc/drag-improved-checkpoints
drag-improved-checkpoints is a question answering model from rhordoancc. Use it when the input is a question plus a passage. The card lists the license as mit.
Pre-trained retriever checkpoints and heuristics for D-RAG: Differentiable Retrieval-Augmented Generation.
Downloads · 30 days
0
Access
Public
Updated Dec 23, 2025
Repo size
731 MB
Likes
0
Public
Click a slice to open those files.
.pt603 MB · 83%
From the Hugging Face model README
Pre-trained retriever checkpoints and heuristics for D-RAG: Differentiable Retrieval-Augmented Generation.
| File | Size | Description |
|---|---|---|
checkpoints_cwq_subgraph/phase1_best.pt | 288 MB | CWQ retriever (27,613 samples, 10 epochs) |
checkpoints_webqsp_subgraph/phase1_best.pt | 288 MB | WebQSP retriever (2,826 samples, 10 epochs) |
data/train_heuristics_cwq.jsonl | 111 MB | CWQ heuristics with per-question subgraphs |
data/train_heuristics_webqsp_subgraph.jsonl | 12 MB | WebQSP heuristics with per-question subgraphs |
Total size: ~700 MB
git clone https://github.com/rhordoan/drag-improved.git
cd drag-improved
./scripts/setup_environment.sh # Downloads checkpoints automatically
# Using Python script
python scripts/download_checkpoints.py
# Or using huggingface-cli
huggingface-cli download rhordoan/drag-improved-checkpoints \
checkpoints_cwq_subgraph/phase1_best.pt \
--local-dir .
import torch
from src.model.retriever import DRAGRetriever
# Load checkpoint
checkpoint = torch.load('checkpoints_cwq_subgraph/phase1_best.pt')
# Initialize retriever
retriever = DRAGRetriever(
node_dim=256,
edge_dim=256,
hidden_dim=256,
instruction_dim=384,
relation_dim=256,
num_reasoning_steps=3
)
# Load weights
retriever.load_state_dict(checkpoint['model_state_dict'])
rmanluo/RoG-cwq (Hugging Face)rmanluo/RoG-webqsp (Hugging Face)DRAGRetriever (GNN-based fact retriever):
Training config:
@article{drag2024,
title={D-RAG: Differentiable Retrieval-Augmented Generation},
journal={arXiv preprint},
year={2024}
}
MIT License - See repository for details.