SenseNova-Loop-9B — EXL3 5.00 bpw for 24 GB GPUs (262k context × 2 sessions, vision, MTP, served with vLLM)

Install from this card, not from generic snippets. This is an EXL3 checkpoint of a looped model that stock vLLM 0.34 does not ship: vLLM loads it only together with exllamav3 and our vllm-quantpack plugin (0.1.10 or later), which carries the SenseNova Loop model. Follow Requirements & install and Quick start; a plain pip install vllm, Transformers or SGLang cannot load it.

An unofficial community EXL3 quantization of sensenova/SenseNova-Loop-9B, the 9B looped vision-language model (32 physical layers, of which layers 4-27 run twice per token; Qwen3.5-style linear attention with 8 full-attention layers, a vision tower and an MTP head). 5.00 bpw on average, with the bits of every tensor chosen from its measured sensitivity (3 to 7 bits), a 6-bit lm_head, a 6-bit vision tower and a 6-bit MTP head; token embeddings stay BF16. The calibration Hessians of the looped layers were collected over both passes of the loop, on our internal sysadmin calibration data.

On one 24 GB GPU it serves the full 262,144-token context to 2 sessions at once with the k8v4_per_token_head KV cache (int8 keys, int4 values) and MTP 2, with 329 MiB free at the peak; on 16 GB it serves one session of 241,664 tokens without MTP. Its KL divergence against BF16 is 0.005 / 0.006, its long-context retrieval matches the BF16 model needle for needle up to 256k, and vision passed our image test 15/15.

Use temperature 1.0, top_p 0.95, top_k 20. The base model leaks Chinese words into Spanish answers, BF16 included (see Known model behaviour); top_k 20 cuts it 4-6×. This repo's generation_config.json sets all three (the base model's has no top_k), and vLLM applies them as the server defaults.

License: Apache-2.0, inherited from the base model (see LICENSE and NOTICE). This is not an official release of the SenseNova authors.

Tested setup: capacity, battery, loops and speed on an RTX PRO 6000 Blackwell limited to a 24 GB card (vLLM's memory and KV pool capped to 24,576 MiB minus the 460 MiB a real card's driver reserves); 16 GB capacity on an A40 limited the same way; KL divergence on an A40. Stack: vLLM 0.34.0 + exllamav3 1.6.7 + vllm-quantpack (development tree of 0.1.10), --max-model-len 262144, 2026-11-24. The Requirements & install block below was then run in a new environment with vllm-quantpack 0.1.10 from PyPI and the Quick start served text, an image and a tool call on an A40. Only these setups have been tested.

Highlights (one 24 GB GPU, full 262,144 context)

  • KLD against BF16: 0.0060 on an opencode agent trace (ours) and 0.0051 on turboderp's public trace.
  • Capacity: KV pool 599,557 tokens, 2 real concurrent sessions of the full context, 329 MiB free at the peak (k8v4_per_token_head, MTP 2, vision).
  • Long context: needle (8 facts in one prompt) at 8 depths from 93k to 248k: the same 2 misses as the BF16 model, no others; 64k / 128k / 241k in the battery: 8/8 each.
  • Tool calls: 30/30 in the battery; with the real opencode request 60/60 (3 cases × 20); agent tasks 21/30 (6, 9, 6; BF16: 23/30); vision 15/15.
  • Reasoning: 39/48 at xhigh, 22,192 reasoning tokens in total (median 346 per problem), none cut.
  • Loops: 0/30 at temperature 1.0 (1/30 at 0.6, 2/30 at 0.8), all 30 answers finished.
  • Decode with MTP 2, 1 / 2 / 4 / 8 requests: 98.3 / 157.1 / 297.8 / 526.1 tok/s (64.6 / 89.1 / 175.3 / 322.8 without MTP).

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 Configuration Context per session Real concurrent sessions KV cache Speculative decoding
24 GB (RTX 3090, RTX 4090, ...) main (this card), Quick start 262,144 with vision 2 measured (pool 599,557 tokens) k8v4_per_token_head MTP 2
16 GB main, no speculative decoding at most 241,664 1 (pool 333,985 tokens, 375 MiB free) k8v4_per_token_head none

On 16 GB one session of the full 262,144 tokens does not fit next to the 7.9 GB of weights: the prefill of a 262k prompt needs more memory than is left, even though the KV pool would hold it. With MTP 2 the limit is 195,584 tokens, without it 241,664 (--kv-cache-memory-bytes 7614968627, the largest that started and kept ≥300 MiB free); the short test battery passed in that configuration (see Capacity).

