Instructions to use webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M
Use Docker
docker model run hf.co/webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF with Ollama:
ollama run hf.co/webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF with Docker Model Runner:
docker model run hf.co/webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M
- Lemonade
How to use webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Sakura-SenseNova-Loop-9B-Preview-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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_loopis not part of stock llama.cpp, Ollama or LM Studio; they stop with "unknown model architecture". Use the forkhttps://github.com/GuideboardLabs/llama.cpp-sensenova-loopat commitfad174ecd8bf22746a626c58e67e193f095aaa46(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-Previewat revisioneda5d06eec244f9bb078fd193255fc615720a1f9(SHA-256 of every weight file checked against the Hub listing). License: Apache-2.0. - Converted and quantized by
webmp3with 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 f32from the original weights (no rounding step before quantization). - Importance matrix: calibration text
hfqa-original-calibration-v2(SHA-256bc7216ea05c8bd05d6b9e94d813ec9eb651a2375288c08c06135a3f874d886f2, 6144 bytes, 11 chunks of 128 tokens), computed once on theQ8_0file with the fork'sllama-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 stayF32and are never quantized, andtoken_embd.weightandoutput.weight, which have no matrix statistics and were quantized without them. Matrix SHA-2565e061de9af7921d8e0d687b9fd4b929e9b358b93dfdfe6cf105b8b786183326f. 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_0file were measured with the fork'sllama-perplexityon a short held-out text (9 chunks of 128 tokens). They compare the quants withQ8_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
transformersimplementation 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
2-bit
3-bit
4-bit
5-bit
8-bit
Model tree for webmp3/Sakura-SenseNova-Loop-9B-Preview-GGUF
Base model
sensenova/SenseNova-Loop-9B-Preview