Views
No views yet
krishnakartik/gemma4-social-bias-judge
(the primary release).<|think|> in the system prompt at
inference time — the model never saw that token during training and
will generate degraded, unparseable output. See the primary model
card's thinking-mode
section
for the full explanation.1# IMPORTANT: thinking mode is disabled — do NOT add <|think|> to /system.
2ollama run hf.co/krishnakartik/gemma4-social-bias-judge-gguf:Q8_0-sft1# Identical usage to the DPO checkpoint — only the model_id changes.
2import torch
3from transformers import AutoModelForCausalLM, AutoTokenizer
4
5model_id = "krishnakartik/gemma4-social-bias-judge-sft"
6tok = AutoTokenizer.from_pretrained(model_id)
7model = AutoModelForCausalLM.from_pretrained(
8 model_id, torch_dtype=torch.bfloat16, device_map="cuda"
9)
10# ... see primary model card for the full inference snippet.| Use case | Recommended |
|---|---|
| Bias categories in BBQ's 10 trained set (age, disability, gender identity, nationality, physical appearance, race/ethnicity inc. intersectional, religion, sexual orientation, SES) | DPO (primary) |
| Bias categories outside the trained set (politics, ideology, novel demographic axes, intersectional categories not in training) | This checkpoint (SFT) |
| Tie-case detection (both responses clean) is critical | DPO — tie-κ jumps from −0.06 (SFT) to 0.36 (DPO) |
| Subtle bias discrimination on in-dist data | DPO — subtle-κ jumps from 0.74 (SFT) to 0.89 (DPO) |
| Tracked-vs-alternate (which specific stereotype is invoked) | This checkpoint (SFT-κ 0.20 vs DPO-κ 0.12) |
| Position-bias robustness on OOD | This checkpoint (SFT 11.7% vs DPO 16.7%) |
| Metric | Base | SFT (this) | DPO |
|---|---|---|---|
| Overall κ (in-dist) | 0.481 | 0.647 | 0.682 |
| Overall κ (OOD religion) | 0.542 | 0.695 | 0.643 |
| Tracked-vs-alternate κ | 0.145 | 0.197 | 0.119 |
| Subtle cases κ | 0.632 | 0.743 | 0.890 |
| Tie cases κ | 0.202 | −0.056 | 0.359 |
| Position-bias rate (OOD) | 21.7% | 11.7% | 16.7% |
| Self-consistency (T=0.3) | 73.7% | 83.2% | 82.7% |
train_loss 0.889, mean_token_accuracy 86.1%. Total Stage 6
spend: ~$4. Adapter merged to bf16 for Stage 8 eval and this
release.