flintglass's picture
Release Flintglass Inkling-2-Mini-PrismCode BF16 part 1 (87.80% HumanEval+ +12.80 pts, 83.32% EvalPlus Macro)
c60a4c3 verified
|
Raw History Blame Contribute Delete
3.7 kB
metadata
language:
  - en
license: apache-2.0
library_name: transformers
pipeline_tag: text-generation
base_model: thinkingmachines/Inkling-2-Mini
tags:
  - flintglass
  - prismcode
  - inkling-2
  - coding
  - python
  - rlvr
  - grpo
  - evalplus
  - apache-2.0

Flintglass Inkling-2-Mini-PrismCode

Pure On-Policy Execution-Verified Python Coding RLVR on Apache-2.0 thinkingmachines/Inkling-2-Mini — achieving 87.80% HumanEval+ (+12.80 pts), 78.84% MBPP+ (+2.38 pts), 83.32% EvalPlus Strict Macro Average (+7.59 pts, +30 additional strict EvalPlus tasks solved!), and -47% fewer output tokens (1.9× faster!) with zero synthetic SFT and zero proprietary distillation.

Part of the Flintglass Prism Open-Source Agent & RAG Stack · GGUF Quantizations: flintglass/Inkling-2-Mini-PrismCode-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, reasoning_effort=0.0, max_tokens=1024) against the full EvalPlus strict test suites (80× more edge-case unit tests than standard HumanEval/MBPP):

Benchmark Tasks Inkling-2-Mini (Base) flintglass/Inkling-2-Mini-PrismCode Delta Avg Tokens (Base -> PrismCode)
HumanEval+ (EvalPlus Strict) 164 75.00% (123/164) 87.80% (144/164) +12.80 pts 610.0 -> 319.0 (-48%)
MBPP+ (EvalPlus Strict) 378 76.46% (289/378) 78.84% (298/378) +2.38 pts 442.8 -> 238.3 (-46%)
EvalPlus Macro Average 542 75.73% 83.32% +7.59 pts 526.4 -> 278.7 (-47%)
EvalPlus Micro Average 542 76.01% (412/542) 81.55% (442/542) +5.54 pts —

How It Was Trained (Pure On-Policy Execution RLVR)

  • Base Model: thinkingmachines/Inkling-2-Mini (Apache-2.0)
  • Algorithm: PPO-Clipped GRPO (r=32, 40 steps, K=8 rollouts/prompt, 32 prompts/step, cosine LR 3e-5 -> 3e-6)
  • Live Execution Verifier: Every single rollout is executed inside an isolated Python subprocess against real unit tests from permissive commercial-safe coding problems (zero overlap with HumanEval+/MBPP+, zero proprietary LLM completions).
  • Reward Shaping: +1.00 all unit tests pass, +0.08 clean code block, +0.05 concise solution (<= 240 tokens), -0.15 Python syntax error.

Quickstart (transformers)

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "flintglass/Inkling-2-Mini-PrismCode"
tok = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto", trust_remote_code=True)

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, reasoning_effort=0.0)
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))

Local Inference (GGUF / llama.cpp / Ollama)

See flintglass/Inkling-2-Mini-PrismCode-GGUF for verified Q4_K_M, Q5_K_M, and Q6_K quantizations.

License: Apache-2.0