Instructions to use flintglass/PrismVerify-35B-A3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flintglass/PrismVerify-35B-A3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flintglass/PrismVerify-35B-A3B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("flintglass/PrismVerify-35B-A3B") model = AutoModelForMultimodalLM.from_pretrained("flintglass/PrismVerify-35B-A3B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use flintglass/PrismVerify-35B-A3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flintglass/PrismVerify-35B-A3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flintglass/PrismVerify-35B-A3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/flintglass/PrismVerify-35B-A3B
- SGLang
How to use flintglass/PrismVerify-35B-A3B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "flintglass/PrismVerify-35B-A3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flintglass/PrismVerify-35B-A3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "flintglass/PrismVerify-35B-A3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flintglass/PrismVerify-35B-A3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use flintglass/PrismVerify-35B-A3B with Docker Model Runner:
docker model run hf.co/flintglass/PrismVerify-35B-A3B
Flintglass PrismVerify-35B-A3B
Fast 3B-Active MoE (35B Total) 8K RAG Hallucination & Groundedness Verifier โ trained via Pure On-Policy RLVR (PPO-Clipped GRPO) on Qwen/Qwen3.6-35B-A3B across our strictly held-out, zero-leakage 63,806-example flintglass/PrismVerify-Corpus.
Crushes Base Qwen/Qwen3.6-35B-A3B across ALL 5 out of 5 strictly held-out zero-shot hallucination benchmarks (8,857 tasks) on both Hallucination F1 (0.6850 -> 0.7325, +4.75 pts) and Macro F1 (0.6911 -> 0.7930, +10.19 pts!), achieving 0.8048 RAGTruth Hallucination F1 / 0.8522 Macro F1 (+13.63 pts!), +21.80 pts Macro F1 (+35.79 pts Accuracy!) on Zero-Shot FinQA-OOD, 0.9499 LongRAG-8K, and 99.93% strict JSON schema compliance at ~55 tokens/verdict and 3B-active MoE inference speed!
Part of the Flintglass Prism Open-Source Agent & RAG Stack ยท GGUF Quantizations:
flintglass/PrismVerify-35B-A3B-GGUF(Q4_K_M,Q6_K) ยท Live CPU Demo:flintglass/PrismVerify-Demo
Verified 5-Benchmark Zero-Shot Hallucination Leaderboard (8,857 Tasks)
Evaluated deterministically (temperature=0.0, enable_thinking=False) across 5 strictly held-out benchmarks (zero overlap with training data):
| Model | Active / Total | 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.6-35B-A3B (Base) |
3B / 35B | 0.7013 / 0.7159 | 0.7340 / 0.6754 | 0.7639 / 0.7283 | 0.2999 / 0.4141 | 0.9261 / 0.9218 | 0.6850 | 0.6911 | 99.65% |
flintglass/PrismVerify-35B-A3B |
3B / 35B | 0.8048 / 0.8522 | 0.7406 / 0.7366 | 0.7794 / 0.7953 | 0.3878 / 0.6321 | 0.9499 / 0.9490 | 0.7325 | 0.7930 | 99.93% |
| Delta vs Base | โ | +10.35 / +13.63 | +0.66 / +6.12 | +1.55 / +6.70 | +8.79 / +21.80 | +2.38 / +2.72 | +4.75 | +10.19 | +0.28 |
Quickstart (transformers)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "flintglass/PrismVerify-35B-A3B"
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)"}\n'
"Rules:\n"
"- FAITHFUL (hallucinated=false): Every factual claim is directly supported by [CONTEXT].\n"
"- UNSUPPORTED (hallucinated=true): Introduces facts, numbers, or entities absent from [CONTEXT].\n"
"- CONTRADICTION (hallucinated=true): Directly contradicts information stated in [CONTEXT]."
)
messages = [
{"role": "system", "content": SYSTEM_PROMPT},
{"role": "user", "content": "[CONTEXT]\nQ3 revenue rose 14% YoY to $2.4B.\n\n[CLAIM]\nQ3 revenue grew 24% YoY to $2.4B."},
]
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=160, do_sample=False)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Output Schema
{"verdict": "CONTRADICTION", "hallucinated": true, "reason": "Context states Q3 revenue rose 14% YoY, contradicting the claim of 24% YoY growth."}
Training & Provenance
- Base Model:
Qwen/Qwen3.6-35B-A3B(Apache-2.0, 3B-active MoE) - Method: Pure On-Policy RLVR (PPO-Clipped GRPO, 40 steps,
K=8rollouts, LoRAr=32merged cleanly into native BF16 weights) - Corpus:
flintglass/PrismVerify-Corpus(strictly permissive commercial-safe sources; zero leakage into RAGTruth, HaluEval, DocNLI, FinQA-OOD, or LongRAG-8K) - License: Apache-2.0
- Downloads last month
- -