Flintglass GPT-OSS-20B-PrismCode

Pure On-Policy Execution-Verified Python Coding RLVR on Apache-2.0 openai/gpt-oss-20b (21B Total / 3.6B Active MoE) — achieving 83.06% EvalPlus Strict Macro Average (+1.29 pts), 81.18% EvalPlus Strict Micro Average (+2.03 pts, +11 net strict tasks solved!), 78.31% MBPP+ (+3.18 pts, +12 strict tasks!), 87.80% HumanEval+, and -15% fewer output tokens with zero synthetic SFT and zero proprietary distillation.

Completes the Flintglass GPT-OSS-20B Prism Trifecta: GPT-OSS-20B-PrismAgent · GPT-OSS-20B-PrismSQL · GPT-OSS-20B-PrismCode · GGUF Quantizations: flintglass/GPT-OSS-20B-PrismCode-GGUF (Q4_K_M, Q5_K_M)


Verified Zero-Leakage EvalPlus Strict Results (542 Tasks)

Evaluated identically with greedy decoding (temperature=0.0, reasoning_effort="low", Harmony stop <|return|>) against the full EvalPlus strict unit-test suites (80× harder edge-case coverage than standard HumanEval/MBPP):

Benchmark Tasks openai/gpt-oss-20b (Base) flintglass/GPT-OSS-20B-PrismCode Delta Avg Tokens (Base -> PrismCode)
HumanEval+ (EvalPlus Strict) 164 88.41% (145/164) 87.80% (144/164) -0.61 pts 331.8 -> 318.3 (-4%)
MBPP+ (EvalPlus Strict) 378 75.13% (284/378) 78.31% (296/378) +3.18 pts 284.2 -> 242.4 (-15%)
EvalPlus Macro Average 542 81.77% 83.06% +1.29 pts —
EvalPlus Micro Average 542 79.15% (429/542) 81.18% (440/542) +2.03 pts —

Quickstart (transformers)

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "flintglass/GPT-OSS-20B-PrismCode"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")

messages = [{"role": "user", "content": "Write a Python function `longest_palindromic_substring(s: str) -> str` in O(n^2) time and O(1) space."}]
prompt = tok.apply_chat_template(messages, 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=512, do_sample=False)
print(tok.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=False))

Training & Provenance

  • Base Model: openai/gpt-oss-20b (Apache-2.0, 21B total / 3.6B active MoE, dequantized cleanly from MXFP4 to native BF16 with all 336/336 LoRA tensors merged).
  • Algorithm: Pure On-Policy PPO-Clipped GRPO (r=32, alpha=32, 40 steps, K=8 rollouts/prompt, isolated subprocess unit-test execution reward with zero token-shortening bias).
  • License: Apache-2.0
Downloads last month
216
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-PrismCode

Finetuned
(583)
this model
Quantizations
1 model

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