Fine-tuned by Harman Sandhu
SYSTEM C · FINE-TUNE + RETRIEVAL · RAG

Gemma 2 2B · Yu-Gi-Oh RAG

The same fine-tune, now with a hybrid retriever (MiniLM + BM25, top-5 over 42,412 chunks) feeding it the actual passages before it answers. This is where the facts arrive — correctness jumps and it becomes the decisive winner of the experiment.

A · Base
Google weights
B · Fine-tune
QLoRA · closed
C · +Retrieval
RAG · winner
8.05
Judge /10
3.85
Correctness /5
1.65
Groundedness /2
0.93
Recall@5
42,412
Chunks
top-5
Retrieved
interactiveconnecting…

Ask this system a question

Connecting to the inference endpoint…
The model's answer will appear here.
what this is

The winner (+2.80 over the closed fine-tune, p < 0.001). Retrieval supplies the facts the weights never held: correctness climbs 2.35 → 3.85 and groundedness 0.87 → 1.65 — but only once real passages are in the prompt.

The thesis in one screen: fine-tuning taught the shape, retrieval supplied the facts. Every answer below shows the passages the retriever fed in.

Architecture
ClassGemma2ForCausalLM
Layers26
Hidden size2,304
Attention8 heads / 4 KV · dim 256 · GQA
Feed-forwardGeGLU · inner 9,216
Attention windowsliding 4,096 · logit soft-cap
NormRMSNorm
Context8,192 tokens
Vocabulary256,128
Embeddingstied input/output
Training
Init fromgemma-2-2b-it · 4-bit NF4
MethodQLoRA · rank-16 / α-32
Targetsall linear modules
Trainable params20.8M LoRA (~0.8%)
ScheduleLR 2e-4 cosine · seq 512 · bf16
Data2,683 QA pairs · early-stopped ~1 epoch
Val perplexity3.87 (ref 4.26)
HardwareModal L4
RetrieverMiniLM-L6 + BM25 · RRF
IndexFAISS flat · 42,412 chunks
Top-k5 · recall@5 0.93
Corpus used for training

What the fine-tune was built from

The fine-tune's supervised set is 2,683 grounded QA pairs, distilled by a teacher LLM from a curated Yu-Gi-Oh corpus and filtered through a blind-judge gauntlet. That corpus is two free sources: Yugipedia editorial prose (CC BY-SA 4.0, attributed) and YGOPRODeck card facts. Card effect text is © Konami, used only as labelled fair-use context — never a verbatim-recall target.

Corpus split · 27.5 MB across sources

SourceRoleLicenseSizeShare
Yugipedia · tipsrulings & interactionsCC BY-SA 4.08.47 MB31%
Yugipedia · rulingsrulingsCC BY-SA 4.05.90 MB22%
YGOPRODeck · card factscard identity (stats + fair-use text)free / © Konami6.04 MB22%
Yugipedia · archetypemechanicsCC BY-SA 4.02.74 MB10%
Yugipedia · lore (ep + char)loreCC BY-SA 4.03.92 MB14%
Yugipedia · mechanicsglossaryCC BY-SA 4.00.40 MB1%

78% free-licensed Yugipedia prose (20.7 MB cleaned, clears the 20 MB floor) + 22% card facts. Of the prose, ~82% is on-target rulings/interactions and ~18% is lore. Card knowledge is a YGOPRODeck snapshot fetched 2026-08-01.