Instructions to use kdqemre/Qwen3.8-27B-RQ2_K_L-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 kdqemre/Qwen3.8-27B-RQ2_K_L-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 kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L # Run inference directly in the terminal: llama cli -hf kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L # Run inference directly in the terminal: llama cli -hf kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L
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 kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L # Run inference directly in the terminal: ./llama-cli -hf kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L
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 kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L # Run inference directly in the terminal: ./build/bin/llama-cli -hf kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L
Use Docker
docker model run hf.co/kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L
- LM Studio
- Jan
- Ollama
How to use kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF with Ollama:
ollama run hf.co/kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L
- Unsloth Studio
How to use kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF to start chatting
- Pi
How to use kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF with Docker Model Runner:
docker model run hf.co/kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L
- Lemonade
How to use kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L
Run and chat with the model
lemonade run user.Qwen3.8-27B-RQ2_K_L-GGUF-Q2_K_L
List all available models
lemonade list
- Hermes Agent
How to use kdqemre/Qwen3.8-27B-RQ2_K_L-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 kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L
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 kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L
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 "kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF:Q2_K_L" \ --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"
You need this repository to run this model. Standart llama.cpp will not work on this.
https://github.com/kdqemre/llama.cpp-rq
Speed and size mean nothing if the model's quality is destroyed.
The new RQ series (RQ2, RQ3, RQ4) in my llama.cpp fork compresses models to low bits while preserving high-tier quality. Quality is secured through a Walsh–Hadamard Transform (WHT). Speed is maintained via fused CUDA kernels.
Here is how I did it. 👇
📉 1. The Low-Bit Problem LLM weight matrices contain outliers. Standard quantization sets its step size based on the block's maximum value. A single outlier inflates this step, crushing ordinary weights onto the lowest codes. At low bits, most of the block's usable information is lost.
🔄 2. The Solution: Rotated Quantization (The Math) To keep outliers from hijacking the range, RQ rotates the sub-block before quantization. Let's look at a toy 4-bit symmetric example (n=4) on a weight vector with a moderate outlier:
In plain symmetric 4-bit, we have 15 levels (-7 to 7).
Standard Symmetric 4-bit:
- Max magnitude is 2.8. Step size :
- Quantize and Dequantize :
Result: The delicate 0.1 detail was completely crushed to 0.0. The information is permanently lost.
RQ (WHT): RQ applies a Walsh–Hadamard Transform matrix (\(H\)). To preserve the L2 norm and spread the outlier's energy, the rotation is normalized by .
- Rotated vector :
- Max magnitude dropped from 2.8 to 2.0! New step size :
- Quantize and Dequantize :
- Inverse WHT back to original domain :
Result: The 0.1 survived as 0.14. The small weights are preserved, and the Mean Squared Error (MSE) is roughly halved in this toy example. (Note: Production RQ operates on 32-weight blocks, applies an offline-optimized ±1 sign diagonal before the WHT, and uses true K-quant formats).
⚡ 3. Fused Kernels for Inference Speed
Applying WHT per weight during generation would kill performance. Instead, I shifted the cost:
- Activation prep: WHT is fused into the activation quantizer. It is paid once per token, not per weight.
- Matmul: Weights unpack directly onto native dp4a / MMA (RQ4's block layout is byte-identical to standard Q4_K).
(Note: These fused kernels and custom inference paths are currently CUDA-only).
📊 4. The Results (Qwen3.8-27B on RTX 4090)
Setup: 8-shot GSM8K-100 (Exact Match), greedy decode, MTP off. Hardware: RTX 4090 (power-limited to 150W).
I compared my mixed 2-bit bulk recipe against the high-bit baseline. Here are the results:
| Metric | Q5_K_M (Baseline) | RQ2_K_L (Mixed 2-bit) |
|---|---|---|
| Bits per Weight | 5.72 bpw | 3.70 bpw |
| Model Size | 19.5 GB | 12.6 GB |
| Accuracy Score | 98/100 | 98/100 |
| Decode Speed | 29.2 t/s | 32.3 t/s |
💡 The Bottom Line: On this benchmark, the RQ recipe matches Q5_K_M's quality while being 6.9 GB smaller and decoding faster.
🛠️ 5. Custom Modular Mixing & NVFP4
RQ is fully modular. You can mix RQ2, RQ3, and RQ4 across different layers using regex targeting (e.g., keeping the FFN bulk at RQ2, while elevating sensitive tensors to RQ3/RQ4).
Furthermore, the fork supports NVFP4. You can generate and run models entirely in NVFP4, or mix it per-tensor alongside RQ types to build highly customized quantization recipes.
Quality first. Then the bits. Then the kernels.
Code and build notes are here: 🔗 https://github.com/kdqemre/llama.cpp-rq
- Downloads last month
- 111
2-bit
Model tree for kdqemre/Qwen3.8-27B-RQ2_K_L-GGUF
Base model
Qwen/Qwen3.8-27B