Sakura

Sakura ยท GGUF quantization of sensenova/SenseNova-Loop-9B-Preview

Independent community quantization. Not an official release of the upstream author.

These files need a patched llama.cpp. The architecture sensenova_loop is not part of stock llama.cpp, Ollama or LM Studio; they stop with "unknown model architecture". Use the fork https://github.com/GuideboardLabs/llama.cpp-sensenova-loop at commit fad174ecd8bf22746a626c58e67e193f095aaa46 (the commit these files were made and tested with).

1. Model Overview

SenseNova-Loop-9B-Preview is a looped transformer (layers 4-27 run twice with shared weights, two-stream mHC residual routing, hybrid linear/full attention). This repository contains the text decoder only: the vision tower and the multi-token-prediction head are not exported, so there is no mmproj file and no image input.

2. Original Model / Attribution

  • Original: sensenova/SenseNova-Loop-9B-Preview at revision eda5d06eec244f9bb078fd193255fc615720a1f9 (SHA-256 of every weight file checked against the Hub listing). License: Apache-2.0.
  • Converted and quantized by webmp3 with the fork above, directly from the original safetensors (no third-party GGUF in between). Upstream authors retain their license and attribution.

3. Files

File Quant Size Mean KLD vs Q8_0 Same top token Short test output (greedy)
Sakura-SenseNova-Loop-9B-Preview-Q8_0.gguf Q8_0 9.54 GB - - 'user\nThe capital of France is\nassistant\n\nOkay, so I need to figure out the capital '
Sakura-SenseNova-Loop-9B-Preview-Q5_K_M.gguf Q5_K_M 6.47 GB 0.0160 94.71 % 'user\nThe capital of France is\nassistant\n\nOkay, so I need to figure out the capital '
Sakura-SenseNova-Loop-9B-Preview-Q4_K_M.gguf Q4_K_M 5.63 GB 0.0392 90.83 % 'user\nThe capital of France is\nassistant\n\nOkay, so I need to figure out the capital '
Sakura-SenseNova-Loop-9B-Preview-Q3_K_M.gguf Q3_K_M 4.64 GB 0.1490 83.07 % 'user\nThe capital of France is\nassistant\n\nThe user is asking a simple factual questi'
Sakura-SenseNova-Loop-9B-Preview-Q2_K.gguf Q2_K 3.84 GB 0.3240 76.90 % 'user\nThe capital of France is\nassistant\n\nThe user is asking a simple factual questi'

Q8_0 is the reference (made without a matrix). The K-quants were made with an importance matrix. The router tensors (mhc_*) and the convolution kernels stay F32 in every file; the fork pins them. On this text Q3_K_M and especially Q2_K are far from Q8_0 (mean KLD 0.149 and 0.324 against 0.016 for Q5_K_M); use Q4_K_M or larger where you can.

4. How it was made

  • Converted with the fork's convert_hf_to_gguf.py --outtype f32 from the original weights (no rounding step before quantization).
  • Importance matrix: calibration text hfqa-original-calibration-v2 (SHA-256 bc7216ea05c8bd05d6b9e94d813ec9eb651a2375288c08c06135a3f874d886f2, 6144 bytes, 11 chunks of 128 tokens), computed once on the Q8_0 file with the fork's llama-imatrix; it covers 248 of 322 2-D weight tensors (the loop block is stored once, so both visits feed the same statistics). The other 74 are the router and convolution tensors (mhc_*, ssm_conv1d), which stay F32 and are never quantized, and token_embd.weight and output.weight, which have no matrix statistics and were quantized without them. Matrix SHA-256 5e061de9af7921d8e0d687b9fd4b929e9b358b93dfdfe6cf105b8b786183326f. The calibration text is short; no quality gain is claimed.
  • Every file was checked: the tensor types equal the plan of the fork's own llama-quantize --dry-run (the standard check of this project uses stock llama.cpp and cannot read this architecture, so it was replaced by this one), the file loads and generates text with the fork, and the upload was read back from the Hub by SHA-256.

5. Measured and not measured

  • Mean KLD and top-token agreement against the Q8_0 file were measured with the fork's llama-perplexity on a short held-out text (9 chunks of 128 tokens). They compare the quants with Q8_0, not with the original BF16/F32 model, and a short text says little about other languages or code.
  • Not measured: benchmarks, long-context behaviour (the upstream model advertises 262144 tokens; only short contexts were run here), the vision and MTP parts, GPU backends, speed.
  • Greedy decoding was not compared with the reference transformers implementation here.

6. Run it

