rag-assign-cross-encoder
2026-2 RAG ๊ณผ์ ์ฉ cross-encoder reranker. google/electra-base-discriminator ์์ ์์ํด ๊ณผ์ ์ ๊ณต ๋ฐ์ดํฐ๋ก ํ์ต.
์
๋ ฅ: (question, f"{title} | {text}"), ์ถ๋ ฅ: logits[:, 0] ๊ด๋ จ์ฑ ์ ์. BM25 ์์ 100 ์ ์ด ์ ์๋ก ์ฌ์ ๋ ฌ.
- ํ์ต: ์ง๋ฌธ๋ง๋ค gold 1 + negative 7 ๊ทธ๋ฃน์์ gold ๋ฅผ ๊ณ ๋ฅด๋ cross-entropy
- negative ํ๋ณด: BM25 ์์ 100 ์
yali98/rag-assign-dpr๋ก ์ฌ์ ๋ ฌํ ์์ 30 + qrels hard_neg (goldยทweak_pos, ์ ๋ต ๋ฌธ์์ด ํฌํจ ๋ฌธ์ ์ ์ธ) โ ๋ฐ์ดํฐ์ yali98/rag-assign-ce-negatives - ํ์ต ์ง๋ฌธ 57880๊ฐ (val 1,000 ์ ์ธ), best: epoch 2 (val gold MRR + gold/weak_pos@1 ๊ธฐ์ค)
- ํ์ต GPU: RTX 3080 (bf16 autocast), epoch ๋น ์ฝ 28๋ถ
| hyperparameter | value |
|---|---|
| epochs | 2 |
| lr | 2e-05 |
| q_per_batch | 8 |
| group | 8 |
| max_len | 224 |
| neg_depth | 30 |
| warmup_ratio | 0.1 |
| weight_decay | 0.01 |
| grad_clip | 1.0 |
| seed | 42 |
val ๊ธฐ๋ก: history.json
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tok = AutoTokenizer.from_pretrained("yali98/rag-assign-cross-encoder")
model = AutoModelForSequenceClassification.from_pretrained("yali98/rag-assign-cross-encoder")
- Downloads last month
- 8
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support
Model tree for yali98/rag-assign-cross-encoder
Base model
google/electra-base-discriminator