Instructions to use flintglass/GPT-OSS-20B-PrismAgent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flintglass/GPT-OSS-20B-PrismAgent with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flintglass/GPT-OSS-20B-PrismAgent") 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/GPT-OSS-20B-PrismAgent") model = AutoModelForCausalLM.from_pretrained("flintglass/GPT-OSS-20B-PrismAgent", 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/GPT-OSS-20B-PrismAgent with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flintglass/GPT-OSS-20B-PrismAgent" # 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/GPT-OSS-20B-PrismAgent", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/flintglass/GPT-OSS-20B-PrismAgent
- SGLang
How to use flintglass/GPT-OSS-20B-PrismAgent 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/GPT-OSS-20B-PrismAgent" \ --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/GPT-OSS-20B-PrismAgent", "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/GPT-OSS-20B-PrismAgent" \ --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/GPT-OSS-20B-PrismAgent", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use flintglass/GPT-OSS-20B-PrismAgent with Docker Model Runner:
docker model run hf.co/flintglass/GPT-OSS-20B-PrismAgent
Flintglass GPT-OSS-20B-PrismAgent
Pure On-Policy 4-Verifier RLVR Agent on Apache-2.0 openai/gpt-oss-20b (21B Total / 3.6B Active MoE) — achieving 83.32% Avg 5-Bench (+7.56 pts), 74.83% BFCL Live (+32.73 pts, +56.98 pts on live_simple, +50.80 pts on live_multiple), 97.20% Strict JSON Schema (+4.00 pts), 87.20% HumanEval+, and -63% average output tokens (2.7× faster!) with zero synthetic SFT and zero proprietary distillation.
Part of the Flintglass Prism Open-Source Agent & RAG Stack · GGUF Quantizations:
flintglass/GPT-OSS-20B-PrismAgent-GGUF(Q4_K_M,Q5_K_M,Q6_K)
Key Highlights
- +32.73 pts on BFCL Live (2,233 tasks): Jumps from
42.10%to74.83%overall (40.75% -> 69.53%macro across all 5 categories), including+56.98 ptsonlive_simple(20.54% -> 77.52%),+50.80 ptsonlive_multiple(25.36% -> 76.16%),+18.75 ptsonlive_parallel(43.75% -> 62.50%),+12.50 ptsonlive_parallel_multiple(45.83% -> 58.33%), and+4.88 ptson hard abstention (live_irrelevance:68.25% -> 73.13%). - 97.20% Strict JSON Schema Compliance (+4.00 pts): Validated against real Draft-4/7/2020-12 schemas via
jsonschema(93.20% -> 97.20%) in55.2average tokens (-56%). - 2.7× Faster Agent Inference (-63% Output Tokens): Cuts verbose analysis drift across all 5 benchmarks (
241.8 -> 67.3tokens on BFCL Live,340.0 -> 156.7on HumanEval+,284.9 -> 88.2on MBPP+) while boosting overall accuracy by+7.56 pts! - Pure On-Policy 4-Verifier RLVR (Zero Synthetic SFT, Zero Proprietary Distillation): Trained strictly via PPO-clipped GRPO where every single rollout is scored by four exact deterministic execution verifiers:
- Native OpenAI Harmony Tool-Call AST & Hard-Abstention Verifier (
to=functions.<name>...<|message|>{...}<|call|>) - Real
jsonschemaStrict Validator (Draft-4/7/2020-12) - Live In-Memory SQLite Execution Engine (DDL + INSERT + SELECT normalized result-set equivalence)
- Isolated Subprocess Python Unit-Test Runner
- Native OpenAI Harmony Tool-Call AST & Hard-Abstention Verifier (
- Clean Native BF16 Weights (Full 336/336 LoRA Merge): Dequantized from MXFP4 to clean native BF16
GptOssForCausalLMsafetensors with all 336 attention + MoE expert (w1/w2/w3) LoRA tensors merged and verified on GPU (zero NaNs, live BFCL verification matched).
Verified Zero-Leakage 5-Benchmark Results (4,775 Tasks)
Evaluated identically with greedy decoding (temperature=0.0, reasoning_effort="low", Harmony stop token <|return|>):
| Benchmark | Tasks | openai/gpt-oss-20b (Base) |
flintglass/GPT-OSS-20B-PrismAgent |
Delta | Avg Tokens (Base -> PrismAgent) |
|---|---|---|---|---|---|
| BFCL Live Overall | 2,233 | 42.10% | 74.83% | +32.73 pts | 241.8 -> 67.3 (-72%) |
| BFCL Live Macro Avg (5 cats) | 2,233 | 40.75% | 69.53% | +28.78 pts | — |
| JSONSchema Strict | 1,000 | 93.20% | 97.20% | +4.00 pts | 126.7 -> 55.2 (-56%) |
| SQLite Live Execution | 1,000 | 80.20% | 80.90% | +0.70 pts | 66.5 -> 49.5 (-26%) |
| HumanEval+ (EvalPlus) | 164 | 86.59% | 87.20% | +0.61 pts | 340.0 -> 156.7 (-54%) |
| MBPP+ (EvalPlus) | 378 | 76.72% | 76.46% | -0.26 pts | 284.9 -> 88.2 (-69%) |
| 5-Benchmark Average | 4,775 | 75.76% | 83.32% | +7.56 pts | 212.0 -> 83.4 (-61%) |
BFCL Live Category Breakdown
| BFCL Live Category | Tasks | openai/gpt-oss-20b (Base) |
flintglass/GPT-OSS-20B-PrismAgent |
Delta |
|---|---|---|---|---|
live_simple |
258 | 20.54% | 77.52% | +56.98 pts |
live_multiple |
1,053 | 25.36% | 76.16% | +50.80 pts |
live_parallel |
16 | 43.75% | 62.50% | +18.75 pts |
live_parallel_multiple |
24 | 45.83% | 58.33% | +12.50 pts |
live_irrelevance (Abstention) |
882 | 68.25% | 73.13% | +4.88 pts |
Quickstart (transformers)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "flintglass/GPT-OSS-20B-PrismAgent"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, 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"}},
"required": ["city"],
},
},
}]
messages = [{"role": "user", "content": "What is the weather in Tokyo right now?"}]
prompt = tok.apply_chat_template(
messages, tools=tools, tokenize=False, add_generation_prompt=True, reasoning_effort="low"
)
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=False))
Local Inference (llama.cpp / Ollama / vLLM)
- vLLM:
vllm serve flintglass/GPT-OSS-20B-PrismAgent --tool-call-parser openai - GGUF (
llama.cpp/ Ollama / LM Studio): Seeflintglass/GPT-OSS-20B-PrismAgent-GGUF!
Training Details & Commercial-Safe Provenance
- Base Model:
openai/gpt-oss-20b(Apache-2.0, 21B total / 3.6B active params MoE) - Algorithm: Pure On-Policy PPO-Clipped GRPO (
r=32,alpha=32, all attention + 32 MoE expert linear projections, 40 steps,K=8rollouts/prompt, 45 prompts/step, cosine LR4e-5 -> 4e-6) - Dataset Provenance: 100% permissive commercial-safe RLVR prompt pools (
flintglass/PrismAgent-RLVR-Dataset— Apache-2.0/MIT/CC-BY-4.0 sources only; zero proprietary LLM outputs or completions). - License: Apache-2.0
- Downloads last month
- 267