Skip to main content
Back

Coder390 Trains Qwen3.8-27B to Stop Wasting Tokens Before Failing

A community post-trained Qwen variant uses RLOO to stop endless re-derivation, cutting 94K-token truncations and pushing LiveCodeBench from 83 to 90.

Pro

Model, Full Access
  • Coder390 is a community post-training of Qwen3.8-27B targeting unproductive reasoning tails.
  • LiveCodeBench jumped from 83 to 90, with 94K truncations dropping from 13 to 3.
  • GPQA hits 178/198 and MMLU 450/500 on static FP8, matching or beating the base.
  • Uses RLOO with asymmetric rewards: wrong-and-long is penalized, long-and-correct is not.
  • DFlash2 speculative decoding reaches 180 tok/s single-request, 1,057 tok/s aggregate at C16.
  • Ships BF16, FP8, three NVFP4 tiers, INT8, INT4, and multiple GGUF variants under Apache-2.0.

A new community post-training release, Coder390 model card, targets a costly failure mode in long-context reasoning. A model can produce a valid solution early, continue revising it with loops such as “Wait” and “Actually,” exhaust its context window, and return no final answer. Coder390 packages five Safetensors format families, GGUF and NInfer builds, and two speculative-decoding options. Its Hugging Face page reported more than 56,000 downloads at publication.

Why the model runs out the clock

Coder390 focuses on traces that contain a workable answer before repeated self-correction consumes the remaining token budget. Because the solution already appears in many failed traces, the training objective targets stopping behavior and final-answer production.

The authors compared static FP8 Coder390 with the original Qwen3.8-27B FP8 checkpoint using the same 100K context and a 94,208-token generation cap. GPQA measures graduate-level science reasoning, MMLU covers broad academic knowledge, and LiveCodeBench, abbreviated LCB, evaluates coding.

Benchmark Original FP8 Coder390 FP8 Original cap hits Coder390 cap hits
GPQA 177/198 178/198 4 1
MMLU 444/500 450/500 N/A N/A
LiveCodeBench 83/100 90/100 13 3

The largest behavioral change appears in completion rates. Coder390 reduced GPQA cap hits from four to one and LiveCodeBench cap hits from 13 to three, allowing more runs to return an answer before the server terminates generation.

Reported Coder390 and base FP8 results for GPQA, MMLU, and LiveCodeBench
Model-card comparison of static FP8 Coder390 with the original FP8 checkpoint.

Reward the answer, penalize the loop

The training pipeline alternates supervised fine-tuning with RLOO, short for REINFORCE Leave-One-Out. Supervised examples establish target behavior, while RLOO estimates the relative value of sampled responses without the separate critic, or value model, required by PPO.

Each problem produces eight sampled trajectories. Training retains groups containing at least one correct and one incorrect response, giving the leave-one-out comparison a useful outcome difference. All-correct groups are dropped because they provide no signal for distinguishing better stopping behavior.

Trajectory outcome Reward
Correct, fewer than 24K tokens +1.05
Correct, 24K tokens or longer +1.0
Incorrect, short −0.2
Incorrect, increasing length Scales down to −0.7 beyond 48K
Reaches 94K with an incorrect multiple-choice letter −0.9
Reaches 94K with no answer −1.0

Every correct trajectory retains a positive reward, including those that require long reasoning. Incorrect trajectories receive progressively stronger penalties as they consume more tokens, concentrating the optimization pressure on wasted computation and empty outputs.

On GPQA, the reported 90th-percentile reasoning length fell from 50,577 tokens for the base model to about 26,431 tokens for static FP8 Coder390. In practical terms, 90% of Coder390 traces completed at or below that lower threshold.

Draft model or bundled head?

Speculative decoding accelerates generation by proposing several future tokens and letting the main model verify them in batches. Coder390 offers two mutually exclusive implementations: MTP, a bundled BF16 multi-token prediction head, and DFlash2, a separate 2.4 GB draft model.

Mode Package Reported speed Deployment notes
DFlash2 Separate draft model About 180 tokens/s per request Validated with SGLang
MTP Bundled BF16 head About 91 tokens/s per request No separate draft package
No speculation Main model only About 46 tokens/s per request Baseline generation path

The model card’s RTX PRO 6000 Blackwell tests show DFlash2 leading MTP in per-request speed and aggregate throughput at every measured concurrency level from one to 16 requests. Actual throughput will vary with prompt length, output length, batching, and hardware.

DFlash2 is the faster tested option for SGLang deployments that can load the separate draft model. MTP keeps deployment within the main package when a second model is impractical. FP8 MTP support was temporarily unavailable in vLLM 0.28 at publication, and DFlash2 had only been validated with SGLang.

Precision choices by memory budget

Five Safetensors format families cover BF16, FP8, NVFP4, INT8, and INT4. The release also includes GGUF builds for llama.cpp and NInfer packages for the NVFP4 variants.

Family Available variants Runtime notes
BF16 and FP8 BF16, dynamic FP8 evaluation, static FP8 Block128 BF16 and static FP8 load patch-free in SGLang
NVFP4 W4A16, W4A4, W4A4-W8A8 mixed NInfer packages; roughly 19 GiB reported VRAM use
INT8 W8A8, W8A16 vLLM only
INT4 W4A16 vLLM only
GGUF Q2, Q3, Q4 LynnStyle, Q6_K, Q8_0 llama.cpp
Reported NVFP4, INT8, and NInfer package results with memory use and benchmark scores
Quantized package comparisons published with the release.

BF16, dynamic FP8, and static FP8 produced identical GPQA and LiveCodeBench scores in the authors’ tests. MMLU ranged from 445 to 450, which the model card attributes to sampling variance. The NVFP4 variants reduced reported memory use to about 19 GiB, with GPQA scores ranging from 167 to 172 depending on the format.

All packages use the Apache 2.0 license, and the checkpoint retains text, image, and video inputs. The published quality results focus on the listed reasoning, knowledge, and coding benchmarks, so multimodal workloads require separate evaluation.

Launching FP8 with DFlash2

A 32,768-token SGLang server can load the static FP8 checkpoint and DFlash2 draft with the following command. Operators can adjust context length within the model’s supported range and their available memory.

python -m sglang.launch_server \
  --model-path ./FP8 \
  --context-length 32768 \
  --speculative-algorithm DFLASH \
  --speculative-draft-model-path ./FP8/DFlash2-FP8 \
  --speculative-draft-model-quantization fp8 \
  --speculative-num-draft-tokens 8

Failures remain in the longest traces

Accuracy still declines for reasoning traces of 48K tokens or longer, and three LiveCodeBench problems reach the 94K generation cap. Two persistent GPQA empty outputs come from the same molecular-biology questions across precision levels, indicating that quantization alone does not resolve those cases.

The NVFP4 results also show a measurable GPQA regression relative to FP8, so the model card’s near-lossless quantization claim applies to FP8. Teams considering lower-precision packages need to reproduce the relevant task mix before choosing the memory trade-off.

All benchmark figures come from the release authors, and no independent replication is cited. A comparable evaluation should preserve prompts, sampling settings, context limits, and generation caps while tracking accuracy, token count, cap hits, and empty responses. Those measurements separate improved stopping behavior from changes that reduce reasoning quality.