Instructions to use MistVVK/SenseNova-Loop-9B-QSA-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MistVVK/SenseNova-Loop-9B-QSA-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="MistVVK/SenseNova-Loop-9B-QSA-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MistVVK/SenseNova-Loop-9B-QSA-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MistVVK/SenseNova-Loop-9B-QSA-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 MistVVK/SenseNova-Loop-9B-QSA-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf MistVVK/SenseNova-Loop-9B-QSA-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 MistVVK/SenseNova-Loop-9B-QSA-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf MistVVK/SenseNova-Loop-9B-QSA-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 MistVVK/SenseNova-Loop-9B-QSA-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf MistVVK/SenseNova-Loop-9B-QSA-GGUF:Q4_K_M
Use Docker
docker model run hf.co/MistVVK/SenseNova-Loop-9B-QSA-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use MistVVK/SenseNova-Loop-9B-QSA-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MistVVK/SenseNova-Loop-9B-QSA-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MistVVK/SenseNova-Loop-9B-QSA-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/MistVVK/SenseNova-Loop-9B-QSA-GGUF:Q4_K_M
- SGLang
How to use MistVVK/SenseNova-Loop-9B-QSA-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "MistVVK/SenseNova-Loop-9B-QSA-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MistVVK/SenseNova-Loop-9B-QSA-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "MistVVK/SenseNova-Loop-9B-QSA-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MistVVK/SenseNova-Loop-9B-QSA-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use MistVVK/SenseNova-Loop-9B-QSA-GGUF with Ollama:
ollama run hf.co/MistVVK/SenseNova-Loop-9B-QSA-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use MistVVK/SenseNova-Loop-9B-QSA-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MistVVK/SenseNova-Loop-9B-QSA-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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "MistVVK/SenseNova-Loop-9B-QSA-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use MistVVK/SenseNova-Loop-9B-QSA-GGUF with Docker Model Runner:
docker model run hf.co/MistVVK/SenseNova-Loop-9B-QSA-GGUF:Q4_K_M
- Lemonade
How to use MistVVK/SenseNova-Loop-9B-QSA-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MistVVK/SenseNova-Loop-9B-QSA-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.SenseNova-Loop-9B-QSA-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use MistVVK/SenseNova-Loop-9B-QSA-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 MistVVK/SenseNova-Loop-9B-QSA-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:9931/v1 hermes config set model.default MistVVK/SenseNova-Loop-9B-QSA-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use MistVVK/SenseNova-Loop-9B-QSA-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MistVVK/SenseNova-Loop-9B-QSA-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:9931/v1 \ --custom-model-id "MistVVK/SenseNova-Loop-9B-QSA-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"
SenseNova-Loop-9B-QSA-GGUF
GGUF files of SenseNova-Loop-9B with trained QSA indexers added to the official GGUF files.
Every tensor and metadata field of the official file is copied byte for byte. Seventy FP32
indexer tensors are added as blk.<execution>.indexer.* in execution order; the q_norm,
k_norm and k_block_norm weights are stored as 1 + w. The metadata records four indexer
heads, a key width of 128, an indexer RoPE width of 64, a block of 4 tokens, a budget of 2048
tokens, the rotary table's dtype and the indexer SHA-256.
SenseNova-Loop-9B executes 32 distinct decoder layers 56 times. QSA adds one separately trained indexer to each of the 14 full-attention executions. An indexer scores 4-token blocks; the runtime takes the best 512 complete blocks (2048 tokens) together with the current causal block.
Files
| File | Bytes | SHA-256 |
|---|---|---|
BF16-qsa.gguf |
18,566,736,576 | 9d745360346d88ca568f5ca7654c754a105a052ac2871a6414f820ff83a2b3db |
Q8_0-qsa.gguf |
9,945,475,776 | 72107a8d3be8b7ca4ed829ea3a0ee1fe5b89f49a3264ea57dd72bbc4d0a765b3 |
Q5_K_M-qsa.gguf |
6,815,328,960 | 13d86283cdbbef9147d46fdd81675b870ebd7da4930f98f51f34b083f6c8b099 |
Q4_K_M-qsa.gguf |
5,965,458,112 | 2446cec39015603a224c81a0e75a85e36fba84bd45a006891f52b0ca3a70c4c6 |
Each file was generated twice and the two copies of the same quantization compared byte for byte. The hashes above were checked against the Hub's LFS metadata and against files fetched from this repository.
Checks
- The original tensors were compared byte for byte. The 70 added tensors and the new metadata were checked independently.
- Index selection was compared with the reference records at 896 positions (14 executions ร 64). Five positions in executions 15, 23, 31 and 47 selected one block more and one block less. Score relative RMS was 4.640e-6 to 4.457e-5. With the reference queries and keys, or with the reference CPU rotary values, all 896 positions matched. One-ulp differences between the device and CPU
powwere measured: 13 of 32 final inverse frequencies differ by at most 2 ulp. The five differences were accepted as a known limit; thepowdifference was not established as their sole cause. - With attention cell width 2, split 1, chunk 64, per-cell off, merge prefetch off, prompt attention off, MMQ off and BLAS on, QSA and dense gave bit-identical logits at chunk 0 and 128: 248,320 logits, 993,280 bytes.
- With Q4_K_M, three text cases and one synthetic image case gave the same token IDs as the previously checked engine result, for QSA and dense at chunk 0 and 128.
- On a 128-token case,
--spec 0and--spec 3produced identical output bytes; 66 of 120 drafts were accepted (55.0%). Speculative decoding is off by default.
Use with XeStrata
XeStrata's setup offers these files as the sensenova-loop-qsa family. It uses a pinned
revision and checks each file's size and SHA-256.
The XeStrata engine is available at https://github.com/MistVVK/XeStrata.
./setup.sh --family sensenova-loop-qsa --model Q4_K_M
The four choices are BF16, Q8_0, Q5_K_M and Q4_K_M.
Pictures use the official mmproj-SenseNova-Loop-9B-F16.gguf. XESTRATA_SENSENOVA_QSA_DENSE=1
selects dense attention on the same file; --spec 3 opts into speculative decoding.
License and attribution
- Base model, GGUF weights and tokenizer: SenseNova-Loop-9B by SenseNova, Apache-2.0. https://huggingface.co/sensenova/SenseNova-Loop-9B and https://huggingface.co/sensenova/SenseNova-Loop-9B-GGUF.
- QSA method: Qwen's QSA research and the
research/qsa/code of higa2515/Qwen3.8-27B-QSA-BF16, Apache-2.0, with training code by kuraneko1. The indexer weights here were trained for SenseNova-Loop-9B from the dense attention of the BF16 reference model, using fineweb-edu sample-10BT (ODC-By 1.0) as training data. They are not copies of the 27B-QSA indexers. - Engine code: XeStrata, LGPL-3.0-or-later. The weights keep the base model's Apache-2.0 license.
- This is an unofficial conversion.
Citation
Cite the original SenseNova-Loop release and the QSA research repository when using these files.
- Downloads last month
- 248
4-bit
5-bit
8-bit
16-bit