Other sizes in this repository (branches, the user's choice)

main is our pick. The other bit widths we built and tested are kept as branches of this repo, as is, for anyone who wants to try another size/quality trade-off; each branch has its own card with its measurements and limitations.

Branch bpw Weights KLD opencode / public 24 GB 16 GB Main limitation
main 5.00 7.90 GB 0.0060 / 0.0051 2 × 262,144, MTP 2 1 × 241,664, no MTP 16 GB below the full context
3.5bpw 3.50 6.60 GB 0.0374 / 0.0339 2 × 262,144, MTP 2 1 × 262,144, no MTP smoke failed (53 CJK characters in one answer), 7/8 parallel sessions
4.0bpw 4.00 7.04 GB 0.0217 / 0.0193 2 × 262,144, MTP 2 1 × 262,144, no MTP smoke failed (CJK in 2 of 4 answers), loses 2 facts at 124k that BF16 keeps
6.0bpw 6.00 8.76 GB 0.0020 / 0.0017 2 × 262,144, MTP 2 not measured none found; 0.86 GB more than main for no measured gain

To use a branch, download it with hf download JRamirez-UAB/SenseNova-Loop-9B-EXL3 --revision <branch> --local-dir <dir> and serve the local directory with the settings of its card.

Files and reproducibility

File What it is
model.safetensors EXL3 weights, vision tower and MTP head (7.90 GB)
quantization_config.json exllamav3's per-tensor storage record (bits per tensor; calibration size only, no text)
config.json, generation_config.json model config with the EXL3 quantization_config; sampling defaults (temperature 1.0, top_p 0.95, top_k 20)
chat_template.jinja, tokenizer.json, tokenizer_config.json chat template and tokenizer of the base model
preprocessor_config.json, processor_config.json, video_preprocessor_config.json image/video processor of the base model
modeling_sensenova_loop.py the base model's Transformers code (referenced by config.json; vLLM uses vllm-quantpack's implementation)
LICENSE, NOTICE Apache-2.0 text and the list of changes made to the base model
SHA256SUMS SHA-256 of every file above except this card

Not included: the BF16 reference, the calibration data (internal), the plugin (install it from PyPI, see below).

Results

Unless stated otherwise: one RTX PRO 6000 limited to 24 GB as described in Tested setup, vLLM 0.34.0 + exllamav3 1.6.7 + vllm-quantpack 0.1.10, the Quick start settings (k8v4_per_token_head, --kv-cache-memory-bytes 15311264808, --max-num-seqs 8, MTP 2), measured on 2026-11-24.

Quantization quality (exllamav3 qbench, against BF16, A40)

Trace KLD mean KLD median KLD p90 Perplexity (BF16)
opencode agent trace (ours, 24 conversations) 0.0060 0.0021 0.0154 3.1958 (3.1887)
public (qbench_prompts_gen.json, turboderp) 0.0051 0.0008 0.0144 1.9384 (1.9340)

Capacity

GPU size --kv-cache-memory-bytes KV pool reported by vLLM Real concurrent sessions Peak used
24 GB 15311264808 599,557 tokens (2.29 × 262,144) 2 sessions of 235,929 tokens at once, 0 preemptions (a third waited) 23,787 MiB, 329 MiB free
16 GB (A40 limited to 16 GB), no MTP 7614968627, --max-model-len 241664 333,985 tokens 1 15,549 MiB, 375 MiB free
16 GB, MTP 2 7143864401, --max-model-len 195584 278,480 tokens 1 15,553 MiB, 371 MiB free

With 16,417,512,488 bytes the 24 GB run went over the card (691 MiB short), so the value above is the largest that kept ≥300 MiB free. The 16 GB configuration without MTP also passed the short test battery: smoke 4/4 finished with 2 CJK characters, tool calls 30/30, vision 15/15, needle 64k / 128k / 222k 8/8 each, 8 sessions of 30k tokens 8/8.

Test battery

Test Result
Smoke: 3 long Spanish sysadmin answers with temperature 1.0 / top_p 0.95 / top_k 20, plus 1 with the server defaults all finished (2,291-3,152 tokens), 2 CJK characters in total, no loops
Tool calls, real opencode request, 3 cases × 20 (xhigh) 60/60 correct (20/20, 20/20, 20/20)
Tool calls, battery 30/30 valid and correct, 0 errors
Agent tasks, opencode run, 10 sysadmin tasks × 3 runs (temperature 1.0) 6/10, 9/10, 6/10 = 21/30
Reasoning, 6 problems × 8 at xhigh 39/48, 22,192 reasoning tokens (median 345.5), 0 cut by the limit
Vision (4 images, see below) 15/15
Needle, 8 facts in one prompt 64k 8/8 · 128k 8/8 · 241k 8/8
8 sessions of 30k tokens at once 8/8 retrieved, 4,466 tok/s aggregate prefill
Small games (write and run code) 39/48 points, 1 of 4 programs ran
Decode, 1 / 2 / 4 / 8 requests (MTP 2) 99.5 / 177.5 / 304.0 / 534.8 tok/s

