Instructions to use SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP 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 SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP 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 SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP # Run inference directly in the terminal: llama cli -hf SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP # Run inference directly in the terminal: llama cli -hf SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP
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 SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP # Run inference directly in the terminal: ./llama-cli -hf SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP
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 SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP # Run inference directly in the terminal: ./build/bin/llama-cli -hf SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP
Use Docker
docker model run hf.co/SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP
- LM Studio
- Jan
- vLLM
How to use SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP
- Ollama
How to use SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP with Ollama:
ollama run hf.co/SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP
- Unsloth Studio
How to use SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP 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 SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP 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 SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP to start chatting
- Pi
How to use SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP
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": "SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP
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 "SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP" \ --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 SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP with Docker Model Runner:
docker model run hf.co/SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP
- Lemonade
How to use SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP
Run and chat with the model
lemonade run user.Qwen3.6-35B-A3B-Pym-Q2-MTP-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP
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 SGLabs/Qwen3.6-35B-A3B-Pym-Q2-MTP
Run Hermes
hermes
- Atomic Chat
Qwen3.6-35B-A3B-Pym-Q2-MTP
⚠️ Preliminary — still under active testing. The numbers below come from small-sample, in-house runs; treat them as directional. We're validating with a larger suite and will update this card (and possibly the weights) as we learn more.
Pym is SGLabs' aggressive-quantization line — shrink a large model to a fraction of its size while keeping its edge, and (where the architecture allows) its speed. This is our first release.
A ~13 GB mixed-precision GGUF quant of Qwen3.6-35B-A3B — a 256-expert hybrid SSM + attention MoE. The routed experts are taken down to 2–3 bits with an importance matrix; the attention, SSM, shared-expert, and router paths stay at Q8. Crucially, the model's native multi-token-prediction (MTP) head is preserved, so speculative decoding stays on and the quant comes out faster than the source, not just smaller.
Runs on llama.cpp — including AMD (ROCm) and Apple Silicon. No CUDA required.
The recipe
- Base: Qwen3.6-35B-A3B (256 experts / 8 active; hybrid SSM + attention; native MTP head).
- Importance matrix: computed on real agentic-coding traffic from our own workloads → ~99.6% expert coverage.
- Precision map:
ffn_gate_exps,ffn_up_exps→ IQ2_XXSffn_down_exps→ IQ3_XXS- attention · SSM · shared experts · router · embeddings · output · MTP head → Q8_0
- MTP preservation: upstream
llama-quantizerefuses to quantize the extra nextn/MTP layer under an imatrix; we patched its per-layer bounds check to allow it and forced the MTP block to Q8, keepingdraft-mtpspeculative decoding available on the quantized model.
Benchmarks (preliminary, in-house)
Single AMD Strix Halo (gfx1151) box, llama.cpp, vs. the Q8_K_XL source with MTP:
| Pym-Q2-MTP | Q8 + MTP (source) | |
|---|---|---|
| Size | ~13.2 GB | ~38 GB |
| Decode | ~68 tok/s | ~62 tok/s |
| Prefill | ~167 tok/s | ~155 tok/s |
| MTP draft acceptance | ~79% | ~81% |
| HumanEval pass@1 (n=30) | 23 / 30 | 19 / 30 |
| Perplexity (wikitext-2) | 7.4 | 6.8 |
Read these honestly: the HumanEval gap is within sampling noise at n=30 — a lossy quant can't truly beat its own source, so the real takeaway is no measured coding-quality loss. Perplexity is about +9%, expected for a ~2-bit expert quant. The headline: ⅓ the size, ~10% faster, quality intact. A full HumanEval-164 run is in progress and this card will be updated.
Usage (llama.cpp)
# basic load (offload all layers to GPU)
llama-cli -m Qwen3.6-35B-A3B-Pym-Q2-MTP.gguf -ngl 999 -p "Write a quicksort in Python."
llama-server -m Qwen3.6-35B-A3B-Pym-Q2-MTP.gguf -ngl 999 -c 32768
The GGUF carries a preserved MTP head — enable your llama.cpp build's MTP speculative-decoding path (draft-mtp) to get the decode speedup shown above.
Credits
Inspired by EschaLabs' Escha W2 — a beautifully aggressive quant that showed how far mixed-precision experts can go. Built independently, on our own importance matrix and tooling, in that same spirit. 🎩
Base model: Qwen3.6-35B-A3B by the Qwen team.
Quantized by SGLabs · maintained by @syntaxgeek
- Downloads last month
- 873
We're not able to determine the quantization variants.