Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -11,7 +11,7 @@ base_model:
|
|
| 11 |
---
|
| 12 |
# Qwen3.5-2B — ExecuTorch XNNPACK 8da4w + 8-bit embedding
|
| 13 |
|
| 14 |
-
`qwen3_5_2b_xnnpack_8da4w_e8.pte` (
|
| 15 |
|
| 16 |
- **Source**: Qwen/Qwen3.5-2B
|
| 17 |
- **License**: Apache-2.0
|
|
@@ -29,15 +29,31 @@ prompt so no answer is read through the previous one's cache:
|
|
| 29 |
|
| 30 |
| prompt | answer | decode |
|
| 31 |
|---|---|---|
|
| 32 |
-
| capital of France? | "The capital of France is **Paris**." |
|
| 33 |
-
| 日本の首都は? | 「日本の首都は**東京都**です。」 |
|
| 34 |
-
| 17 times 4? | opens a `<think>` block and works through it |
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
Chat template: ChatML, bos 248045, eos [248046, 248044].
|
| 37 |
|
| 38 |
Not measured on a phone. The
|
| 39 |
-
[0.8B](https://huggingface.co/mlboydaisuke/Qwen3.5-0.8B-ExecuTorch)
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
## Running it
|
| 43 |
|
|
|
|
| 11 |
---
|
| 12 |
# Qwen3.5-2B — ExecuTorch XNNPACK 8da4w + 8-bit embedding
|
| 13 |
|
| 14 |
+
`qwen3_5_2b_xnnpack_8da4w_e8.pte` (1483.7 MB)
|
| 15 |
|
| 16 |
- **Source**: Qwen/Qwen3.5-2B
|
| 17 |
- **License**: Apache-2.0
|
|
|
|
| 29 |
|
| 30 |
| prompt | answer | decode |
|
| 31 |
|---|---|---|
|
| 32 |
+
| capital of France? | "The capital of France is **Paris**." | 33.25 tok/s |
|
| 33 |
+
| 日本の首都は? | 「日本の首都は**東京都**です。」 | 33.25 tok/s |
|
| 34 |
+
| 17 times 4? | opens a `<think>` block and works through it | 33.25 tok/s |
|
| 35 |
+
|
| 36 |
+
All three rates are from one run with nothing else on the machine, which matters more than
|
| 37 |
+
it sounds: the same file measured 16.6 tok/s while an export was running alongside.
|
| 38 |
|
| 39 |
Chat template: ChatML, bos 248045, eos [248046, 248044].
|
| 40 |
|
| 41 |
Not measured on a phone. The
|
| 42 |
+
[0.8B](https://huggingface.co/mlboydaisuke/Qwen3.5-0.8B-ExecuTorch) was measured at 10.5
|
| 43 |
+
tok/s on an iPhone 17 Pro, but on its earlier build, before
|
| 44 |
+
`use_sdpa_with_kv_cache` was turned on.
|
| 45 |
+
|
| 46 |
+
## The setting that doubles it
|
| 47 |
+
|
| 48 |
+
`use_sdpa_with_kv_cache: True`. Upstream's own `qwen3_5` config has it off with no reason
|
| 49 |
+
given, while the equally hybrid `lfm2` config has it on. Measured on the 2B in one run:
|
| 50 |
+
**8.20 tok/s off, 16.64 on**.
|
| 51 |
+
|
| 52 |
+
That it is only a kernel swap and not a different model was checked three ways: three of
|
| 53 |
+
four prompts came out token-identical; the first-step logits agree at **corr 0.995** with
|
| 54 |
+
the same top-1; and 338 tokens deep they agree at **corr 0.990**, same top-1 and top-2. The
|
| 55 |
+
fourth prompt differs where a thinking model decides how long to think, which is a near-tie
|
| 56 |
+
either way.
|
| 57 |
|
| 58 |
## Running it
|
| 59 |
|