Long-context retrieval against BF16

8 facts (colour → code) hidden in one prompt, temperature 0, k8v4_per_token_head KV, MTP 2; the same prompts for every model (A40 for BF16, RTX PRO 6000 for the EXL3 packs).

Prompt tokens 92,987 108,469 123,954 139,485 154,917 201,378 232,275 247,714
BF16 7/8 8/8 8/8 8/8 8/8 8/8 7/8 8/8
this repo (5.00 bpw) 7/8 8/8 8/8 8/8 8/8 8/8 7/8 8/8

The two misses are the same fact in both (the "black" code at 93k and the "yellow" one at 232k): the base model's own limit, not the quantization. Our earlier 4.00 bpw conversion also lost two facts at 124k (see Discarded options).

Vision

Test Result
Our 4-image test (screenshots of a failing systemd unit, a chart, an nftables listing and a port conflict) 15/15
Clean install from PyPI, one screenshot (A40) correct: names the failing unit and its state

Images were sent with --mm-processor-kwargs '{"max_pixels":1003520}' and one image per request.

Speed with and without MTP

1, 2, 4 and 8 concurrent requests, the card's sampling, k8v4_per_token_head KV, the 24 GB configuration. Acceptance = mean accepted length per step.

1 request 2 requests 4 requests 8 requests Acceptance
No MTP 64.6 89.1 175.3 322.8 tok/s —
MTP 1 91.7 159.3 290.1 495.2 tok/s 1.67
MTP 2 98.3 157.1 297.8 526.1 tok/s 2.05
MTP 3 90.3 133.3 285.7 519.6 tok/s 2.14

MTP 2 is the fastest overall and keeps the 2 × 262k capacity, so the Quick start uses it.

Sampling and repetition loops

5 long Spanish sysadmin questions × 6 runs per temperature, up to 16,000 tokens, top_p 0.95 and top_k 20, Quick start settings with 8 sequences; a loop = more than 30 % repeated word 8-grams.

Temperature 0.6 0.8 1.0
Loops / 30 1 2 0
Answers that finished before 16,000 tokens / 30 29 28 30
Empty answers / 30 0 0 0
Mean tokens per answer 5,007 5,193 4,212

Use temperature 1.0 with top_p 0.95 and top_k 20; generation_config.json sets them and vLLM uses them as the server defaults. A client that sends its own values overrides them.

Known model behaviour and discarded options

  • Chinese words in Spanish answers: the base model. 6 long Spanish systemd answers per model (max_tokens 8192, same prompts and engine):

    Model CJK characters, temperature 1.0 / top_p 0.95 (base model defaults) With top_k 20 added
    BF16 37 10 (in 3 of 6 answers)
    4.00 bpw (earlier conversion) 40 6 (in 2 of 6 answers)

    They are whole words (的, 诊断, 正在…), not punctuation. The quantization does not add them; top_k 20 reduces them but does not remove them, in BF16 either. This repo's battery smoke had 2 in 4 answers.

  • The same battery on the BF16 model (same engine, KV, MTP 2 and sampling, temperature 1.0 / top_p 0.95 / top_k 20 forced with --override-generation-config, 2026-11-24):

    Test BF16 this repo (5.00 bpw)
    Tool calls, real opencode request 59/60 60/60
    Agent tasks (3 runs × 10) 7 + 8 + 8 = 23/30 6 + 9 + 6 = 21/30
    Reasoning at xhigh 35/48 39/48
    Small games 40/48, 1 of 4 ran 39/48, 1 of 4 ran
    Vision · needle 64k/128k/241k · 8 × 30k sessions 15/15 · 8/8 each · 8/8 15/15 · 8/8 each · 8/8
    CJK characters in the 4 smoke answers 9 2

    The agent results move by up to 3 tasks between runs of the same model; we read the 2-task difference as run-to-run noise, not a quantization loss. The agent and reasoning scores are at the level of the base model.

  • Other bit widths (same calibration, same tests), kept as branches (see Other sizes in this repository):

    • 4.00 bpw (4.0bpw, 7.04 GB): KLD 0.0217 / 0.0193, and it lost two more facts than BF16 at 124k in the long-context needle (blanca and naranja), in two separate runs.
    • 3.50 bpw (3.5bpw, 6.60 GB): KLD 0.0374 / 0.0339; weaker in the short battery (one smoke answer with 53 CJK characters, 7/8 parallel sessions).
    • 6.00 bpw (6.0bpw, 8.76 GB): KLD 0.0020 / 0.0017 and the same needle result as BF16, but 0.86 GB more for no measured gain in the battery-level tests.
  • Discarded options: 4.00 bpw with the 8 full-attention layers at 8 bits: worse than 4.00 at long context (three facts lost at 232k), so the long-context loss is not in the attention layers; 3.00 bpw packs: KLD above our 0.05 limit.

  • 16 GB: one full 262,144-token session does not fit (see Which one to use).

