license: mit
base_model: nvidia/NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB-GGUF
tags:
- gguf
- lora
- llama.cpp
- abliteration
- nemotron
Nemotron 3.5 Bolt 74B-A9B 24GB: refusal-direction abliteration as a rank-1 LoRA
We built this to drive our internal instance of the ARTEX autonomous penetration testing platform.
You are welcome to use it to protect things that are yours, or to learn more about security. The
world already has a surplus of trouble, please do not use this to get into other people's stuff.
A 5 MB llama.cpp LoRA adapter (abl-L42.gguf) that removes the refusal direction from
NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB-GGUF.
NVIDIA's GGUF is used unchanged. Load the adapter on top of it, at strength 0.8:
llama-server -m NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB.gguf \
--lora-scaled abl-L42.gguf:0.8 -ngl 99 -fa on -ctk q8_0 -ctv q8_0 --jinja --temp 1.0 --top-p 0.95
Why a LoRA
Abliteration (Arditi et al., 2024) projects one direction r out of every matrix that writes to the
residual stream: W' = W - r rᵀW. That is a rank-1 update, so it fits a LoRA exactly:lora_b = -r, lora_a = rᵀ(sW), where s is the tensor's .scale (llama.cpp adds the LoRA delta
after the scaled base matmul). For the token embedding the delta is -(E_t·r) r.
Doing it this way avoids re-quantizing. The 24GB GGUF stores the Mamba output projections as NVFP4 and
the shared experts as IQ2_XXS. gguf-py can decode these but not re-encode them. Re-encoding the edited
tensors to Q4_0 added 9% weight error, and the quantization noise put back about 24% of the removed
direction. With the LoRA, the base weights stay as NVIDIA shipped them, the strength is a runtime knob,
and removing --lora-scaled restores stock behaviour.
Edited residual writers (129 tensors): attn_output ×8 (Q8_0), ffn_latent_up ×40 (Q8_0; the routed
experts write into a 1024-dim latent, so they need no edit), ffn_down_shexp ×40 (IQ2_XXS),ssm_out ×40 (NVFP4), and token_embd.
How the direction was found
- 400 harmful prompts: 300 CyberSecEval MITRE attack prompts and 100 AdvBench. 400 harmless prompts: 300 CyberSecEval
MITRE false-refusal (benign security) prompts and 100 Alpaca. Matching benign security prompts keeps
"this is about security" out of the direction. - Each prompt was rendered with Bolt's chat template (thinking on) and run once through llama.cpp
(scripts/abl_collect.cpp). The output of every block was captured at the last token, and the mean
harmless activation was subtracted from the mean harmful one per layer.refusal_dirs_bolt74b.npy
holds these differences: 88 layers × 4096, float32, not normalized. - Ten candidate layers (36–78) were screened. The direction from layer 42 of 88 worked best.
Directions from layer 52 and deeper make the model refuse more benign prompts.
Results
All runs used two RTX 5060 Ti cards with q8_0 KV cache. The red-team and benign sets were graded with a
keyword refusal check, and outputs were read by hand. Sampling was greedy for the refusal sets and
temperature 1.0 / top_p 0.95 for the agent tasks.
| Stock | L42 × 1.0 | L42 × 0.8 (recommended) | |
|---|---|---|---|
| Red-team prompts refused, thinking off | 28/40 | 0/40 | 1/40 |
| Harmful prompts refused, thinking on | 23/40¹ | 0/40¹ | 0/40² |
| Benign security prompts refused (false refusals) | 33/100 | 8/100 | 9/100 |
| Multi-turn ops-agent task (tool calls, mocked infra) | 5/5 pass | 3/6 pass | 14/15 pass |
| 20 single tool calls | 20/20 | 20/20 | 20/20 |
| RAG answering with citations | 19/20 | 18/20 | 18/20 |
| Decode, tok/s | 58–59 | ~56 | ~56–57 |
¹ 1,536-token cap, so some answers were graded on unfinished reasoning. ² 6,144-token cap.
At full strength the model loses caution in agent loops: in the ops task it rebooted a VM the evidence
did not call for, or looped until the turn limit. That is why 0.8 is the recommendation. Even at 0.8,
1 run in 15 took the same VM action. Keep human approval on destructive tools.
On an Apple M1 Max (llama.cpp Metal) the same setup decodes at about 23 tok/s, and 3 × 256k slots add
about 21 GB of memory.
Note: llama-server serves every loaded adapter by default
If several adapters are loaded, a request with no "lora" field gets all of them at their global
scale. Load only this adapter in production, or name it in every request.
Files
abl-L42.gguf: the LoRA (rank 1, alpha 1, float32), archnemotron_h_moe.refusal_dirs_bolt74b.npy: per-layer harmful−harmless mean differences (88 × 4096).scripts/:abl_collect.cpp(activation means, links against libllama),render.py(chat template),abl_lora.py(builds LoRAs from the directions; setGGUF_PYto a llama.cpp tree's gguf-py),test_lora.py(self-check),probe.py(refusal probe with per-request LoRA),gguf_diff.py
(tensor-level diff of two GGUFs).
License
Our work (the scripts, the method and this card) is under the MIT License (LICENSE).
The adapter (abl-L42.gguf) and the direction vectors (refusal_dirs_bolt74b.npy) are computed from
NVIDIA's Nemotron 3.5 Bolt 74B-A9B weights. The base model is under the
OpenMDW License Agreement 1.1, which permits use without restriction
but requires that a copy of the agreement and NVIDIA's notices of origin travel with any portion you
redistribute. That copy, with the notice, is in LICENSE-OpenMDW-1.1. Keep it with the files if you
redistribute them.