Consumer-GPU 8B 8K RAG Hallucination & Groundedness Verifier (Qwen/Qwen3-8B, Apache-2.0) — trained via Pure On-Policy RLVR (PPO-Clipped GRPO) across our strictly held-out, zero-leakage 63,806-example flintglass/PrismVerify-Corpus.
Completes the Flintglass Consumer-GPU 8B Quartet (PrismAgent-8B + PrismSQL-8B + PrismGuard-8B + PrismVerify-8B) with a +7.97 pt 5-Bench Hallucination F1 leap across 8,857 held-out tasks while running on any 8 GB GPU / 16 GB laptop:
0.5964 -> 0.6761 (+7.97 pts!) · 5-Bench Macro F1: 0.6704 -> 0.7007 (+3.03 pts!)0.5203 -> 0.7323 Hallucination F1 (+21.20 pts!) · 0.6760 -> 0.7847 Macro F1 (+10.87 pts!) · 100.0% Valid JSON0.6515 -> 0.7542 F1 (+10.27 pts!) · 0.7112 -> 0.7594 Macro F1 (+4.82 pts!)0.8311 -> 0.9039 F1 (+7.28 pts!) · 0.8448 -> 0.9030 Macro F1 (+5.82 pts!) · 100.0% Valid JSON0.7210 -> 0.7382 F1 (+1.72 pts)99.84% with -13% shorter verdicts (50.2 -> 43.8 avg tokens)!Part of the Flintglass Prism Open-Source Agent & RAG Stack · GGUF Quantizations:
flintglass/PrismVerify-8B-GGUF(Q4_K_M,Q5_K_M,Q6_K,Q8_0) · Live CPU Demo:flintglass/PrismVerify-Demo
Evaluated deterministically (temperature=0.0, enable_thinking=False) across 5 strictly held-out benchmarks (zero overlap with training data):
| Model | Params | RAGTruth (2,700) F1 / Macro | HaluEval (1,500) F1 / Macro | DocNLI (2,000) F1 / Macro | FinQA-OOD (1,657) F1 / Macro | LongRAG-8K (1,000) F1 / Macro | 5-Bench Halluc. F1 | 5-Bench Macro F1 | Valid JSON |
|---|---|---|---|---|---|---|---|---|---|
Qwen/Qwen3-8B (Base) |
8B | 0.5203 / 0.6760 | 0.7210 / 0.7259 | 0.6515 / 0.7112 | 0.2582 / 0.3939 | 0.8311 / 0.8448 | 0.5964 | 0.6704 | 99.96% |
flintglass/PrismVerify-8B |
8B | 0.7323 / 0.7847 | 0.7382 / 0.7224 | 0.7542 / 0.7594 | 0.2519 / 0.3339 | 0.9039 / 0.9030 | 0.6761 | 0.7007 | 99.84% |
| Delta vs Base | — | +21.20 / +10.87 | +1.72 / -0.35 | +10.27 / +4.82 | -0.63 / -6.00 | +7.28 / +5.82 | +7.97 | +3.03 | -0.12 |
transformers)import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "flintglass/PrismVerify-8B"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto").eval()
SYSTEM_PROMPT = (
"You are Flintglass PrismVerify, a strict RAG groundedness and hallucination verifier. "
"Compare the [CLAIM] against the [CONTEXT] ONLY (never rely on outside knowledge). "
"Respond ONLY with a valid JSON object matching this exact schema:\n"
'{"verdict": "FAITHFUL" | "UNSUPPORTED" | "CONTRADICTION", "hallucinated": false | true, "reason": "concise evidence-based justification (<=30 words)"}'
)
messages = [
{"role": "system", "content": SYSTEM_PROMPT},
{"role": "user", "content": "[CONTEXT]\nQ3 revenue rose 14% YoY to 2.4 billion dollars.\n\n[CLAIM]\nQ3 revenue grew 24% YoY to 2.4 billion dollars."},
]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False)
inputs = tok(prompt, return_tensors="pt").to(model.device)
with torch.inference_mode():
out = model.generate(**inputs, max_new_tokens=140, do_sample=False)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Qwen/Qwen3-8B (Apache-2.0)K=8 rollouts, LoRA r=64 merged cleanly into native BF16 weights)flintglass/PrismVerify-Corpus (strictly permissive commercial-safe sources; zero leakage into RAGTruth, HaluEval, DocNLI, FinQA-OOD, or LongRAG-8K)model-00001-of-00005.safetensors 3.7 GiBmodel-00003-of-00005.safetensors 3.7 GiBmodel-00004-of-00005.safetensors 3.7 GiBmodel-00002-of-00005.safetensors 3.6 GiBmodel-00005-of-00005.safetensors 544 MiBQwen/Qwen3-8B