Nemotron-3.5-Lightning-30B-AgentCoder
an agentic model with dialed-in tool calling
3 min read
Built for multi-step agentic workflows, this model knows when to answer directly, call external functions, or analyze the results they return. It is based on the hybrid NVIDIA Nemotron-3.5-Lightning-30B-A3B-BF16 architecture (31.6B total parameters, with roughly 3B active per token via a Mixture-of-Experts setup combining Mamba-2 layers and standard attention). Instead of standard fine-tuning on static full conversations, creator Bruno Pistone used GRPO (reinforcement learning without a separate reward model) with Kimi-K3 acting as a judge at specific decision points. As a result, the model avoids runaway generations, tracks down root causes of bugs more accurately, and preserves the general capabilities of the base model since only 0.1435% of parameters were updated via LoRA (a lightweight adapter layer on top of the weights). It is well suited for developers building autonomous coding assistants and CLI agents that need reliable tool calling over long contexts.
Key features
- Trained on specific decision points within dialogues rather than entire chat logs, directly sharpening the agent's next-step logic.
- Cuts overly long responses from 22.8% down to 4.4%, reducing average generation length by roughly 40% while improving output quality.
- Massive 262,144-token (~256K) context window powered by a hybrid Mamba-2 + MoE architecture (128 routed experts, 6 active per token).
- Native support for reasoning inside
tags and structured function calls viatags in the chat template.
What you can do
- Drop it into a multi-step coding assistant for writing code, troubleshooting failures, and testing hypotheses to find root causes.
- Wire it into sysadmin and data-processing agents that need to safely run shell commands and parse logs.
- Pair it with a verifier in best-of-8 mode for mission-critical tasks where extra latency is a worthwhile trade-off for peak accuracy.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "br1-pist/Nemotron-3.5-Lightning-30B-AgentCoder"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, dtype="auto", device_map="auto", trust_remote_code=True)
messages = [{"role": "user", "content": "List the files in /var/log, then summarise the largest one."}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(**model_inputs, max_new_tokens=1024)
Read more
DetailsTraining prompt metrics scored by the Kimi-K3 judge: mean reward jumped by +50.1% (from 0.4121 to 0.6184), and best-of-8 climbed from 0.648 to 0.741 (a held-out benchmark is not included in this release).
The model weighs ~63 GB (47 safetensors shards in bfloat16) and requires
mamba-ssm and causal-conv1d for fast inference.Trained for 26.5 hours on 16 NVIDIA H100 (80 GB) GPUs using LoRA (rank 64, alpha 128) and the DAPO loss function across 3,686 decision points.
Caveats: tool schemas must be passed strictly via
apply_chat_template(..., tools=[...]), and generation stopping must use both EOS tokens specified in generation_config.json ([2, 11]).









Comments