Text Generation
GGUF
rotorquant
kv-cache-quantization
qwen
qwen3.5
llama-cpp
quantized
conversational
Instructions to use majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS 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 majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS 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 majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS # Run inference directly in the terminal: llama cli -hf majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS # Run inference directly in the terminal: llama cli -hf majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS # Run inference directly in the terminal: ./llama-cli -hf majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS # Run inference directly in the terminal: ./build/bin/llama-cli -hf majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS
Use Docker
docker model run hf.co/majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS
- LM Studio
- Jan
- vLLM
How to use majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS
- Ollama
How to use majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS with Ollama:
ollama run hf.co/majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS
- Unsloth Desktop
- Pi
How to use majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS
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": "majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS with Docker Model Runner:
docker model run hf.co/majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS
- Lemonade
How to use majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS
Run and chat with the model
lemonade run user.Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS-IQ4_XS
List all available models
lemonade list
- Hermes Agent
How to use majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS
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 majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS
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 "majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS:IQ4_XS" \ --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"
Add model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: gguf
|
| 3 |
+
base_model: Qwen/Qwen3.5-27B
|
| 4 |
+
tags:
|
| 5 |
+
- gguf
|
| 6 |
+
- rotorquant
|
| 7 |
+
- kv-cache-quantization
|
| 8 |
+
- qwen
|
| 9 |
+
- qwen3
|
| 10 |
+
- moe
|
| 11 |
+
- thinking
|
| 12 |
+
- llama-cpp
|
| 13 |
+
- quantized
|
| 14 |
+
license: apache-2.0
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS
|
| 18 |
+
|
| 19 |
+
GGUF IQ4_XS weight-quantized variant of [Qwen/Qwen3.5-27B](https://huggingface.co/Qwen/Qwen3.5-27B) with **RotorQuant** KV cache compression for efficient inference with llama.cpp, Ollama, and LM Studio.
|
| 20 |
+
|
| 21 |
+
## Overview
|
| 22 |
+
|
| 23 |
+
This model combines two compression techniques:
|
| 24 |
+
- **GGUF IQ4_XS weight quantization** — reduces model size from ~54GB to ~14 GB
|
| 25 |
+
- **RotorQuant KV cache compression** — block-diagonal rotations (Clifford algebra) for 3-bit KV cache, 5.3x faster prefill
|
| 26 |
+
|
| 27 |
+
## Quickstart
|
| 28 |
+
|
| 29 |
+
### llama.cpp
|
| 30 |
+
```bash
|
| 31 |
+
llama-cli -m Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS.gguf \
|
| 32 |
+
--cache-type-k planar3 --cache-type-v iso3 \
|
| 33 |
+
-p "Explain quantum computing"
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
### Ollama
|
| 37 |
+
```bash
|
| 38 |
+
ollama run majentik/Qwen3.5-27B-RotorQuant-GGUF-IQ4_XS
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
### LM Studio
|
| 42 |
+
Download the GGUF file and load in LM Studio. Enable RotorQuant KV cache in advanced settings.
|
| 43 |
+
|
| 44 |
+
## Specifications
|
| 45 |
+
|
| 46 |
+
| Property | Value |
|
| 47 |
+
|----------|-------|
|
| 48 |
+
| Base Model | Qwen/Qwen3.5-27B |
|
| 49 |
+
| Parameters | 27B hybrid MoE |
|
| 50 |
+
| Weight Quantization | GGUF IQ4_XS |
|
| 51 |
+
| KV Cache | RotorQuant 3-bit (planar/iso) |
|
| 52 |
+
| File Size | ~14 GB |
|
| 53 |
+
| License | Apache 2.0 |
|
| 54 |
+
| Compatible | llama.cpp, Ollama, LM Studio, koboldcpp |
|
| 55 |
+
|
| 56 |
+
## What is RotorQuant?
|
| 57 |
+
|
| 58 |
+
RotorQuant applies block-diagonal rotations (Clifford algebra) for KV cache compression. When used with llama.cpp's `--cache-type-k planar3 --cache-type-v iso3` flags:
|
| 59 |
+
|
| 60 |
+
| Metric | RotorQuant | TurboQuant |
|
| 61 |
+
|--------|-----------|-----------|
|
| 62 |
+
| Prefill Speed | 3,822 tok/s | 722 tok/s |
|
| 63 |
+
| Decode Speed | 119 tok/s | 93 tok/s |
|
| 64 |
+
| Perplexity | 6.91 | 7.07 |
|
| 65 |
+
|
| 66 |
+
## See Also
|
| 67 |
+
|
| 68 |
+
- [RotorQuant GitHub](https://github.com/scrya-com/rotorquant)
|
| 69 |
+
- [Base model](https://huggingface.co/Qwen/Qwen3.5-27B)
|
| 70 |
+
- [MLX variants](https://huggingface.co/majentik/Qwen3.5-27B-RotorQuant-MLX-4bit)
|