Qwen3-1.7B GGUF
These are GGUF conversions of Qwen/Qwen3-1.7B (revision 70d244cc86ccca08cf5af4e1e306ecf908b1ad5e) for llama.cpp and on-device (Android) inference, published by Geet Techworks.
The weights are unchanged: no fine-tuning, no merging, no adapters.
Status: GGUF Converted — Host Validated. The file was validated on a desktop host with both the conversion llama.cpp commit (
cd959ba) and the Android app's llama.cpp commit (4b77dee).
Files
| File | Quant | Size (bytes) | Size | SHA-256 |
|---|---|---|---|---|
Qwen3-1.7B-Q4_K_M.gguf |
Q4_K_M | 1,282,439,552 | 1.19 GiB | b7a7dfc98e59b4ceb2abaa822c683ec9c2471ff4c54db7536eaa5008c38432af |
Model metadata
| Architecture | qwen3 (Qwen3ForCausalLM), 28 layers, 2.03 B parameters (incl. tied embeddings) |
| Attention geometry | 16 query heads / 8 KV heads, head_dim 128, hidden size 2048, intermediate size 6144 |
| Native context | 32,768 tokens (upstream documented; max_position_embeddings = 40,960) |
| Tokenizer | GPT-2-style BPE (tokenizer.ggml.pre = qwen2), vocabulary 151,936, NFC normaliser, no BOS |
| EOS | `< |
| Chat template | Embedded byte-for-byte from the upstream tokenizer_config.json (supports enable_thinking) |
Non-thinking mode
Qwen3 is a hybrid thinking model. For fast, short answers on mobile, use non-thinking mode:
- With a Jinja-capable runtime, render the embedded template with
enable_thinking=false. - If you build prompts by hand, add an empty think block after the assistant header:
<|im_start|>user
{message}<|im_end|>
<|im_start|>assistant
<think>
</think>
- Appending
/no_thinkto a user turn also switches thinking off (an upstream Qwen3 feature).
Recommended inference parameters
| Mode | temperature | top_p | top_k | min_p | presence_penalty |
|---|---|---|---|---|---|
| Non-thinking (recommended for Android) | 0.7 | 0.8 | 20 | 0 | 0–1.5 (raise if output repeats) |
| Thinking | 0.6 | 0.95 | 20 | 0 | 0–1.5 |
These values follow Qwen's upstream recommendations. Do not use greedy decoding in thinking mode, because it tends to repeat.
Context size: 2048–4096 for Android. The KV cache costs about 112 KiB per token at F16 (28 layers × 8 KV heads × 128 dims × 2 × 2 bytes), so a 2048 context adds about 224 MiB and a 4096 context adds about 448 MiB.
Validation results
All tests are in validation/. Qwen3-1.7B-Q4_K_M.gguf was tested against two llama.cpp builds: the conversion build (cd959ba) and the Android runtime build (4b77dee, compiled for macOS x86_64).
| Check | Result (cd959ba) | Result (android-4b77dee) |
|---|---|---|
Token-ID parity vs HF tokenizers: general multilingual text |
11/11 | 11/11 |
| Token-ID parity: Hindi (conjuncts, nukta, Devanagari digits, Hinglish, ₹) | 6/6 | 6/6 |
| Token-ID parity: Unicode edge cases (NFD→NFC, ligatures, full-width) | 3/3 | 3/3 |
| Token-ID parity: rendered chat prompt with special tokens (thinking on/off) | 2/2 | 2/2 |
| Chat template byte-identical to upstream | ✅ | ✅ |
| Metadata check | ✅ | ✅ |
| Greedy inference, non-thinking mode (English, Hindi, maths, 2× multi-turn) | 5/5 | 5/5 |