zjunlp/OneGen

[EMNLP 2024] OneGen: Efficient One-Pass Unified Generation and Retrieval for LLMs.

39
/ 100
Emerging

Integrates token-level role assignment (GEN, CTX, RET) during training to apply cross-entropy loss for generation tokens and contrastive loss for retrieval tokens, enabling joint learning in a single forward pass. Supports multiple downstream tasks (entity linking, single/multi-hop QA) with Llama2-7B checkpoints across HuggingFace, ModelScope, and WiseModel, while leveraging Faiss for efficient vector retrieval at inference time without requiring separate query encoding passes.

147 stars. No commits in the last 6 months.

Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 13 / 25

How are scores calculated?

Stars

147

Forks

15

Language

Python

License

MIT

Last pushed

Nov 13, 2024

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/rag/zjunlp/OneGen"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.