PrismCode-27B / README.md
flintglass's picture
Release Flintglass PrismCode-27B BF16 part 1 (#1 EvalPlus Strict Macro 84.76% +1.27 pts, 89.63% HumanEval+, 79.89% MBPP+)
ea26b25 verified
|
Raw History Blame Contribute Delete
3.15 kB
---
language:
- en
license: apache-2.0
library_name: transformers
pipeline_tag: text-generation
base_model: Qwen/Qwen3.8-27B
tags:
- flintglass
- prismcode
- qwen3
- coding
- python
- evalplus
- rlvr
- grpo
- apache-2.0
---
# Flintglass PrismCode-27B
**Flagship 27B Pure On-Policy Execution-Verified Python Coding RLVR Specialist on Apache-2.0 `Qwen/Qwen3.8-27B`** — achieving **#1 Overall EvalPlus Strict Score in the Flintglass Stack**: **`89.63%` HumanEval+ (+1.22 pts)**, **`79.89%` MBPP+ (+1.32 pts, `-28%` tokens)**, **`84.76%` EvalPlus Strict Macro Average (+1.27 pts)**, and **`82.84%` Micro Average (`449/542` strict EvalPlus tasks solved!)** with **zero synthetic SFT** and **zero proprietary distillation**.
> **Completes the Flagship Flintglass 27B Quartet:** [`PrismAgent-27B`](https://huggingface.co/flintglass/PrismAgent-27B) · [`PrismVerify-27B`](https://huggingface.co/flintglass/PrismVerify-27B) · [`PrismSQL-27B`](https://huggingface.co/flintglass/PrismSQL-27B) · [`PrismCode-27B`](https://huggingface.co/flintglass/PrismCode-27B) · **GGUF Quantizations:** [`flintglass/PrismCode-27B-GGUF`](https://huggingface.co/flintglass/PrismCode-27B-GGUF) (`Q4_K_M`, `Q5_K_M`, `Q6_K`)
---
## Verified Zero-Leakage EvalPlus Strict Results (542 Tasks)
Evaluated identically with greedy decoding (`temperature=0.0`, `enable_thinking=False`) against the full **EvalPlus** strict test suites (80× harder edge-case unit tests than standard HumanEval/MBPP):
| Benchmark | Tasks | `Qwen/Qwen3.8-27B` (Base) | **`flintglass/PrismCode-27B`** | Delta | Avg Tokens (Base -> PrismCode) |
|---|---:|---:|---:|---:|---:|
| **HumanEval+ (EvalPlus Strict)** | 164 | 88.41% (145/164) | **89.63% (147/164)** | **+1.22 pts** | 272.1 -> **247.9 (-9%)** |
| **MBPP+ (EvalPlus Strict)** | 378 | 78.57% (297/378) | **79.89% (302/378)** | **+1.32 pts** | 154.2 -> **111.6 (-28%)** |
| **EvalPlus Macro Average** | **542** | **83.49%** | **84.76%** | **+1.27 pts** | — |
| **EvalPlus Micro Average** | **542** | **81.55% (442/542)** | **82.84% (449/542)** | **+1.29 pts** | — |
---
## Quickstart (`transformers`)
```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "flintglass/PrismCode-27B"
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 `merge_intervals(intervals)` that merges overlapping [start, end] intervals in O(n log n) time."}]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False)
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=True))
```
## Training & Provenance
- **Base Model:** `Qwen/Qwen3.8-27B` (Apache-2.0)
- **Algorithm:** Pure On-Policy PPO-Clipped GRPO (`r=32`, 20 steps, `K=8` rollouts/prompt, isolated subprocess unit-test execution reward with zero token-shortening penalty).
- **License:** Apache-2.0