Text Generation
GGUF
llama.cpp
qwen
qwen3.6
Mixture of Experts
quantized
imatrix
apple-silicon
ollama
batiai
on-device
agentic
coding
conversational
Instructions to use batiai/Qwen3.6-35B-A3B-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 batiai/Qwen3.6-35B-A3B-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 batiai/Qwen3.6-35B-A3B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf batiai/Qwen3.6-35B-A3B-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 batiai/Qwen3.6-35B-A3B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf batiai/Qwen3.6-35B-A3B-GGUF:Q4_K_M
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 batiai/Qwen3.6-35B-A3B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf batiai/Qwen3.6-35B-A3B-GGUF:Q4_K_M
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 batiai/Qwen3.6-35B-A3B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf batiai/Qwen3.6-35B-A3B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/batiai/Qwen3.6-35B-A3B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use batiai/Qwen3.6-35B-A3B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "batiai/Qwen3.6-35B-A3B-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": "batiai/Qwen3.6-35B-A3B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/batiai/Qwen3.6-35B-A3B-GGUF:Q4_K_M
- Ollama
How to use batiai/Qwen3.6-35B-A3B-GGUF with Ollama:
ollama run hf.co/batiai/Qwen3.6-35B-A3B-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use batiai/Qwen3.6-35B-A3B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf batiai/Qwen3.6-35B-A3B-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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "batiai/Qwen3.6-35B-A3B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use batiai/Qwen3.6-35B-A3B-GGUF with Docker Model Runner:
docker model run hf.co/batiai/Qwen3.6-35B-A3B-GGUF:Q4_K_M
- Lemonade
How to use batiai/Qwen3.6-35B-A3B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull batiai/Qwen3.6-35B-A3B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.6-35B-A3B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use batiai/Qwen3.6-35B-A3B-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 batiai/Qwen3.6-35B-A3B-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:8080/v1 hermes config set model.default batiai/Qwen3.6-35B-A3B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use batiai/Qwen3.6-35B-A3B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf batiai/Qwen3.6-35B-A3B-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:8080/v1 \ --custom-model-id "batiai/Qwen3.6-35B-A3B-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"
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- ko
|
| 5 |
+
- ja
|
| 6 |
+
- zh
|
| 7 |
+
license: apache-2.0
|
| 8 |
+
tags:
|
| 9 |
+
- gguf
|
| 10 |
+
- qwen
|
| 11 |
+
- qwen3.6
|
| 12 |
+
- moe
|
| 13 |
+
- quantized
|
| 14 |
+
- imatrix
|
| 15 |
+
- apple-silicon
|
| 16 |
+
- ollama
|
| 17 |
+
- batiai
|
| 18 |
+
- on-device
|
| 19 |
+
base_model: Qwen/Qwen3.6-35B-A3B
|
| 20 |
+
pipeline_tag: text-generation
|
| 21 |
+
library_name: llama.cpp
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# Qwen 3.6 35B-A3B GGUF β Quantized by BatiAI
|
| 25 |
+
|
| 26 |
+
<p align="center">
|
| 27 |
+
<a href="https://flow.bati.ai"><img src="https://img.shields.io/badge/BatiFlow-macOS%20AI%20Automation-blue?style=for-the-badge&logo=apple" alt="BatiFlow"></a>
|
| 28 |
+
<a href="https://ollama.com/batiai/qwen3.6-35b"><img src="https://img.shields.io/badge/Ollama-batiai%2Fqwen3.6--35b-green?style=for-the-badge" alt="Ollama"></a>
|
| 29 |
+
</p>
|
| 30 |
+
|
| 31 |
+
> imatrix-calibrated GGUF quantizations of **Qwen/Qwen3.6-35B-A3B** (text-only) for on-device AI on Mac.
|
| 32 |
+
> Built and verified by [BatiAI](https://bati.ai) for [BatiFlow](https://flow.bati.ai) β free, unlimited, on-device AI automation.
|
| 33 |
+
|
| 34 |
+
## Quick Start
|
| 35 |
+
|
| 36 |
+
```bash
|
| 37 |
+
# 16β24GB Mac
|
| 38 |
+
ollama pull batiai/qwen3.6-35b:iq3
|
| 39 |
+
|
| 40 |
+
# 24GB+ Mac (recommended)
|
| 41 |
+
ollama pull batiai/qwen3.6-35b:iq4
|
| 42 |
+
|
| 43 |
+
ollama run batiai/qwen3.6-35b:iq4
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
Aliases `:q3` and `:q4` point to the same blobs.
|
| 47 |
+
|
| 48 |
+
## Available Quantizations
|
| 49 |
+
|
| 50 |
+
| Tag | Quant | File Size | Min RAM | Recommended For |
|
| 51 |
+
|-----|-------|-----------|---------|-----------------|
|
| 52 |
+
| `:iq3` / `:q3` | **IQ3_XXS** (imatrix) | **13 GB** | 16 GB | Mac mini / MacBook Air 16GB |
|
| 53 |
+
| `:iq4` / `:q4` | **IQ4_XS** (imatrix) | **18 GB** | 24 GB | MacBook Pro / Mac Studio 24GB+ |
|
| 54 |
+
|
| 55 |
+
Both quants use an **importance matrix** computed from wikitext-2-raw to preserve quality at low bit-widths. IQ quants generally outperform K-quants of similar size.
|
| 56 |
+
|
| 57 |
+
## Why Qwen 3.6 35B-A3B?
|
| 58 |
+
|
| 59 |
+
- **MoE β 35B total, only ~3B active per token** β 9Γ less compute than a 27B Dense model
|
| 60 |
+
- **262K native context** (1M with YaRN scaling)
|
| 61 |
+
- **Gated DeltaNet hybrid attention** β long-context efficiency
|
| 62 |
+
- **Function calling** β `qwen3_coder` parser (vLLM/SGLang)
|
| 63 |
+
- **Agentic workflows** β tuned for repository-level coding, multi-tool reasoning
|
| 64 |
+
- **Multilingual** β Korean / Japanese / Chinese / English
|
| 65 |
+
- **Apache 2.0** β commercial-friendly
|
| 66 |
+
|
| 67 |
+
## MoE Advantage
|
| 68 |
+
|
| 69 |
+
| | 35B-A3B (MoE) | 27B (Dense) |
|
| 70 |
+
|---|---|---|
|
| 71 |
+
| Total params | 35B | 27B |
|
| 72 |
+
| **Active params / token** | **3B** | **27B** |
|
| 73 |
+
| Experts | 256 (8 routed + 1 shared) | β |
|
| 74 |
+
| Typical VRAM | ~23 GB (IQ4) | ~28 GB |
|
| 75 |
+
| Relative speed | **Faster** | Baseline |
|
| 76 |
+
|
| 77 |
+
Only 9 of 256 experts fire per token β same reasoning, far less compute.
|
| 78 |
+
|
| 79 |
+
## RAM Requirements (on-device)
|
| 80 |
+
|
| 81 |
+
| Your Mac RAM | IQ3 (13 GB) | IQ4 (18 GB) |
|
| 82 |
+
|--------------|-------------|-------------|
|
| 83 |
+
| 16 GB | β
fits (tight) | β |
|
| 84 |
+
| 24 GB | β
comfortable | β
fits (tight) |
|
| 85 |
+
| 32 GB | β
| β
comfortable |
|
| 86 |
+
| 48 GB+ | β
| β
ideal |
|
| 87 |
+
|
| 88 |
+
## Benchmarks
|
| 89 |
+
|
| 90 |
+
Benchmarks on Apple Silicon will be updated as measurements come in. To reproduce on your Mac:
|
| 91 |
+
|
| 92 |
+
```bash
|
| 93 |
+
ollama run batiai/qwen3.6-35b:iq4 --verbose "Write a haiku about Seoul in autumn."
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
The `--verbose` flag prints prompt-eval rate, token-generation rate, and memory usage.
|
| 97 |
+
|
| 98 |
+
## Note on the "3.6" Naming
|
| 99 |
+
|
| 100 |
+
Upstream Qwen released this model as **Qwen 3.6** publicly. Internally the Hugging Face config still registers the architecture as `Qwen3_5MoeForConditionalGeneration` (a transitional class name carried over from the 3.5 line). llama.cpp handles this class via its `Qwen3_5MoeTextModel` converter, which is what these GGUFs were built from β text-only, vision tower excluded.
|
| 101 |
+
|
| 102 |
+
## Technical Details
|
| 103 |
+
|
| 104 |
+
- **Original Model**: [Qwen/Qwen3.6-35B-A3B](https://huggingface.co/Qwen/Qwen3.6-35B-A3B)
|
| 105 |
+
- **Architecture**: MoE + Gated DeltaNet hybrid (35B total, ~3B active, 40 layers, hidden 2048)
|
| 106 |
+
- **Experts**: 256 total, 8 routed + 1 shared per token
|
| 107 |
+
- **Context Window**: 262,144 tokens native (extensible to ~1M via YaRN)
|
| 108 |
+
- **License**: Apache 2.0
|
| 109 |
+
- **Quantized with**: [llama.cpp](https://github.com/ggml-org/llama.cpp) build `bafae2765`
|
| 110 |
+
- **Quantized by**: [BatiAI](https://bati.ai)
|
| 111 |
+
- **Calibration data**: wikitext-2-raw
|
| 112 |
+
|
| 113 |
+
## How We Quantize
|
| 114 |
+
|
| 115 |
+
```
|
| 116 |
+
Qwen/Qwen3.6-35B-A3B (BF16 safetensors, ~70 GB)
|
| 117 |
+
β llama.cpp convert_hf_to_gguf.py (text-only, vision excluded)
|
| 118 |
+
BF16 GGUF (65 GB)
|
| 119 |
+
β llama-imatrix (wikitext-2-raw calibration, GPU-accelerated)
|
| 120 |
+
imatrix.dat
|
| 121 |
+
β llama-quantize --imatrix (IQ3_XXS, IQ4_XS)
|
| 122 |
+
Quantized GGUF
|
| 123 |
+
β ollama push + hf upload
|
| 124 |
+
Published to batiai/ on Ollama & Hugging Face
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
No third-party intermediaries. Direct from official Qwen weights.
|
| 128 |
+
|
| 129 |
+
## About BatiFlow
|
| 130 |
+
|
| 131 |
+
[**BatiFlow**](https://flow.bati.ai) is a macOS-native AI automation app β just 5 MB, Swift-native. Free on-device AI via Ollama β no API costs, no usage limits, 100% private.
|
| 132 |
+
|
| 133 |
+
- **AI Command Bar** β natural-language action execution
|
| 134 |
+
- **KakaoTalk / iMessage / Slack** automation
|
| 135 |
+
- **Chrome** navigation, filling, screenshots via CDP
|
| 136 |
+
- **57 built-in tools** β calendar, mail, reminders, files, shell, etc.
|
| 137 |
+
- **Skill builder** β reusable YAML automations
|
| 138 |
+
- **Multilingual** β Korean / English
|
| 139 |
+
|
| 140 |
+
[Download BatiFlow](https://github.com/batiai/batiflow-releases/releases/latest)
|
| 141 |
+
|
| 142 |
+
## License
|
| 143 |
+
|
| 144 |
+
This repo mirrors the upstream license. `Qwen/Qwen3.6-35B-A3B` is released under **Apache 2.0** β commercial use permitted.
|
| 145 |
+
|
| 146 |
+
BatiAI's quantization pipeline is MIT.
|