hero775 commited on
Commit
b533f18
Β·
verified Β·
1 Parent(s): 5384e34

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +146 -0
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.