What was changed
All edits are rank-1 projections that remove a "refusal direction" r from the matrices that write to the
residual stream: W' = W − s · r(rᵀW). Each matrix gets its own scale s.
Table with columns: Patch, Direction, Where, Purpose| Patch | Direction | Where | Purpose |
|---|
nemotron-refusal-l35 | difference of mean activations at layer 35, harmful vs harmless prompts, thinking off | all residual writers, s = 1 | removes refusals in non-thinking mode |
s2-t31-main | same direction, interpolated across layers | per-layer, per-kind scales from a search | strengthens removal at the lowest damage |
s2-t31-reason | layer 23 direction from the first 192 reasoning tokens, orthogonal to the first | per-layer profile | removes refusals that start inside the reasoning trace |
The per-matrix scales came from a multi-objective search (Optuna MO-TPE, 40 trials). The objectives
were the refusal rate and the KL divergence from the base model's reasoning on harmless and coding
prompts. Out of the Pareto front, this checkpoint has the lowest KL among trials with at most 8%
refusals during the search. The exact layers and scales are in cypher_patches.json.
Measured results
The refusal evaluations use 200 held-out prompts per set, not used to find the directions. Refusal is
judged on the reply. HumanEval+ is pass@1. The agentic bench has 11 multi-file Python repair tasks with
6 runs each, run through the OpenAI tool-calling API. Hidden tests decide whether a task was solved.
Table with columns: Base model, This model | Base model | This model |
|---|
| Harmful prompts refused, thinking off | 98.4% (layer sweep baseline) | 0 / 200 |
| Harmful prompts refused, thinking on | — | 0 / 200 |
| Harmless prompts refused | — | 0 / 200 |
| HumanEval+ | 92.1 / 90.9 (two runs) | 87.8 |
| Agentic bench solved (standard tools) | 80.3% / 69.7% (two runs) | 80.3% / 77.3% / 74.2% (three runs) |
| Agentic bench loops (standard tools) | 12.1% / 13.6% | 13.6% / 15.2% / 15.2% |
| Agentic bench solved, with a Python-snippet tool | not measured | 86.4%, 0% loops |
| Tool calls narrated instead of made / false claims about tool results | — | 0 in every run |
The agentic solve rate varies by about ±5 points between identical runs, even for the base model, so the
small differences are within the noise. The clear cost is about 3–4 points of HumanEval+.
Serving with vLLM
The model uses NVIDIA's chat template and tool format unchanged. When serving it, use the qwen3_coder
tool-call parser.
Prompts longer than about 128k tokens need extra care. There, both this model and the base model
sometimes answer inside the <think> block and stop without closing it, so the stock nemotron_v3
reasoning parser returns an empty reply. vllm/nemotron_nonempty.py is a reasoning-parser plugin that
returns such an unclosed reply as content. It changes nothing else. Tested with vLLM 0.30.1rc1.dev565.
vllm serve <path-to-this-repo> \ --trust-remote-code --max-model-len 262144 --kv-cache-dtype fp8 \ --reasoning-parser-plugin vllm/nemotron_nonempty.py --reasoning-parser nemotron_v3_nonempty \ --enable-auto-tool-choice --tool-call-parser qwen3_coder
Without the plugin, use --reasoning-parser nemotron_v3 and keep prompts under about 128k tokens.
Responsible use
This model will follow instructions that the original model would refuse. You are responsible for how
you use it, and for any filtering your application needs.
License
Distributed under NVIDIA's OpenMDW License Agreement 1.1 (LICENSE), the same as the base model, with
NVIDIA's copyright notice kept. The modifications carry the same terms.