Instructions to use ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch") model = AutoModelForCausalLM.from_pretrained("ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch
- SGLang
How to use ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch with Docker Model Runner:
docker model run hf.co/ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch
Nemotron-3.5-Lightning-30B-A3B-DeepResearch
Nemotron-3.5-Lightning-30B-A3B-DeepResearch is a deep-research agent model from Scale AI. It is fine-tuned from NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16, a hybrid Mamba-Transformer mixture-of-experts model with 30B total and about 3B active parameters. The model works in a loop: it searches the web, reads pages and runs Python, and then gives a final answer.
This checkpoint is the "After RL" model in Table 2 of our whitepaper. Paper: https://labs.scale.com/papers/post-training-nemotron-for-deep-research
Results
| Model | HLE | GAIA | BrowseComp | DeepSearchQA (Mean-F1) |
|---|---|---|---|---|
| Nemotron 3.5 Lightning (base) | 25.8 | 65.7 | 37.0* | 69.1 |
| After SFT and merge | 32.5 | 72.5 | 38.8 | 73.0 |
| Nemotron-3.5-Lightning-30B-A3B-DeepResearch (after RL) | 37.2 | 80.6 | 46.4 | 76.0 |
How we measured:
- We ran every number in the table, except the base model's BrowseComp score (*), which is NVIDIA's published number.
- Agent harness: the NeMo Gym deep-research loop with three tools (web search, page visit, Python). Model context 131,072 tokens; up to 32,768 output tokens per turn and 400 turns.
- Context reset: when the prompt grows past the limit, the history is cut to the question and the last 3 tool rounds. The limit is 97,280 tokens for HLE, GAIA and DeepSearchQA, and 50,000 tokens for BrowseComp. A rollout that ends with no answer is run again; each question gets at most 3 attempts.
- Sampling: temperature 1.0, top_p 0.95.
- Full question sets: HLE text-only (2,158), GAIA text-only validation (103), BrowseComp (1,266), DeepSearchQA (900).
- Each score is the mean of 3 runs (avg@3). Judges: o3-mini (HLE, BrowseComp), gpt-4.1 (GAIA), gemini-2.5-flash (DeepSearchQA Mean-F1).
- A blocklist removes known sites that publish benchmark answers from search results and page visits.
- The row for this model uses the same tool-error rules as its RL training (retry of failed searches, guards against duplicate calls). The other two rows do not.
Training
- Supervised fine-tuning of the base model on multi-turn deep-research trajectories that include context resets (156 steps).
- Merge: linear interpolation of the fine-tuned weights with the base weights (0.7 fine-tuned, 0.3 base).
- Reinforcement learning with NeMo RL and the NeMo Gym deep-research environment: 30 steps on 800 prompts (reasoning, lookup and multi-hop questions), a judge model grades each final answer, learning rate 5e-6, context 131,072 tokens, up to 400 turns, no context reset during training.
The base model's multi-token prediction (MTP) head was not trained and is not in this checkpoint
(num_nextn_predict_layers is 0). Do not use MTP speculative decoding with this model.
Use with vLLM
Tested with vLLM 0.27.1 on 2 H100 GPUs:
vllm serve ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch \
--tensor-parallel-size 2 \
--max-model-len 131072 \
--reasoning-parser nemotron_v3 \
--tool-call-parser qwen3_coder \
--enable-auto-tool-choice
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
tools = [{
"type": "function",
"function": {
"name": "search",
"description": "Search the web and return the top results.",
"parameters": {
"type": "object",
"properties": {"query": {"type": "string", "description": "The search query."}},
"required": ["query"],
},
},
}]
response = client.chat.completions.create(
model="ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch",
messages=[{"role": "user", "content": "Who built the elevators of the Eiffel Tower?"}],
tools=tools,
temperature=1.0,
top_p=0.95,
max_tokens=32768,
)
print(response.choices[0].message)
The results above come from the full agent loop (tools, context reset, re-runs). A single chat call with these weights does not reproduce them.
Use with Transformers
Tested with transformers 5.17.0. Like the base model, this model needs transformers 5.x: transformers 4.x does not
include the nemotron_h architecture.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch")
model = AutoModelForCausalLM.from_pretrained("ScaleAI/Nemotron-3.5-Lightning-30B-A3B-DeepResearch", dtype=torch.bfloat16, device_map="auto")
messages = [{"role": "user", "content": "What is the capital of France?"}]
inputs = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_tensors="pt", return_dict=True
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=1024, do_sample=True, temperature=1.0, top_p=0.95)
print(tokenizer.decode(outputs[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Without the mamba-ssm and causal-conv1d packages, transformers uses slower PyTorch code for the Mamba layers.
For serving, use vLLM.
Chat template
The chat template is NVIDIA's, with one changed default: truncate_history_thinking is False, so the reasoning of
earlier assistant turns stays in the prompt, as in our training and evaluation. This only changes chats with more
than one user question. To get NVIDIA's behaviour, pass chat_template_kwargs={"truncate_history_thinking": True}.
Reasoning is on by default; chat_template_kwargs={"enable_thinking": False} turns it off.
Limitations
- The model was trained for English web research with tools. General chat and instruction following were not training goals.
- The model can give wrong answers with confidence. Check its sources.
- We did no safety training beyond what the base model has.
- NVIDIA's model card lists data derived from Scale's HLE questions in the base model's training data. Read the HLE results with this in mind.
License
OpenMDW-1.1, the license of the base model. See LICENSE and NOTICE.
- Downloads last month
- 238