ALIGNED BY HARMAN SANDHU
DPO · DIRECT PREFERENCE OPTIMIZATION

SLM-500M · DPO

Our QA fine-tune, aligned with Direct Preference Optimization on 500 AI-judged preference triplets. It learns to prefer the better answer directly from preferences — no reward model.

HuggingFace weights →
517.8M
Parameters
32,768
Vocab
1,024
Context
27.9%
Judged correct
46.2%
Groundedness
500
Preference pairs
Model lineage
interactiveconnecting…

Ask a question

Connecting to the inference endpoint…
The model's answer will appear here.
preference-aligned

What this is

The QA-SFT checkpoint, further trained with DPO against a frozen reference copy of itself. Every preference triplet (prompt, chosen, rejected) was written by Gemini and verified by a blind LLM judge that the chosen answer is genuinely better.

750 steps, ~4 min on an L4. Judged correctness 0.279 [0.245–0.313] on the blind-judge harness — well above the 125M models but far short of Gemma, as expected at 500M scale. At this scale RLAIF beat DPO (0.443 vs 0.279).

Architecture
ClassLlamaForCausalLM
Layers24
Hidden size1,280
Attention20 heads · dim 64 · full MHA
Feed-forwardSwiGLU · inner 3,456
PositionalRoPE · θ 10,000
NormRMSNorm · ε 1e-5
Context1,024 tokens
Vocabulary32,768
Embeddingstied input/output
Training
Init fromslm-500m QA-SFT
MethodDPO (full fine-tune)
Trainable params517.8M — all
Training data500 preference pairs
Training tokens325K (chosen + rejected)
Optimizer steps750
What this model cost to build

$2.49 total Modal usage

our cost begins at fine-tuning — the base is imported.

StageDetailCost
QA supervised fine-tunethe checkpoint DPO starts from$0.93
DPO alignmentdirect preference optimization on L4$0.08
Evaluation (shared)13 versions on 500 held-out questions, this model's share$1.48
Total$2.49

Figures are Modal GPU usage (time × rate) across this model's lineage; shared datasets are charged at this model's share. Whether base pretraining is included is stated above — it is for the models pretrained here, and excluded for imported bases. Evaluation-derived metrics come from an independent blind-judge harness on a frozen, decontaminated held-out set. Serving is billed separately and scales to zero.