Requirements & install (vLLM 0.34.0 + exllamav3 1.6.7 + vllm-quantpack 0.1.10)

Before you install (checked on our Ubuntu 26.04 hosts on 2026-11-24):

  • An NVIDIA GPU of compute capability 8.0 or newer and a driver that supports CUDA 13.2 (tested with 595.91), uv and git.
  • The CUDA toolkit 13.2 (nvcc): exllamav3 1.6.7 publishes no wheel for torch 2.14 (the torch of vLLM 0.34), so it is built from source below (about 10 minutes with 16 parallel jobs), and FlashInfer compiles its kernels the first time vLLM starts.
  • A C compiler (build-essential). We use uv's own Python (--managed-python), which includes the headers Triton needs.
  • Disk: about 6 GB for the venv, as much again for uv's cache (uv cache clean frees it), plus 8 GB for the model.

EXL3 is not a native vLLM format, and SenseNova Loop is not in vLLM 0.34. vllm-quantpack (ours, on PyPI) loads both through vLLM's plugin entry point: the SenseNova Loop model (from vLLM PR #64832, with the vision tower and the model's own MTP head added), EXL3 linear layers through exllamav3's kernels, and the k8v4_per_token_head KV type. Version 0.1.10 or later is required.

uv venv --python 3.12 --managed-python venv
uv pip install --python venv/bin/python vllm==0.34.0 --torch-backend=auto          # torch 2.14.0+cu132
uv pip install --python venv/bin/python ninja packaging setuptools wheel
git clone --depth 1 --branch v1.6.7 https://github.com/turboderp-org/exllamav3 exllamav3-src
export CUDA_HOME=/usr/local/cuda-13.2 PATH=/usr/local/cuda-13.2/bin:$PATH
TORCH_CUDA_ARCH_LIST="8.6" MAX_JOBS=16 uv pip install --python venv/bin/python --no-build-isolation ./exllamav3-src   # 8.6 = RTX 3090 / A40; add yours
uv pip install --python venv/bin/python "vllm-quantpack>=0.1.10"
venv/bin/python -c "import torch, vllm_quantpack; from exllamav3.ext import exllamav3_ext; print(torch.__version__, vllm_quantpack.__version__, torch.cuda.get_device_name(0))"

If vLLM itself ships SenseNova Loop in a later version, vllm-quantpack leaves vLLM's model in place; set VLLM_QUANTPACK_SENSENOVA=force to use the plugin's (needed when that vLLM model does not accept EXL3).

Quick start (one 24 GB GPU)

export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
venv/bin/vllm serve JRamirez-UAB/SenseNova-Loop-9B-EXL3 \
  --served-model-name sensenova \
  --trust-remote-code \
  --max-model-len 262144 \
  --kv-cache-dtype k8v4_per_token_head \
  --kv-cache-memory-bytes 15311264808 \
  --max-num-seqs 8 \
  --max-num-batched-tokens 1024 \
  --limit-mm-per-prompt '{"image":1,"video":0}' \
  --mm-processor-kwargs '{"max_pixels":1003520}' \
  --speculative-config '{"method":"mtp","num_speculative_tokens":2}' \
  --reasoning-parser qwen3 \
  --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. For 16 GB drop --speculative-config and use --max-model-len 241664 --kv-cache-memory-bytes 7614968627 (with MTP 2 the limit is --max-model-len 195584 --kv-cache-memory-bytes 7143864401). On 48 GB cards raise --kv-cache-memory-bytes for more sessions (the pool grows by about 39,000 tokens per GB).

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": {
        "sensenova": {
          "name": "SenseNova-Loop-9B EXL3 5.00 (local)",
          "tool_call": true,
          "temperature": true,
          "limit": { "context": 262144, "output": 32768 }
        }
      }
    }
  },
  "agent": {
    "build": { "model": "local-vllm/sensenova", "temperature": 1.0 },
    "plan":  { "model": "local-vllm/sensenova", "temperature": 1.0 }
  }
}
  • Declare "temperature": true in the model, otherwise opencode sends no temperature to a custom model.
  • opencode sends no top_p / top_k, so the server defaults from generation_config.json apply.
  • With output: 32768 opencode compacts the history at about context − 32k tokens 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

  • Memory. The driver reserves about 460 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.
  • --max-num-batched-tokens 1024 keeps the prefill activations of this looped model inside the 24 GB budget at 262k; larger chunks prefill faster but need a smaller KV pool.
  • Reasoning counts towards max_tokens: allow ≥ 4,000 tokens, or disable reasoning with chat_template_kwargs: {"enable_thinking": false}.
  • Hugging Face page warnings: the "Model size" shown by Hugging Face counts packed storage elements, not parameters; the Configuration Parsing Warning about quantization_config.bits not being an integer is expected (EXL3 bits is an average). Transformers prints a warning about the tokenizer's regex pattern at start-up; it comes from the base model's tokenizer files and does not affect vLLM.
  • --trust-remote-code is needed for the base model's processor files.
  • Use --tool-call-parser qwen3_coder and --reasoning-parser qwen3.
  • One GPU per instance: the looped EXL3 path was not tested with tensor parallelism.

