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% to 74.83% overall (40.75% -> 69.53% macro across all 5 categories), including +56.98 pts on live_simple (20.54% -> 77.52%), +50.80 pts on live_multiple (25.36% -> 76.16%), +18.75 pts on live_parallel (43.75% -> 62.50%), +12.50 pts on live_parallel_multiple (45.83% -> 58.33%), and +4.88 pts on 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%) in 55.2 average tokens (-56%).
  • 2.7× Faster Agent Inference (-63% Output Tokens): Cuts verbose analysis drift across all 5 benchmarks (241.8 -> 67.3 tokens on BFCL Live, 340.0 -> 156.7 on HumanEval+, 284.9 -> 88.2 on 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:
    1. Native OpenAI Harmony Tool-Call AST & Hard-Abstention Verifier (to=functions.<name>...<|message|>{...}<|call|>)
    2. Real jsonschema Strict Validator (Draft-4/7/2020-12)
    3. Live In-Memory SQLite Execution Engine (DDL + INSERT + SELECT normalized result-set equivalence)
    4. Isolated Subprocess Python Unit-Test Runner
  • Clean Native BF16 Weights (Full 336/336 LoRA Merge): Dequantized from MXFP4 to clean native BF16 GptOssForCausalLM safetensors 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)


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=8 rollouts/prompt, 45 prompts/step, cosine LR 4e-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
Safetensors
Model size
21B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for flintglass/GPT-OSS-20B-PrismAgent

Finetuned
(583)
this model
Quantizations
1 model

Collection including flintglass/GPT-OSS-20B-PrismAgent