Instructions to use flintglass/PrismAgent-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flintglass/PrismAgent-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flintglass/PrismAgent-8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("flintglass/PrismAgent-8B") model = AutoModelForCausalLM.from_pretrained("flintglass/PrismAgent-8B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use flintglass/PrismAgent-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flintglass/PrismAgent-8B" # 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-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/flintglass/PrismAgent-8B
- SGLang
How to use flintglass/PrismAgent-8B 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-8B" \ --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-8B", "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-8B" \ --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-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use flintglass/PrismAgent-8B with Docker Model Runner:
docker model run hf.co/flintglass/PrismAgent-8B
Flintglass PrismAgent-8B
Flintglass PrismAgent-8B is an open-source, Apache-2.0 8B local agent execution model built on Qwen/Qwen3-8B and trained with 4-Verifier Reinforcement Learning with Verifiable Rewards (RLVR) for fast, non-verbose (/no_think), high-reliability execution across the four deterministic tasks where local agent pipelines most often fail:
- Native Function / Tool Calling & Abstention (single, multi-tool, parallel, and strict irrelevance/missing-parameter refusal in native
<tool_call>format) - Strict JSON Schema Compliance (Draft-4 / Draft-7 / Draft-2020-12 real-world schemas with raw JSON output and no markdown wrapper bloat)
- Executable Text-to-SQL (SQLite-verified queries across joins, CTEs, subqueries, aggregations, and window functions)
- Executable Python Tool Synthesis (verified against full EvalPlus hidden test suites)
GGUF quantizations (Ollama / llama.cpp / LM Studio, starting at 4.7 GB):
flintglass/PrismAgent-8B-GGUF
Execution-Verified RLVR Training Corpus (39.7K rows, zero benchmark overlap):flintglass/PrismAgent-RLVR-Dataset
Zero-Leakage 5-Benchmark Evaluation (4,775 Held-Out Execution Tasks)
Every model below was evaluated identically with deterministic greedy decoding (temperature=0, enable_thinking=False for Qwen3 models) across 4,775 strictly held-out, execution-verified test tasks with zero benchmark overlap (832 eval leaks caught and purged from training data via exact normalized prompt + function entry-point deduplication):
- BFCL v3 Live (Full 2,233 tasks):
live_simple(258),live_multiple(1,053),live_parallel(16),live_parallel_multiple(24), andlive_irrelevance(882) - JSONSchemaBench Test (1,000 schemas): Real-world GitHub/OpenAPI/Kubernetes schemas validated with
jsonschema - Gretel Text-to-SQL Test (1,000 queries): Real in-memory SQLite DDL + INSERT + SELECT result-set equivalence
- HumanEval+ (164 tasks): Full EvalPlus hidden test suite
- MBPP+ (378 tasks): Full EvalPlus hidden test suite
| Model (7Bโ8B, Fast Non-Thinking Mode) | Avg 5-Bench | BFCL v3 Live (2,233) | JSONSchema (1,000) | SQLite SQL (1,000) | HumanEval+ (164) | MBPP+ (378) | Avg Output Tokens (BFCL / JSON) |
|---|---|---|---|---|---|---|---|
NousResearch/Hermes-3-Llama-3.1-8B |
62.65% | 61.98% | 86.00% | 77.90% | 46.34% | 41.01% | 50.0 / 120.5 |
Qwen/Qwen2.5-7B-Instruct |
76.93% | 71.47% | 89.40% | 78.80% | 76.22% | 68.78% | 66.3 / 105.1 |
Qwen/Qwen3-8B (Base /no_think) |
78.59% | 75.77% | 86.20% | 80.40% | 76.22% | 74.34% | 51.9 / 134.6 |
flintglass/PrismAgent-8B |
80.11% | 77.43% | 91.70% | 82.10% | 76.83% | 72.49% | 42.9 / 110.3 |
Gain vs. Base Qwen3-8B |
+1.52 pts | +1.66 pts | +5.50 pts | +1.70 pts | +0.61 pts | -1.85 pts | -17.3% / -18.1% tokens |
BFCL v3 Live Category Breakdown (Full 2,233 Tasks)
| Model | Micro Avg (2,233) | Macro Avg (5 cats) | live_simple (258) |
live_multiple (1,053) |
live_parallel (16) |
live_par_mult (24) |
live_irrelevance (882) |
|---|---|---|---|---|---|---|---|
Hermes-3-Llama-3.1-8B |
61.98% | 53.61% | 69.38% | 68.85% | 43.75% | 33.33% | 52.72% |
Qwen2.5-7B-Instruct |
71.47% | 67.90% | 68.60% | 73.50% | 68.75% | 58.33% | 70.29% |
Qwen3-8B (Base /no_think) |
75.77% | 72.79% | 68.60% | 76.45% | 62.50% | 79.17% | 77.21% |
flintglass/PrismAgent-8B |
77.43% | 73.73% | 69.38% | 76.64% | 62.50% | 79.17% | 80.95% |
Training Methodology & Transparent Ablation
PrismAgent-8B was trained strictly on permissively licensed data (Apache-2.0, MIT, CC-BY-4.0) with zero proprietary LLM distillation and four exact deterministic execution verifiers (no LLM-as-a-judge):
- Tool Call & Abstention AST Verifier: Exact tool name, argument value/type, bipartite parallel call matching, and strict non-invocation verification on missing-required-parameter / same-domain unsupported / multilingual greeting queries.
- JSON Schema Verifier: Live Draft-4 / Draft-7 / Draft-2020-12
jsonschemavalidation rewarding raw, unfenced valid JSON. - SQLite Execution Verifier: In-memory SQLite DDL + INSERT + SELECT result-set equivalence with execution timeout guards.
- Python Subprocess Unit-Test Verifier: Isolated Python test execution using 100% pure on-policy self-play pairs (no off-policy code style drift).
During development, we observed a classic post-training trade-off that we report transparently below:
| Training Stage / Ablation | Avg 5-Bench | BFCL Live | live_simple |
live_irrel |
JSONSchema | SQLite | HumanEval+ | MBPP+ |
|---|---|---|---|---|---|---|---|---|
Base Qwen/Qwen3-8B (/no_think) |
78.59% | 75.77% | 68.6% | 77.2% | 86.20% | 80.40% | 76.22% | 74.34% |
| Stage-1 Off-Policy SFT (37.5K verified) | 77.67% | 69.50% | 76.4% | 57.6% | 91.20% | 81.20% | 75.00% | 71.43% |
| Balanced Pure On-Policy RLVR (50K rollouts, 0 SFT) | 79.65% | 76.49% | 67.8% | 79.0% | 88.80% | 80.50% | 78.66% | 73.81% |
| SFT + RLVR (40K rollouts) | 73.14% | 44.20% | 3.5% | 99.0% | 92.00% | 81.30% | 76.22% | 71.96% |
Final PrismAgent-8B (Weight-Space Merge: 0.35 Bal-RLVR + 0.25 SFT + 0.40 SFT-RLVR) |
80.11% | 77.43% | 69.4% | 81.0% | 91.70% | 82.10% | 76.83% | 72.49% |
Off-policy SFT sharply improved active tool calling (+7.8 on live_simple) and JSONSchema (+5.0) but degraded tool abstention (-19.6), while balanced Pure On-Policy RLVR avoided forgetting and lifted HumanEval+ (+2.4) and BFCL (+0.7). Combining the same-base checkpoints in BF16 weight space (0.35 Balanced-Pure-RLVR + 0.25 SFT + 0.40 SFT-RLVR) landed strictly on the upper Pareto frontier: 80.11% Avg 5-Bench, 77.43% BFCL Live (+3.8 on Irrelevance), 91.70% JSONSchema (+5.5), 82.10% SQLite (+1.7), 76.83% HumanEval+ (+0.6), and 17โ18% fewer output tokens than base Qwen3-8B.
Quickstart
1. Transformers (Native Tool Calling, Fast Non-Thinking Mode)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "flintglass/PrismAgent-8B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id, torch_dtype=torch.bfloat16, device_map="auto"
)
tools = [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get current weather for a city.",
"parameters": {
"type": "object",
"properties": {
"city": {"type": "string", "description": "City name"},
"unit": {"type": "string", "enum": ["celsius", "fahrenheit"]},
},
"required": ["city"],
},
},
}
]
messages = [{"role": "user", "content": "What's the weather in Tokyo and Berlin right now?"}]
prompt = tokenizer.apply_chat_template(
messages, tools=tools, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=256, do_sample=False)
print(tokenizer.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
2. vLLM (OpenAI-Compatible Agent Server with Native Tool Parser)
vllm serve flintglass/PrismAgent-8B \
--dtype bfloat16 \
--enable-auto-tool-choice \
--tool-call-parser hermes \
--port 8000
3. Local CPU / Apple Silicon / Consumer GPU (Ollama & llama.cpp)
Use flintglass/PrismAgent-8B-GGUF:
ollama run hf.co/flintglass/PrismAgent-8B-GGUF:Q4_K_M
The Flintglass Prism Open-Source Agent Stack
Build a complete, Apache-2.0, local-first reliable agent pipeline:
- Input Security Guardrail (8K context):
flintglass/PrismGuard-MultilingualยทPrismGuard-LargeยทPrismGuard-Smallยท Live Demo - Agent Execution Engine (8B + GGUF):
flintglass/PrismAgent-8BยทPrismAgent-8B-GGUFยทPrismAgent-RLVR-Dataset - RAG Groundedness & Hallucination Verification:
flintglass/PrismVerify-4BยทPrismVerify-4B-GGUFยทPrismVerify-LargeยทPrismVerify-MultilingualยทPrismVerify-Small
Limitations & Responsible Use
- PrismAgent-8B is optimized for fast, non-thinking (
enable_thinking=False) structured tool calling, schema generation, SQL, and concise Python synthesis; for open-ended mathematical proofs or multi-page creative writing, dedicated reasoning models may be preferable. - Always execute model-generated SQL queries and Python code in sandboxed / least-privilege environments with read-only database permissions where appropriate.
License
Apache 2.0. Built by Flintglass Labs.
- Downloads last month
- -