Nemotron-3.5-Lightning-30B-A3B — EXL3 3.25 bpw for 24 GB GPUs, 262k context (fp8 KV, served with vLLM)
Install from this card, not from generic snippets. This is an EXL3 checkpoint: vLLM loads it only together with exllamav3 and our
vllm-quantpackplugin. Follow Requirements & install and Quick start; a plainpip install vllm, Transformers or SGLang cannot load it.
An unofficial community EXL3 quantization of nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16, NVIDIA's hybrid Mamba-Transformer MoE (31.6 B parameters, about 3 B active, 52 layers of which only 6 are attention), made with exllamav3 1.6.5: 3.25 bpw on the body, a 6-bit lm_head, a 4-bit MTP head and BF16 token embeddings. The calibration data includes agent steps written by the BF16 model itself on our sysadmin prompts. Text only: the base model has no vision.
With so few attention layers its KV cache is tiny: on one RTX 3090 (24 GB) with vLLM's fp8 KV cache it holds a 2.63 M-token KV pool at the full 262,144-token context, and its prefill is fast. Its weaknesses in our tests are tool calls and long-context retrieval; see Known model behaviour before choosing it.
License: OpenMDW-1.1, inherited from the base model (the
LICENSEfile is included). This is not an official release of NVIDIA.
Tested setup: RTX 3090 (24 GB, Ampere, power limit 350 W, driver 595.84), vLLM 0.31.0 + exllamav3 1.6.5 + vllm-quantpack 0.1.4,
--max-model-len 262144, fp8 KV cache (2026-11-02); KL divergence, needle and programming tasks on an NVIDIA A40 (2026-10-30). The model was read from our local copy of these files (same bytes,SHA256SUMS). Only this setup has been tested.
Highlights (full 262,144 context, fp8 KV)
- KLD against BF16: 0.1055 on an opencode agent trace (ours) and 0.0938 on turboderp's public trace.
- Capacity on one RTX 3090: KV pool 2,628,824 tokens (10 × 262k by vLLM's count), 368 MiB free at peak; one 236k-token session was load-tested.
- Tool calls with the real opencode request: 60/60 valid, 57/60 correct (3 cases × 20); battery 19/30 correct (20 valid); agent tasks 22/30 (7/10, 8/10, 7/10). The BF16 model scored 21/30 and 5-7/10 in the same battery.
- Programming tasks (A40): 32/36.
- Needle at 262k (A40): 9 neutral facts at 64k / 128k / 255k: 9/9, 8/9, 3/9.
- Loops: 0/30 at temperature 0.6, 0.8 and 1.0 on long Spanish answers.
- Prefill (A40): 5,651 / 4,930 / 4,279 / 3,781 tok/s at 64k / 128k / 192k / 258k.
Our focus. We quantize and evaluate models for one use case: a local Linux system-administration agent (opencode with tool calling) for a university IT department, used in Spanish. Our calibration traces include real sysadmin/agent conversations in Spanish, and our quality checks (tool calls with the real opencode request, agent tasks with real command execution, long-context retrieval, long answers in Spanish) reflect that use. KL divergence is also reported on turboderp's public trace, so it can be compared and reproduced. Numbers for other domains or languages may differ.
What is in this repository
Which one to use
| GPU | Repo | Context per session | Real concurrent sessions | KV cache | Pick it for |
|---|---|---|---|---|---|
| 24 GB (RTX 3090) | this repo | 262,144 (text) | 1 × 236k load-tested; 10 by vLLM's count | fp8, 2.63 M tokens | fast prefill and a very large KV pool on one card |
| 24 GB (RTX 3090) | Ornith-1.5-35B-A3B EXL3 3.00 | 262,144 | 6 × 236k measured | int4, 1.54 M tokens | better tool calls, agent tasks and long-context retrieval in our tests |
| 16 GB | — | — | — | — | not tested with this build (14.69 GB of weights) |
Files and reproducibility
| File | What it is |
|---|---|
model-00001-of-00002.safetensors, model-00002-of-00002.safetensors, model.safetensors.index.json |
EXL3 weights (14.69 GB) and their index |
quantization_config.json |
exllamav3's per-tensor storage record (bits per tensor; calibration size only, no text) |
config.json, generation_config.json |
model config; sampling defaults of the base model (temperature 1.0, top_p 0.95) |
chat_template.jinja, tokenizer.json, tokenizer_config.json, special_tokens_map.json |
chat template and tokenizer of the base model |
LICENSE |
OpenMDW-1.1 of the base model |
SHA256SUMS |
SHA-256 of every file above |
Not included: the BF16 reference, the calibration data (internal), the plugin (install it from PyPI, see below), and the base model's extra documents (bias, explainability, privacy, safety, plots): read them on the base model page.
Results
RTX 3090 tables: one RTX 3090 24 GB (power limit 350 W, no other use), vLLM 0.31.0 + exllamav3 1.6.5 + vllm-quantpack 0.1.4, --max-model-len 262144, --kv-cache-dtype fp8_e4m3, the Quick start below, 2026-11-02. A40 rows: same stack (vllm-quantpack 0.1.3), 262k, fp8 KV, 2026-10-30.
Quantization quality (exllamav3 qbench, against BF16)
| Trace | KLD mean | KLD median | KLD p90 | Perplexity (BF16) |
|---|---|---|---|---|
| opencode agent trace (ours, 24 conversations) | 0.1055 | 0.0346 | 0.2597 | 4.7637 (4.7959) |
public (qbench_prompts_gen.json, turboderp) |
0.0938 | 0.0131 | 0.2616 | 2.4860 (2.5173) |
Our 3.00 and 2.75 bpw conversions measured 0.1257 / 0.1170 and 0.1210 / 0.1188 (opencode / public), so only the 3.25 is published.
Capacity on one RTX 3090 (24 GB)
--kv-cache-memory-bytes |
KV pool reported by vLLM | Real concurrent sessions | Peak used / free |
|---|---|---|---|
| 9145763758 | 2,628,824 tokens (10.03 × 262,144) | 1 session of 235,929 tokens, 0 preemptions | 23,748 MiB, 368 MiB free |
With 9,309,341,614 bytes only 208 MiB stayed free, below our 300 MiB margin, so the Quick start uses the smaller value.
Test battery (RTX 3090, Quick start)
| Test | Result |
|---|---|
Tool calls, real opencode request, 3 cases × 20 (xhigh) |
60/60 valid, 57/60 correct (20/20, 17/20, 20/20), 0 errors |
| Tool calls, battery | 19/30 correct, 20 valid, 0 errors |
Agent tasks, opencode run, 10 sysadmin tasks × 3 runs (temperature 1.0) |
7/10, 8/10, 7/10 = 22/30 (282-356 s per run) |
| BF16 model, same battery (RTX PRO 6000) | tools 21/30, agent 5-7/10 |
A40 results (262k, fp8 KV)
| Test | Result |
|---|---|
| Programming tasks (12 × 3) | 32/36 (835-936 s per run) |
| Needle, 9 neutral facts | 64k 9/9 · 128k 8/9 · 255k 3/9 |
| Prefill at 64k · 128k · 192k · 258k | 5,651 · 4,930 · 4,279 · 3,781 tok/s |
At 255k the needle misses are wrong answers and two tool calls instead of an answer.
Sampling and repetition loops
RTX 3090, Quick start, 5 long Spanish sysadmin questions × 6 runs per temperature, up to 16,000 tokens, top_p 0.95; a loop = more than 30 % repeated word 8-grams.
| Temperature | 0.6 | 0.8 | 1.0 |
|---|---|---|---|
| Loops / 30 | 0 | 0 | 0 |
| Answers that finished before 16,000 tokens / 30 | 30 | 29 | 30 |
| Empty answers / 30 | 0 | 0 | 0 |
No loops at any temperature tested. This repo keeps the base model's default (generation_config.json): temperature 1.0, top_p 0.95.
Known model behaviour and discarded options
- Model or quantization? The tool-call battery (19/30) and agent tasks (22/30) are close to the BF16 model on the same battery (21/30, 5-7/10), so they look like the model, not the quantization. The KL divergence is about three times that of our Ornith 3.00 build.
- Long-context retrieval drops at 255k (3/9 in the needle test) where Ornith 3.00 scores 9/9.
- Without reasoning the model breaks tool calls (in a 2.75 test it wrote
$ lsand invented the output): keep reasoning on. - Discarded options:
- int4 KV cache: it breaks this model's tool calls (27/36 and 20/36 programming tasks with broken calls), so only fp8 is supported.
- 3.00 and 2.75 bpw: higher KL divergence than the 3.25 (see above).
Requirements & install (vLLM 0.31 + exllamav3 1.6.5 + vllm-quantpack 0.1.4)
Before you install (the same stack as our other cards, checked on a clean Ubuntu 24.04 host on 2026-10-28):
- An NVIDIA driver that supports CUDA 13.2 (tested with 595.84) and uv.
- The Python 3.12 headers and a C compiler: Triton compiles a small C helper every time vLLM starts; without them every
vllm servestops withfatal error: Python.h: No such file or directory. On Debian/Ubuntu:sudo apt-get update && sudo apt-get install -y python3.12-dev build-essential. - No CUDA toolkit is needed: the FlashInfer line below installs prebuilt kernels.
- Disk: about 20 GB for the venv, as much again for uv's cache (
uv cache cleanfrees it), plus 15 GB for the model.
EXL3 is not a native vLLM format. vllm-quantpack (ours, on PyPI) loads it through vLLM's plugin entry point: EXL3 linear and MoE layers through exllamav3's kernels, and the MTP head.
uv venv --python 3.12 venv
uv pip install --python venv/bin/python vllm==0.31.0 --torch-backend=auto # torch 2.13.0
uv pip install --python venv/bin/python flashinfer-cubin==0.7.0.post1 flashinfer-jit-cache==0.7.0.post1+cu130 \
--extra-index-url https://flashinfer.ai/whl/ --extra-index-url https://flashinfer.ai/whl/cu130/ --index-strategy unsafe-best-match # FlashInfer kernels
W=exllamav3-1.6.5+cu132.torch2.13.0-cp312-cp312-linux_x86_64.whl
curl -L -o /tmp/$W "https://github.com/turboderp-org/exllamav3/releases/download/v1.6.5/${W/+/%2B}"
uv pip install --python venv/bin/python /tmp/$W "vllm-quantpack>=0.1.4"
venv/bin/python -c "import torch; from exllamav3.ext import exllamav3_ext; print(torch.__version__, torch.cuda.get_device_name(0))"
Quick start (single RTX 3090, 24 GB)
The configuration of every RTX 3090 table above (text, no MTP):
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True VLLM_USE_FLASHINFER_SAMPLER=0 VLLM_DISABLE_SHARED_EXPERTS_STREAM=1
vllm serve JRamirez-UAB/Nemotron-3.5-Lightning-30B-A3B-EXL3-3.25bpw-24GB \
--served-model-name nemotron \
--max-model-len 262144 \
--kv-cache-dtype fp8_e4m3 \
--kv-cache-memory-bytes 9145763758 \
--max-num-seqs 8 \
--max-num-batched-tokens 8192 \
--enable-prefix-caching \
--reasoning-parser nemotron_v3 \
--enable-auto-tool-choice --tool-call-parser qwen3_coder
On a card that also drives a display, lower --kv-cache-memory-bytes by what the desktop uses. On 48 GB GPUs raise it: only 6 of the 52 layers keep a KV cache (2 KV heads each), about 3.5 KB per token in fp8.
Using it with opencode (how we tested)
limit.context must match --max-model-len (262144 above).
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"local-vllm": {
"npm": "@ai-sdk/openai-compatible",
"name": "local vLLM",
"options": { "baseURL": "http://127.0.0.1:8000/v1" },
"models": {
"nemotron": {
"name": "Nemotron-3.5-Lightning-30B-A3B EXL3 3.25 (local)",
"tool_call": true,
"temperature": true,
"limit": { "context": 262144, "output": 32768 }
}
}
}
},
"agent": {
"build": { "model": "local-vllm/nemotron", "temperature": 1.0 },
"plan": { "model": "local-vllm/nemotron", "temperature": 1.0 }
}
}
- Declare
"temperature": truein the model, otherwise opencode sends no temperature to a custom model. - With
output: 32768opencode compacts the history at aboutcontext − 32ktokens of input, before vLLM rejects the request. - The agent and tool tests in Results ran opencode against the Quick start server with this configuration.
Important notes
VLLM_DISABLE_SHARED_EXPERTS_STREAM=1is required. The fused exllamav3 MoE kernel needs the whole GPU; otherwise vLLM runs the shared expert on a parallel CUDA stream and decoding hangs. The plugin sets it, but export it yourself too.- fp8 KV only.
--kv-cache-dtype int4_per_token_headloads but breaks tool calls with this model. - Memory. The driver reserves about 453 MiB of a 24 GB card that vLLM cannot use: read the real headroom with
nvidia-smi --query-gpu=memory.free. Size the KV cache with--kv-cache-memory-bytes, not--gpu-memory-utilization. - Prefix caching matters for agents: opencode sends the same tools and system prompt in every request, and each turn repeats the whole conversation.
- Hugging Face page warnings: the "Model size" shown by Hugging Face counts packed storage elements, not parameters; the Configuration Parsing Warning about
quantization_config.bitsnot being an integer is expected (EXL3bitsis an average). - No tensor or expert parallelism for the EXL3 MoE path: one GPU per instance.
- Use
--reasoning-parser nemotron_v3and--tool-call-parser qwen3_coder.
Quantization recipe
| Step | Setting |
|---|---|
| Source | nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16 revision a9904d24; chat template and tokenizer unchanged |
| Tool | exllamav3 1.6.5 convert.py (reads the NemotronH layer types and MTP head natively), NVIDIA A40 |
| Body | 3.25 bpw (-b 3.25) |
lm_head / MTP head |
6 / 4 bits |
| Calibration | 589 rows built from agent steps written by the BF16 model on our internal sysadmin prompts plus real conversation prefixes; not published, and no text is stored in the weights |
| Token embeddings | BF16 (unchanged) |
Integrity and validation
Artifact integrity
SHA256SUMSlists every file; the verifier compares the repo with our local copy byte for byte before publication.- The safetensors files carry no
__metadata__;quantization_config.jsonholds only bit widths, tensor layout and the calibration size (rows and columns).
Quantization
- KL divergence against the BF16 model with exllamav3's
qbenchon two traces (Results).
Chat template
- The base model's template, unchanged.
Runtime
- Load, capacity, tool calls with the real opencode request, agent tasks and loops on the RTX 3090; needle, programming tasks and prefill on the A40: see Results.
Scope: results apply to the stack (vLLM 0.31.0 + exllamav3 1.6.5 + vllm-quantpack 0.1.3/0.1.4), the RTX 3090 / A40 and the settings stated above; other setups are not tested.
Limitations
- Review the commands before they run. As an agent, the model proposes shell commands and opencode can execute them: give it a non-privileged account and a test machine where you can.
- Will not load with stock vLLM, Transformers or SGLang: it needs exllamav3 and vllm-quantpack.
- Not measured: MTP at 262k (it loads and drafted 2.00 accepted tokens per step in a 32k test of our 2.75 build), more than one 236k session under load, decode speed and prefill on the RTX 3090, reasoning problems. The calibration and the opencode trace are internal, so those KLD numbers cannot be reproduced outside; the public-trace KLD can.
- The EXL3 MoE path is our own plugin code, not upstream vLLM.
Feedback welcome
Reports of installations, both working and failed ones, are very welcome in the Community tab: GPU(s), driver, vLLM version, the full command line and the result (speed, context, or the error).
Credits & license
- Base model: nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16 by NVIDIA (OpenMDW-1.1).
- exllamav3 by turboderp (quantization, kernels,
qbenchand the public trace); EXL3 is based on QTIP (Tseng et al.). - vLLM; vllm-quantpack (ours, Apache-2.0).
- This quantization is released under the same license as the base model (OpenMDW-1.1).