git clone https://github.com/GuideboardLabs/llama.cpp-sensenova-loop && cd llama.cpp-sensenova-loop && git checkout fad174ecd8bf22746a626c58e67e193f095aaa46
cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_VULKAN=ON && cmake --build build -j --target llama-cli llama-server llama-quantize
./build/bin/llama-server -m Sakura-SenseNova-Loop-9B-Preview-Q4_K_M.gguf -ngl 99 -c 4096 -fa on --port 8080

CPU or GPU: a plain build (no GPU backend) runs the model on the CPU from RAM only, and -ngl is what moves layers to a GPU. According to its own description the fork implements its fused mHC router operations for the CPU and Vulkan backends (not CUDA or ROCm), so the command above builds the Vulkan backend. We ran and measured everything on the CPU; no GPU backend was tested for these files.

7. License Information

Source license: apache-2.0. The fork is MIT-licensed llama.cpp code with the SenseNova-Loop additions of its author.

ไธญๆ–‡่ฏดๆ˜Ž ยท ๆจฑ่Šฑ Sakura๏ผˆ็‚นๅ‡ปๅฑ•ๅผ€๏ผ‰

่ฟ™ไบ›ๆ–‡ไปถ้œ€่ฆๆ‰“ไบ†่กฅไธ็š„ llama.cppใ€‚ ๆžถๆž„ sensenova_loop ไธๅœจๅฎ˜ๆ–น llama.cppใ€Ollama ๆˆ– LM Studio ไธญ๏ผŒๅฎƒไปฌไผšๆŠฅ้”™ "unknown model architecture"ใ€‚่ฏทไฝฟ็”จ https://github.com/GuideboardLabs/llama.cpp-sensenova-loop ็š„ๆไบค fad174ecd8bf22746a626c58e67e193f095aaa46๏ผˆๆœฌไป“ๅบ“ๆ–‡ไปถๅณ็”ฑๆญค็‰ˆๆœฌๅˆถไฝœๅ’Œๆต‹่ฏ•๏ผ‰ใ€‚

  • ๅŽŸๅง‹ๆจกๅž‹๏ผšsensenova/SenseNova-Loop-9B-Preview๏ผŒไฟฎ่ฎข eda5d06eec244f9bb078fd193255fc615720a1f9๏ผŒๆƒ้‡ๆ–‡ไปถ็š„ SHA-256 ๅทฒไธŽ Hub ๆธ…ๅ•ๆ ธๅฏนใ€‚่ฎธๅฏ่ฏ Apache-2.0ใ€‚

  • ไป…ๅŒ…ๅซๆ–‡ๆœฌ่งฃ็ ๅ™จ๏ผš่ง†่ง‰ๅก”ๅ’Œๅคš่ฏๅ…ƒ้ข„ๆต‹ๅคดๆœชๅฏผๅ‡บ๏ผŒๆฒกๆœ‰ mmproj ๆ–‡ไปถ๏ผŒไนŸไธๆ”ฏๆŒๅ›พๅƒ่พ“ๅ…ฅใ€‚

  • ็›ดๆŽฅไปŽๅŽŸๅง‹ safetensors ่ฝฌๆข๏ผˆ--outtype f32๏ผ‰๏ผŒๅ†้‡ๅŒ–ใ€‚Q8_0 ไธบๅ‚่€ƒๆ–‡ไปถ๏ผˆๆ— ้‡่ฆๆ€ง็Ÿฉ้˜ต๏ผ‰๏ผ›K ้‡ๅŒ–ไฝฟ็”จ้‡่ฆๆ€ง็Ÿฉ้˜ต๏ผšๆ กๅ‡†ๆ–‡ๆœฌ hfqa-original-calibration-v2๏ผˆ6144 ๅญ—่Š‚๏ผŒ11 ไธชๅ—๏ผŒๆฏๅ— 128 ไธช่ฏๅ…ƒ๏ผ‰๏ผŒๅœจ Q8_0 ไธŠ็”จ่กฅไธ็‰ˆ llama-imatrix ่ฎก็ฎ—ไธ€ๆฌก๏ผŒ่ฆ†็›– 248/322 ไธชไบŒ็ปดๆƒ้‡๏ผ›ๅ…ถไฝ™ 74 ไธชๆ˜ฏไฟๆŒ F32ใ€ไธไผš่ขซ้‡ๅŒ–็š„่ทฏ็”ฑๅ™จๅ’Œๅท็งฏๅผ ้‡๏ผˆmhc_*ใ€ssm_conv1d๏ผ‰๏ผŒไปฅๅŠๆฒกๆœ‰็Ÿฉ้˜ต็ปŸ่ฎกใ€ๆœชไฝฟ็”จ็Ÿฉ้˜ต้‡ๅŒ–็š„ token_embd.weight ๅ’Œ output.weightใ€‚ๆ กๅ‡†ๆ–‡ๆœฌๅพˆ็Ÿญ๏ผŒไธๅฃฐ็งฐ่ดจ้‡ๆๅ‡ใ€‚่ทฏ็”ฑๅ™จๅผ ้‡๏ผˆmhc_*๏ผ‰ๅ’Œๅท็งฏๆ ธๅœจๆ‰€ๆœ‰ๆ–‡ไปถไธญไฟๆŒ F32ใ€‚

  • ๆ ก้ชŒ๏ผšๅผ ้‡็ฑปๅž‹ไธŽ่กฅไธ็‰ˆ llama-quantize --dry-run ็š„่ฎกๅˆ’ไธ€่‡ด๏ผˆๆœฌ้กน็›ฎ็š„ๅธธ่ง„ๆฃ€ๆŸฅไฝฟ็”จๅฎ˜ๆ–น llama.cpp๏ผŒๆ— ๆณ•่ฏปๅ–่ฏฅๆžถๆž„๏ผŒๆ•…ไปฅๆญคไปฃๆ›ฟ๏ผ‰๏ผ›ๆ–‡ไปถ่ƒฝๅŠ ่ฝฝๅนถ็”Ÿๆˆๆ–‡ๆœฌ๏ผ›ไธŠไผ ๅŽๅทฒๆŒ‰ SHA-256 ๅ›ž่ฏปใ€‚

  • ๅทฒๆต‹้‡๏ผšๅœจไธ€ๆฎตๅพˆ็Ÿญ็š„่‹ฑๆ–‡็•™ๅ‡บๆ–‡ๆœฌ๏ผˆ9 ไธชๅ—๏ผŒๆฏๅ— 128 ไธช่ฏๅ…ƒ๏ผ‰ไธŠ๏ผŒๅ„้‡ๅŒ–็›ธๅฏน Q8_0 ็š„ๅนณๅ‡ KLD ๅ’Œ้ฆ–้€‰่ฏๅ…ƒไธ€่‡ด็އ๏ผˆ่งไธŠ่กจ๏ผ‰ใ€‚Q3_K_M๏ผŒๅฐคๅ…ถๆ˜ฏ Q2_K๏ผŒไธŽ Q8_0 ็›ธๅทฎๅพˆๅคง๏ผŒๅฏ่ƒฝๆ—ถ่ฏทไฝฟ็”จ Q4_K_M ๆˆ–ๆ›ด้ซ˜ใ€‚ๆœชๆต‹้‡๏ผšๅŸบๅ‡†ๆต‹่ฏ•ใ€้•ฟไธŠไธ‹ๆ–‡๏ผˆไธŠๆธธๆ ‡็งฐ 262144๏ผŒ่ฟ™้‡Œๅช่ฟ่กŒไบ†็ŸญไธŠไธ‹ๆ–‡๏ผ‰ใ€่ง†่ง‰ไธŽ MTPใ€GPU ๅŽ็ซฏใ€้€Ÿๅบฆ๏ผ›ไนŸๆฒกๆœ‰ไธŽๅ‚่€ƒ transformers ๅฎž็Žฐๆฏ”่พƒ่ดชๅฟƒ่งฃ็ ใ€‚

  • GPU๏ผšไธๅธฆ GPU ๅŽ็ซฏ็š„ๆ™ฎ้€šๆž„ๅปบๅชๅœจ CPU ไธŠใ€ไปŽๅ†…ๅญ˜่ฟ่กŒ๏ผ›-ngl ๆ‰ไผšๆŠŠๅฑ‚ๆ”พๅˆฐ GPUใ€‚่ฏฅๅˆ†ๆ”ฏๅชไธบ CPU ๅ’Œ Vulkan ๅฎž็Žฐไบ†่žๅˆ็š„ mHC ่ทฏ็”ฑ็ฎ—ๅญ๏ผˆๆฒกๆœ‰ CUDAใ€ROCm๏ผ‰๏ผŒไธŠ้ข็š„ๅ‘ฝไปคๅ› ๆญคๅฏ็”จ Vulkan ๅŽ็ซฏใ€‚ๆˆ‘ไปฌ็š„่ฟ่กŒๅ’Œๆต‹้‡ๅ…จ้ƒจๅœจ CPU ไธŠๅฎŒๆˆ๏ผŒๆฒกๆœ‰ๆต‹่ฏ•ไปปไฝ• GPU ๅŽ็ซฏใ€‚

Downloads last month
203
GGUF
Model size
9B params
Architecture
sensenova_loop
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF

Quantized
(9)
this model