Instructions to use flintglass/PrismAgent-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flintglass/PrismAgent-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="flintglass/PrismAgent-27B") 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-27B") model = AutoModelForMultimodalLM.from_pretrained("flintglass/PrismAgent-27B", 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-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flintglass/PrismAgent-27B" # 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-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/flintglass/PrismAgent-27B
- SGLang
How to use flintglass/PrismAgent-27B 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-27B" \ --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-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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-27B" \ --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-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use flintglass/PrismAgent-27B with Docker Model Runner:
docker model run hf.co/flintglass/PrismAgent-27B
Flintglass PrismAgent-27B
Flintglass PrismAgent-27B is a frontier-grade, Apache-2.0 27B agent execution specialist built on Qwen/Qwen3.8-27B and trained exclusively with Pure On-Policy 4-Verifier GRPO (PPO-clipped RLVR) for fast, zero-thinking-bloat (enable_thinking=False) reliability across function calling, strict tool abstention, JSON Schema compliance, SQLite SQL execution, and Python synthesis.
Across 4,775 strictly held-out, zero-leakage execution tasks, PrismAgent-27B improves over Base Qwen/Qwen3.8-27B by +3.13 pts Avg 5-Bench (84.37%), +5.02 pts BFCL v3 Live Micro (78.46%) / +6.58 pts BFCL Live Macro (81.30%), +10.40 pts JSONSchemaBench (96.40%), +0.70 pts SQLite Execution (80.20%), and +0.61 pts HumanEval+ (89.02%) while preserving the native multimodal vision backbone untouched.
GGUF quantizations (
Q4_K_M,Q5_K_M,Q6_Kβ runs on a single 24 GB GPU or 32 GB Apple Silicon Mac):flintglass/PrismAgent-27B-GGUF
Compact 8B sibling:flintglass/PrismAgent-8BΒ·PrismAgent-8B-GGUF
Zero-Leakage RLVR Training Dataset (39.7K rows):flintglass/PrismAgent-RLVR-Dataset
Zero-Leakage 5-Benchmark Evaluation (4,775 Held-Out Execution Tasks)
All models were evaluated identically with deterministic greedy decoding (temperature=0, enable_thinking=False) across all 4,775 strictly held-out execution-verified tasks (832 eval leaks purged from training splits via exact normalized prompt + Python entry_point deduplication):
| Model (All Fast Non-Thinking Mode) | Avg 5-Bench | BFCL v3 Live (2,233) | JSONSchema (1,000) | SQLite SQL (1,000) | HumanEval+ (164) | MBPP+ (378) |
|---|---|---|---|---|---|---|
NousResearch/Hermes-3-Llama-3.1-8B |
62.65% | 61.98% | 86.00% | 77.90% | 46.34% | 41.01% |
Qwen/Qwen2.5-7B-Instruct |
76.93% | 71.47% | 89.40% | 78.80% | 76.22% | 68.78% |
Qwen/Qwen3-8B (Base /no_think) |
78.59% | 75.77% | 86.20% | 80.40% | 76.22% | 74.34% |
flintglass/PrismAgent-8B |
80.11% | 77.43% | 91.70% | 82.10% | 76.83% | 72.49% |
Qwen/Qwen3.8-27B (Base /no_think) |
81.24% | 73.44% | 86.00% | 79.50% | 88.41% | 78.84% |
PrismAgent-27B (GRPO Step 25) |
84.04% | 75.86% | 96.50% | 80.10% | 90.24% | 77.51% |
flintglass/PrismAgent-27B (GRPO Step 50) |
84.37% | 78.46% | 96.40% | 80.20% | 89.02% | 77.78% |
Gain vs. Base Qwen/Qwen3.8-27B |
+3.13 pts | +5.02 pts | +10.40 pts | +0.70 pts | +0.61 pts | -1.06 pts |
BFCL v3 Live Category Breakdown (Full 2,233 Tasks β Improved on ALL 5 Categories!)
| 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) |
|---|---|---|---|---|---|---|---|
Qwen/Qwen3.8-27B (Base /no_think) |
73.44% | 74.72% | 77.52% | 71.79% | 87.50% | 62.50% | 74.26% |
flintglass/PrismAgent-27B |
78.46% | 81.30% | 81.01% | 74.45% | 93.75% | 75.00% | 82.31% |
Delta vs. Base Qwen3.8-27B |
+5.02 pts | +6.58 pts | +3.49 pts | +2.66 pts | +6.25 pts | +12.50 pts | +8.05 pts |
Output Efficiency vs. Base Qwen/Qwen3.8-27B
- JSONSchemaBench: 96.40% valid & schema-conforming (pure raw JSON reward
0.9668vs Base0.7785), -8.3% fewer tokens (123.1vs134.3). - HumanEval+: 89.02% pass@1 with -15.8% fewer tokens (
229.0vs272.1). - MBPP+: 77.78% pass@1 with -25.7% fewer tokens (
114.6vs154.2).
Training Method: Pure On-Policy 4-Verifier GRPO (Zero SFT Forgetting)
Unlike off-policy SFT, PrismAgent-27B was trained strictly via Pure On-Policy PPO-Clipped GRPO (rank=64 LoRA across all attention + MLP projections, merged losslessly into BF16) over 50 synchronous steps (45 stratified prompts/step Γ K=8 on-policy rollouts = 18,000 live 27B verifier executions) scored exclusively by four deterministic verifiers (no LLM-as-a-judge, no proprietary distillation):
- Tool Call & Hard Near-Miss Abstention Verifier: Native Qwen3.8
<tool_call><function=...><parameter=...>...</parameter></function></tool_call>AST/argument matcher + multilingual missing-required-parameter / same-domain unsupported abstention checks. - JSON Schema Verifier: Live Draft-4/7/2020-12
jsonschemavalidation favoring raw unfenced JSON (1.0raw vs0.85fenced). - SQLite Execution Verifier: In-memory SQLite DDL + INSERT + SELECT result-set equivalence.
- Python Unit-Test Verifier: Isolated subprocess execution against real unit tests (
nvidia/OpenCodeInstruct, strictly deduplicated against EvalPlus).
Only prompt groups with non-zero reward variance among the K=8 on-policy rollouts contribute gradient updates, eliminating catastrophic forgetting and keeping all 5 BFCL Live categories moving up together.
Quickstart
1. vLLM (OpenAI-Compatible Agent Server)
vllm serve flintglass/PrismAgent-27B \
--dtype bfloat16 \
--enable-auto-tool-choice \
--tool-call-parser qwen3_xml \
--port 8000
2. Local Single-GPU / Apple Silicon (Ollama & llama.cpp)
Use flintglass/PrismAgent-27B-GGUF:
ollama run hf.co/flintglass/PrismAgent-27B-GGUF:Q4_K_M
3. Transformers
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "flintglass/PrismAgent-27B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id, torch_dtype=torch.bfloat16, device_map="auto"
)
messages = [{"role": "user", "content": "Generate a valid JSON object matching {\"type\":\"object\",\"required\":[\"id\",\"active\"],\"properties\":{\"id\":{\"type\":\"integer\"},\"active\":{\"type\":\"boolean\"}}}"}]
prompt = tokenizer.apply_chat_template(
messages, 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))
The Flintglass Prism Open-Source Agent & RAG Stack
- Document Ingestion (VLM OCR):
PrismParse-4BΒ·PrismParse-2BΒ·PrismParse-4B-GGUFΒ·PrismParse-2B-GGUF - 8K Prompt-Injection Firewall:
PrismGuard-MultilingualΒ·PrismGuard-LargeΒ·PrismGuard-SmallΒ· Live Demo - Agent Execution (27B & 8B + GGUF):
PrismAgent-27BΒ·PrismAgent-27B-GGUFΒ·PrismAgent-8BΒ·PrismAgent-8B-GGUFΒ·PrismAgent-RLVR-Dataset - 8K RAG Hallucination Verification:
PrismVerify-4BΒ·PrismVerify-4B-GGUFΒ·PrismVerify-LargeΒ·PrismVerify-MultilingualΒ·PrismVerify-Small
License
Apache 2.0. Built by Flintglass Labs.
- Downloads last month
- 38