Instructions to use flintglass/PrismAgent-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flintglass/PrismAgent-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flintglass/PrismAgent-9B") 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/PrismAgent-9B") model = AutoModelForMultimodalLM.from_pretrained("flintglass/PrismAgent-9B", 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/PrismAgent-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flintglass/PrismAgent-9B" # 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/PrismAgent-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/flintglass/PrismAgent-9B
- SGLang
How to use flintglass/PrismAgent-9B 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/PrismAgent-9B" \ --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/PrismAgent-9B", "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/PrismAgent-9B" \ --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/PrismAgent-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use flintglass/PrismAgent-9B with Docker Model Runner:
docker model run hf.co/flintglass/PrismAgent-9B
Flintglass PrismAgent-9B
Flintglass PrismAgent-9B is a 4-Verifier Pure On-Policy RLVR (PPO-Clipped GRPO) consumer-GPU flagship agent model trained on Qwen/Qwen3.5-9B (9.65B params, 262K context, Apache-2.0).
Built specifically for local laptops, Apple Silicon Macs, and 8β12 GB consumer GPUs (~5.6 GB in Q4_K_M GGUF!), it delivers 81.70% Avg 5-Bench (+1.88 pts over Base Qwen3.5-9B and +1.59 pts over PrismAgent-8B) across all 4,775 strictly held-out execution tasksβwith zero regression across all 5 BFCL v3 Live categories and 15%β32% fewer output tokens.
- Quantized GGUFs (
Q4_K_M,Q5_K_M,Q6_K,Q8_0): flintglass/PrismAgent-9B-GGUF - Training Dataset (100% Apache-2.0 / MIT / CC-BY-4.0, Zero Leakage): flintglass/PrismAgent-RLVR-Dataset
- Standalone PEFT LoRA (
r=64): Included inlora/alongside full merged BF16 Safetensors.
Strictly Held-Out 5-Benchmark Results (4,775 Tasks)
Evaluated deterministically (temperature=0.0, non-thinking mode) on the exact same zero-leakage 4,775-task execution suite using four deterministic verifiers (AST/arg matching, jsonschema, in-memory SQLite execution, and EvalPlus hidden unit tests).
| Benchmark (Held-Out Tasks) | Base Qwen3.5-9B |
PrismAgent-8B |
PrismAgent-9B (Ours) | Delta vs Base | Avg Tokens |
|---|---|---|---|---|---|
| BFCL v3 Live (2,233) | 73.13% | 77.43% | 74.88% | +1.75% | 74.7 -> 63.6 (-14.9%) |
| JSONSchemaBench Test (1,000) | 90.60% | 91.70% | 94.90% | +4.30% | 147.5 -> 105.2 (-28.7%) |
| SQLite Text-to-SQL (1,000) | 80.00% | 82.10% | 81.80% | +1.80% | 30.1 -> 32.2 |
| HumanEval+ (164) | 80.49% | 76.83% | 82.32% | +1.83% | 261.4 -> 238.6 |
| MBPP+ (378) | 74.87% | 72.49% | 74.60% | -0.27% | 238.2 -> 161.4 (-32.2%) |
| 5-Benchmark Average | 79.82% | 80.11% | 81.70% | +1.88% | ~21% Fewer Tokens |
BFCL v3 Live Per-Category Breakdown (Zero Regression Across All 5 Categories!)
| BFCL v3 Live Category | Tasks | Base Qwen3.5-9B |
PrismAgent-9B | Delta |
|---|---|---|---|---|
live_simple |
258 | 76.36% | 76.36% | +0.00% |
live_multiple |
1,053 | 68.76% | 72.08% | +3.32% |
live_parallel |
16 | 87.50% | 93.75% | +6.25% |
live_parallel_multiple |
24 | 66.67% | 66.67% | +0.00% |
live_irrelevance (Abstention) |
882 | 77.32% | 77.66% | +0.34% |
| BFCL v3 Live Macro Average | 2,233 | 75.32% | 77.30% | +1.98% |
Quickstart
Local Inference (llama.cpp / Ollama β 5.6 GB VRAM!)
llama-server -hf flintglass/PrismAgent-9B-GGUF:Q4_K_M --jinja --port 8080
Python (transformers)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "flintglass/PrismAgent-9B"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
messages = [{"role": "user", "content": "Write a SQLite SELECT query to count active users in users(id INT, active INT)."}]
prompt = tok.apply_chat_template(messages, enable_thinking=False, tokenize=False, add_generation_prompt=True)
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=256, do_sample=False)
print(tok.decode(out[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
The Complete 6-Pillar Flintglass Prism Open-Source Agent & RAG Stack
All models are 100% Apache-2.0 and evaluated on zero-leakage held-out benchmarks:
- Ingest: PrismParse-4B / PrismParse-2B
- Embed: PrismEmbed-Multilingual | PrismEmbed-Large | PrismEmbed-Small (Live Demo)
- Rerank: PrismRerank-Large | PrismRerank-Multilingual | PrismRerank-Small (Live Demo)
- Protect: PrismGuard-Multilingual (Live Demo)
- Execute: Inkling-2-Mini-PrismAgent | PrismAgent-27B | PrismAgent-35B-A3B | PrismAgent-9B | PrismAgent-8B
- Verify: PrismVerify-4B / PrismVerify-Large (Live Demo)
License
Released under Apache-2.0.
- Downloads last month
- 234