Quantization recipe

Step Setting
Source sensenova/SenseNova-Loop-9B revision 3cc220e9; chat template, tokenizer, processors and Transformers code unchanged
Tool exllamav3 1.6.7 convert_model with our SenseNova Loop architecture definition (the two passes of a looped layer share one set of quantized tensors; not part of exllamav3), RTX PRO 6000 Blackwell
Bit allocation per tensor, 3-7 bits, from exllamav3's per-tensor error measurement and a sensitivity probe; 5.00 bpw average over the language model
lm_head / vision tower / MTP head 6 / 6 / 6 bits
Token embeddings BF16
Calibration 587 rows × 10,513 columns built from our internal sysadmin agent conversations and agent steps written by the BF16 model; not published, and no text is stored in the weights
Hessians input-side Hessians of the looped layers collected with the BF16 model over both passes of the loop (exllamav3 alone takes them from the first pass); at 4.00 bpw this gave the same KLD as the default
generation_config.json top_k 20 added to the base model's temperature 1.0 / top_p 0.95

Integrity and validation

Artifact integrity

  • SHA256SUMS lists every file; the verifier compares the repo with our local copy byte for byte before publication.
  • The safetensors file carries no __metadata__ text; quantization_config.json holds only bit widths, tensor layout and the calibration size (rows and columns).

Quantization

  • KL divergence against the BF16 model with exllamav3's qbench on two traces, on these exact files (Results).
  • Long-context retrieval at 8 depths against the BF16 model on the same prompts.

Runtime

  • Capacity, test battery, vision, loops and speed: see Results.
  • Clean install: the Requirements & install block in a new environment (vllm-quantpack 0.1.10 from PyPI) and the Quick start on an A40: a Spanish answer with no CJK characters, an image question and a tool call, all correct (2026-11-24).
  • On a physical RTX 3090 (24 GB, a second host): the install block in a new environment, this repository downloaded from Hugging Face (SHA256SUMS checked) and served with the Quick start command as written: KV pool 608,595 tokens (2.32 × 262,144); 4 long Spanish answers (3 with the server defaults, 1 at temperature 0): all finished, no CJK characters, no repetition; peak 22,936 MiB used during that check (2026-11-24).

Scope: results apply to the stack and 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 0.34, Transformers or SGLang: it needs exllamav3 and vllm-quantpack 0.1.10 or later.
  • Chinese words can appear in Spanish answers (the base model does the same; see above).
  • Not measured: the test battery on a physical RTX 3090 (the 24 GB numbers come from a larger card limited to 24 GB; on a real 3090 we ran the install, the download and the Quick start with long answers), the full battery (agent tasks, reasoning, games, loops, speed) on 16 GB, video input, several images per request, and the base model's own benchmarks on this quantization. The calibration and the opencode trace are internal, so those KLD numbers cannot be reproduced outside; the public-trace KLD can.
  • The SenseNova Loop model in vLLM comes from an open vLLM pull request (#64832), extended by us for EXL3, vision and MTP; it is 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

Downloads last month
-
Safetensors
Model size
4B params
Tensor type
BF16
·
F16
·
I16
·
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for JRamirez-UAB/SenseNova-Loop-9B-EXL3

Quantized
(55)
this model

Collection including JRamirez-UAB/SenseNova-Loop-9B-EXL3

Paper for JRamirez-UAB/SenseNova-Loop-9B-EXL3