Skip to main content
Back

SenseTime's SenseNova-Loop-9B Squeezes 104K Context Into an 8 GB GPU

A community quant of SenseTime's looped multimodal 9B hits 47 tokens per second with 104K context on a single 8 GB GPU.

Pro

Model, Full Access
  • Community drofn/SenseNova-Loop-9B-8GB-v3-GGUF targets SenseTime's looped multimodal 9B on 8 GB cards.
  • About 20% lower mean KLD vs Q8_0 than v2 across four test sets, including a held-out code set.
  • Hits 47 tok/s with MTP speculative decoding on at 104,448-token context on an RTX 4060 8GB.
  • Three-of-three needle recall at 102,903 tokens; vision via a 0.92 GB F16 mmproj at 57,344 context.
  • Author notes AtomicChat's AD-Q4_K_M is at least as faithful and 0.23 GB smaller.
  • Runs only on a patched llama.cpp fork with mHC CUDA kernels and MTP support; Apache-2.0.

Hugging Face user drofn has released a third specialized GGUF quantization of SenseTime’s SenseNova-Loop-9B. The 6.19 GB build targets a single 8 GB GPU, retaining the model’s 104,448-token context window, multimodal support, and built-in speculative decoding.

Version 3 preserves roughly the same speed and context capacity as v2 while keeping every model layer on the GPU and Windows shared GPU memory below 200 MiB. Its mean Kullback-Leibler divergence from a Q8_0 reference fell by about 20% across four test sets, indicating that its output probabilities track the higher-precision reference more closely.

The shared loop magnifies quantization error

SenseNova-Loop-9B stores 32 physical layers but performs 56 layer executions during each forward pass. A shared block of 24 layers runs twice, adding a second pass through the same weights. The model contains about 9 billion parameters and is described as providing roughly 14.6 billion inference-equivalent parameters through this repeated computation.

Weight reuse raises the cost of quantization error because any distortion in the shared block affects both passes. SenseNova’s loop-scaling experiments reported stronger results with three or four passes, while the released model defaults to two to limit inference time. That design makes selective precision especially relevant.

Quantization reduces memory use by storing weights with fewer bits. GGUF packages those quantized tensors for runtimes such as llama.cpp. Higher-precision formats generally preserve the original model more closely but consume more memory, so an 8 GB build must allocate precision selectively.

V3 spends precision selectively

Version 3 moves bits toward tensors that produced the largest divergence during testing and lowers precision in less sensitive areas. Its main changes from v2 are:

  • Attention key and value projections move from Q5_K to Q8_0.
  • The token embedding moves from Q5_K to Q8_0. It resides in system RAM, so the upgrade does not consume GPU memory.
  • Loop blocks 4 through 11 receive Q5_K feed-forward gate and up projections.
  • Loop blocks 12 through 19 receive Q5_K attention QKV and state-space-model output tensors.
  • Feed-forward gate and up projections in blocks 12 through 27 move to IQ4_XS, freeing memory for the higher-precision tensors.
  • The multi-token prediction head moves from Q6_K to Q4_K. The author attributes this change to an imatrix tool crash while processing that head.

The calibration importance matrix also changed substantially. An imatrix records activation data from representative text and helps the quantizer identify sensitive weights. V3 processes all 314 calibration chunks of 2,048 tokens and includes the output layer; v2 used 64 chunks and omitted output-layer processing.

Artifact Size Purpose
SenseNova-Loop-9B-8GB-v3.gguf 6.19 GB Main text model
F16 mmproj 0.92 GB Vision projector

The release also includes an HQ variant intended to exchange context capacity for higher fidelity.

One GPU, two speed profiles

The published measurements come from an RTX 4060 8GB running Windows without a display attached. SenseNova’s multi-token prediction head serves as a draft model during speculative decoding, proposing future tokens that the main model can verify together.

Test Context Result
MTP enabled 104,448-token allocation 47.0 tokens/s generation
MTP disabled 104,448-token allocation 25.4 tokens/s generation
Text needle test 102,903-token prompt 736 tokens/s prefill, 21.6 tokens/s generation, 3 of 3 facts recovered
Vision needle test 55,728-token prompt within a 57,344-token allocation 3 of 3 facts recovered

The speculative-decoding test accepted 231 of 335 drafted tokens, an acceptance rate of 69%. The needle tests inserted three facts into long prompts and checked whether the model could retrieve each one near the end of the context.

Lower drift, limited quality evidence

Mean KL divergence improved by about 20% relative to v2 across four evaluation sets. One was a held-out code set excluded from quantization decisions, providing a check beyond the calibration material. KL divergence measures statistical drift from the Q8_0 reference; task accuracy remains unmeasured because the release includes no downstream benchmark results.

AtomicChat’s Q4_K_M is smaller at 5.96 GB and measured at least as close to Q8_0 on the same test stand. Running AtomicChat’s files through SenseNova’s patched fork with matching flags caused about 1 GB to spill into shared system memory and reduced generation to 6.7 tokens/s, roughly one-seventh of v3’s measured MTP speed. That comparison combines file and runtime differences, so it does not isolate the cause of the slowdown.

The runtime belongs in the benchmark

  • The tests used a patched llama.cpp build at a specific commit with CUDA and MTP support for the sensenova_loop architecture.
  • Stock llama.cpp could not load v1 or v2 at the time of testing. V3 was not tested with stock llama.cpp or other runtimes.
  • Every reported figure is a single run on one RTX 4060 8GB, and the largest context settings leave little memory headroom.
  • The Q8_0 reference is itself quantized. No comparison against BF16 was reported.
  • Vision testing covered two synthetic images, while MTP testing used one code prompt.
  • A v1 experiment found that a display using about 700 MiB of VRAM reduced available context by roughly 36,000 tokens. Applying the same scaling to v3 suggests about 68,000 text tokens or 21,000 tokens with the vision projector.

Run the measured configuration

The author’s text-only configuration requires the patched llama.cpp fork, a CUDA build, and the v3 GGUF file:

./build/bin/llama-server -m ./models/SenseNova-Loop-9B-8GB-v3.gguf \
  -ngl 99 -fa on -ctk q4_0 -ctv q4_0 -c 104448 -ub 128 -np 1 \
  --jinja --reasoning-format deepseek --cache-ram 0 \
  --spec-type draft-mtp --spec-draft-n-max 2 -ctkd q4_0 -ctvd q4_0
  • -ngl 99 places all model layers on the GPU.
  • -fa on enables Flash Attention.
  • -ctk q4_0 and -ctv q4_0 use quantized key and value caches.
  • -c 104448 allocates the measured text context.
  • --spec-type draft-mtp enables the model’s MTP draft head.
  • --spec-draft-n-max 2 allows the head to propose up to two tokens at a time.

Vision input requires adding --mmproj with the F16 projector path and reducing -c to 57344 for the measured configuration. Images are submitted through an image_url content item at /v1/chat/completions; base64 data URIs are supported.

The 8 GB target is tightly defined

V3 documents a specific deployment profile: a 6.19 GB looped model, 104,448 tokens of text context, full GPU layer placement, and 47.0 tokens/s with speculative decoding on one RTX 4060. Its fidelity measurements improved over v2, while broader quality claims await task benchmarks, repeated runs, and testing across additional runtimes and GPUs.