Instructions to use xero0000/Kleiner-Coder-35B-mixed-q2k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use xero0000/Kleiner-Coder-35B-mixed-q2k with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="xero0000/Kleiner-Coder-35B-mixed-q2k", filename="Qwopus3.6-35B-A3B-Coder-mixed-q2k.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use xero0000/Kleiner-Coder-35B-mixed-q2k 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 xero0000/Kleiner-Coder-35B-mixed-q2k # Run inference directly in the terminal: llama cli -hf xero0000/Kleiner-Coder-35B-mixed-q2k
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf xero0000/Kleiner-Coder-35B-mixed-q2k # Run inference directly in the terminal: llama cli -hf xero0000/Kleiner-Coder-35B-mixed-q2k
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 xero0000/Kleiner-Coder-35B-mixed-q2k # Run inference directly in the terminal: ./llama-cli -hf xero0000/Kleiner-Coder-35B-mixed-q2k
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 xero0000/Kleiner-Coder-35B-mixed-q2k # Run inference directly in the terminal: ./build/bin/llama-cli -hf xero0000/Kleiner-Coder-35B-mixed-q2k
Use Docker
docker model run hf.co/xero0000/Kleiner-Coder-35B-mixed-q2k
- LM Studio
- Jan
- vLLM
How to use xero0000/Kleiner-Coder-35B-mixed-q2k with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "xero0000/Kleiner-Coder-35B-mixed-q2k" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xero0000/Kleiner-Coder-35B-mixed-q2k", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/xero0000/Kleiner-Coder-35B-mixed-q2k
- Ollama
How to use xero0000/Kleiner-Coder-35B-mixed-q2k with Ollama:
ollama run hf.co/xero0000/Kleiner-Coder-35B-mixed-q2k
- Unsloth Studio
How to use xero0000/Kleiner-Coder-35B-mixed-q2k 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 xero0000/Kleiner-Coder-35B-mixed-q2k 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 xero0000/Kleiner-Coder-35B-mixed-q2k to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for xero0000/Kleiner-Coder-35B-mixed-q2k to start chatting
- Pi
How to use xero0000/Kleiner-Coder-35B-mixed-q2k with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf xero0000/Kleiner-Coder-35B-mixed-q2k
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": "xero0000/Kleiner-Coder-35B-mixed-q2k" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use xero0000/Kleiner-Coder-35B-mixed-q2k with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf xero0000/Kleiner-Coder-35B-mixed-q2k
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 xero0000/Kleiner-Coder-35B-mixed-q2k
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use xero0000/Kleiner-Coder-35B-mixed-q2k with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf xero0000/Kleiner-Coder-35B-mixed-q2k
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 "xero0000/Kleiner-Coder-35B-mixed-q2k" \ --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"
- Docker Model Runner
How to use xero0000/Kleiner-Coder-35B-mixed-q2k with Docker Model Runner:
docker model run hf.co/xero0000/Kleiner-Coder-35B-mixed-q2k
- Lemonade
How to use xero0000/Kleiner-Coder-35B-mixed-q2k with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull xero0000/Kleiner-Coder-35B-mixed-q2k
Run and chat with the model
lemonade run user.Kleiner-Coder-35B-mixed-q2k-{{QUANT_TAG}}List all available models
lemonade list
🔬 Kleiner — Qwopus-3.6-35B-A3B-Coder Mixed q2_K + imatrix
Black Mesa mixed-quant series · the coder/engineer.
A CPU-offload-aware mixed-precision GGUF of Qwopus-3.6-35B-A3B-Coder — an
agentic-coding fine-tune of Qwen3.6-35B-A3B (Opus-flavored, thinking-off). Runs the full
256K context at ~74 tok/s decode on a single 18 GB dual-GPU desktop, by quantizing the
CPU-offloaded expert layers to Q2_K while keeping the GPU-resident tensors at Q4_K.
TL;DR: a 19 GB file that runs a strong coding model at full 256K context, at small-context speed — the fast daily driver for agentic/tool-use coding.
What it is
Jackrong's Qwopus-3.6-35B-A3B-Coder
is Qwen3.6-35B-A3B (hybrid qwen35moe: gated attention + gated-delta-net SSM, 256 experts,
8+1 active, ~3B active/token) fine-tuned for agentic coding — repository tasks, debugging
traces, tool schemas, multi-turn feedback — with thinking-off behavior to cut token waste
in agent loops. It reports SWE-bench 62.4% (thinking off) and, per its card, beats
Ornith-1.0 on legit-request compliance and multi-turn orchestration.
This build applies the mixed q2_K + imatrix quantization so you get that coding model at the fast 256K profile on limited VRAM.
Recipe
- Base: Qwopus-3.6-35B-A3B-Coder (
qwen35moe, 40 blocks + 1 nextn/MTP layer). - Source → output: requantized from the
Q8_0with an importance matrix computed on the Q8 itself (~61K tokens),q2_Kon the offloaded expert layers,q4_KGPU-resident,q6_Koutput. - Mixed layout:
ffn_*_expson blocks 13–26 →Q2_K(42 tensors — the CPU-offloaded set)- everything else →
Q4_K· output-class →Q6_K
- 4.88 bpw effective, ~19 GB, 256K native context.
See the Gordon (base Qwen3.6) card for the full rationale on why offloaded-layer byte count (not file size) drives decode speed.
Benchmarks
RTX 3060 Ti (8 GB) + RTX 3080 (10 GB), Ryzen 5950X, 46 GB DDR4-2733,
ik_llama.cpp, q4_0 KV, flash-attn on:
| Metric | This mixed q2_K | Qwopus Q8_0 |
|---|---|---|
| Decode | ~74 tok/s @256K | ~32 tok/s @64K |
| Context | 262144 | 65536 |
| VRAM | ~16.8 GB | |
| Output | clean code, --reasoning off |
clean |
How to run (ik_llama.cpp)
The -ot override is required (pins the Q2_K layers 13–26 to CPU). --reasoning off
matches the model's thinking-off design (snappy agent loops, direct code).
./llama-server \
-m Qwopus3.6-35B-A3B-Coder-mixed-q2k.gguf \
--jinja --cache-type-k q4_0 --cache-type-v q4_0 --flash-attn on \
--ctx-size 262144 --parallel 1 --n-gpu-layers 99 \
-ot 'blk\.(1[3-9]|2[0-6])\.ffn_(up|gate|down)_exps\.weight=CPU' \
--tensor-split 44,56 --ubatch-size 256 \
--reasoning off --reasoning-budget 0 \
--no-mmap --threads 8 --no-warmup --port 8000
A note on the MTP head
The base has a built-in MTP (multi-token-prediction) layer (blk.40.nextn.*) claiming
1.4–2.2× faster generation. That speedup needs vLLM/SGLang — in llama.cpp/ik_llama the
MTP head is ignored and the model runs as a normal A3B (ik_llama's MTP support is gated to
the gemma4 arch, not qwen35moe). The tensor is harmlessly carried in this quant.
Intended use & limitations
- Target: local agentic/tool-use coding at full 256K on ~16–18 GB VRAM, at usable speed.
- The
Q2_Kexpert layers are the quality floor; for maximum fidelity use theQ8_0. - Inherits the capabilities and biases of the base Qwopus-Coder. Pure quantization — no fine-tuning or alignment changes.
Provenance
- Original base: Qwen3.6-35B-A3B by Qwen (Apache-2.0).
- Coding fine-tune: Jackrong (Qwopus-3.6-35B-A3B-Coder).
- Mixed quantization + imatrix + tuning: xero0000, June 2026.
Released under the base model's Apache-2.0 license (quantization does not change the license).
- Downloads last month
- 2,025
We're not able to determine the quantization variants.
Model tree for xero0000/Kleiner-Coder-35B-mixed-q2k
Base model
Qwen/Qwen3.6-35B-A3B