worthant commited on
Commit
0aaae23
·
verified ·
1 Parent(s): 12a42c3

forge: regenerate the model card

Browse files
Files changed (1) hide show
  1. README.md +68 -28
README.md CHANGED
@@ -1,19 +1,19 @@
1
  ---
2
- license: mit
 
3
  base_model:
4
  - z-lab/Qwen3.5-9B-DFlash
5
  base_model_relation: quantized
6
- quantized_by: AlexAtomic
7
  pipeline_tag: text-generation
8
  library_name: gguf
9
  tags:
10
  - atomic-chat
11
- - dflash
12
- - speculative-decoding
13
- - draft-model
14
- - qwen
15
  - gguf
16
  - llama.cpp
 
17
  ---
18
 
19
  <center>
@@ -26,49 +26,89 @@ tags:
26
 
27
  <br/>
28
 
29
- <img src="https://huggingface.co/AtomicChat/Qwen3.5-9B-DFlash-GGUF/resolve/main/hero_dflash.png" alt="DFlash" style="width:100%; max-width:820px; height:auto; margin-bottom:0.6em;"/>
30
 
31
  <div style="display:flex; justify-content:center; gap:0.5em;">
32
- <a href="https://huggingface.co/z-lab/Qwen3.5-9B-DFlash"><strong>Draft: z-lab/Qwen3.5-9B-DFlash</strong></a> &nbsp;·&nbsp; <a href="https://huggingface.co/Qwen/Qwen3.5-9B"><strong>Target: Qwen/Qwen3.5-9B</strong></a>
33
  </div>
34
  </center>
35
 
36
- **Qwen3.5 9B DFlash**, the DFlash speculative-decoding **draft** converted to GGUF by [Atomic Chat](https://atomic.chat). Built straight from [z-lab](https://huggingface.co/z-lab)'s original weights. Runs fully offline.
37
 
38
- ## What this is
39
 
40
- [DFlash](https://github.com/z-lab/dflash) is a speculative-decoding method that drafts a whole **block** of candidate tokens in a single forward pass using a lightweight block-diffusion model, instead of one token at a time. This repo is the **draft component only** — it does nothing on its own. You run it alongside the target model **`Qwen/Qwen3.5-9B`**, which verifies the drafted block and keeps the longest correct prefix. Output is identical to running the target alone, just faster.
 
 
 
41
 
42
  > [!NOTE]
43
- > These GGUFs are **converted from z-lab's original weights**, not a repack of someone else's GGUF. The draft attaches to any GGUF of the target model (Atomic, unsloth, bartowski, ...).
44
 
45
- ## Run in llama.cpp
 
46
 
47
- Needs a build of [llama.cpp](https://github.com/ggml-org/llama.cpp) with DFlash speculative decoding (PR #22105). You supply the target as `-m` and this draft as `-md`:
48
 
49
- ```bash
50
- ./llama-server \
51
- -m Qwen3.5-9B.gguf \
52
- -md Qwen3.5-9B-DFlash.Q8_0.gguf \
53
- --spec-type draft-dflash --spec-draft-n-max 15 \
54
- -ngl 99 -fa on --jinja -c 8192
55
- ```
56
-
57
- DFlash is trained for **non-thinking** generation — pass `enable_thinking=false` in the chat template for best acceptance.
 
 
58
 
59
  ## Choosing a quant
60
 
61
  | Quant | Size | Notes |
62
  |---|---|---|
63
- | **`Q8_0`** | 1.38 GB | Recommended. Near-lossless draft head, small and fast to draft with. |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
 
65
- ## Performance
 
 
66
 
67
- <img src="https://huggingface.co/AtomicChat/Qwen3.5-9B-DFlash-GGUF/resolve/main/speedup.png" alt="Qwen3.5-9B-DFlash DFlash speedup" style="width:100%; max-width:840px; margin:0.4em 0;"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
 
69
- z-lab report up to **6.17x** lossless acceleration on their reference stack (vLLM / SGLang / Transformers). In `llama.cpp` today the DFlash port is newer: in our tests **dense** targets get roughly **1.8x-2.8x** end-to-end on code generation, and acceptance climbs on larger targets and structured/code output. Acceptance and speedup depend on the target and the content, not on the quantization. Speedups shrink on free-form prose and on small-active MoE targets.
70
 
 
 
 
 
71
 
72
  ## License
73
 
74
- Released by z-lab under the MIT license. Converted to GGUF by Atomic Chat. See the [DFlash paper](https://arxiv.org/abs/2602.06036) and [project page](https://github.com/z-lab/dflash).
 
1
  ---
2
+ license: apache-2.0
3
+ thumbnail: https://huggingface.co/AtomicChat/Qwen3.5-9B-DFlash-GGUF/resolve/main/hero.png
4
  base_model:
5
  - z-lab/Qwen3.5-9B-DFlash
6
  base_model_relation: quantized
7
+ quantized_by: AtomicChat
8
  pipeline_tag: text-generation
9
  library_name: gguf
10
  tags:
11
  - atomic-chat
12
+ - qwen3.5
13
+ - z-lab
 
 
14
  - gguf
15
  - llama.cpp
16
+ - quantized
17
  ---
18
 
19
  <center>
 
26
 
27
  <br/>
28
 
29
+ <img src="https://huggingface.co/AtomicChat/Qwen3.5-9B-DFlash-GGUF/resolve/main/hero.png" alt="Qwen3.5 9B Dflash" style="width:100%; max-width:100%; height:auto; margin-bottom:0.6em;"/>
30
 
31
  <div style="display:flex; justify-content:center; gap:0.5em;">
32
+ <a href="https://huggingface.co/z-lab/Qwen3.5-9B-DFlash"><strong>Base model: z-lab/Qwen3.5-9B-DFlash</strong></a>
33
  </div>
34
  </center>
35
 
36
+ **Qwen3.5 9B Dflash**, self-quantized to GGUF by [Atomic Chat](https://atomic.chat). Built straight from Z Lab's original weights with a per-tensor importance matrix, so this is not a repack of somebody else's files. Runs fully offline.
37
 
38
+ ## Highlights
39
 
40
+ - **1.3B parameters**: the weights this repo quantizes.
41
+ - **Context length**: 262,144 tokens (256K), as published by Z Lab.
42
+ - **6 layers**: Dense decoder, hybrid sliding-window (4096) and global attention.
43
+ - **Full imatrix ladder**: every quant is calibrated with an importance matrix.
44
 
45
  > [!NOTE]
46
+ > These GGUFs are **self-quantized from the original weights**, not a repack. The importance matrix keeps low-bit quants closer to the full-precision model.
47
 
48
+ > [!IMPORTANT]
49
+ > Always pass `--jinja` so the **Qwen3.5 9B Dflash chat template** is applied. Without it the model can emit malformed turns.
50
 
51
+ ## Model Overview
52
 
53
+ | Property | Value |
54
+ |---|---|
55
+ | Base model | `z-lab/Qwen3.5-9B-DFlash` |
56
+ | Parameters | 1.3B |
57
+ | Layers | 6 |
58
+ | Sliding window | 4096 tokens |
59
+ | Context length | 262,144 tokens (256K) |
60
+ | Vocabulary | 248,320 |
61
+ | Modalities | Text |
62
+ | Architecture | Dense decoder, hybrid sliding-window (4096) and global attention, 32 attention heads over 8 KV heads, `DFlashDraftModel` |
63
+ | This repo | GGUF quants (imatrix). Quants: `Q8_0` |
64
 
65
  ## Choosing a quant
66
 
67
  | Quant | Size | Notes |
68
  |---|---|---|
69
+ | **`Q8_0`** | 1.4 GB | **Effectively lossless, reference quality.** |
70
+
71
+ > [!TIP]
72
+ > Pick the largest file that fits your (V)RAM with room for context. `Q8_0` is the sweet spot for most setups; `Q6_K` or `Q8_0` for maximum fidelity.
73
+
74
+ ## Get started
75
+
76
+ Run Qwen3.5 9B Dflash locally with:
77
+
78
+ - **[Atomic Chat](https://atomic.chat):** the easiest path. Open the app, search `AtomicChat/Qwen3.5-9B-DFlash-GGUF`, pick a quant, hit **Use this model**.
79
+ - **llama.cpp:** `llama-server -hf AtomicChat/Qwen3.5-9B-DFlash-GGUF:Q8_0 --jinja -c 8192`
80
+ - **Ollama:** `ollama run hf.co/AtomicChat/Qwen3.5-9B-DFlash-GGUF:Q8_0`
81
+ - **LM Studio / Jan:** search the repo id, download any quant.
82
+
83
+ ## Best practices
84
 
85
+ | Parameter | Value |
86
+ |---|---|
87
+ | sampling defaults | not stated |
88
 
89
+ The base model card does not state sampling defaults.
90
+
91
+ ## Run in llama.cpp
92
+
93
+ ```bash
94
+ git clone https://github.com/ggml-org/llama.cpp
95
+ cmake llama.cpp -B llama.cpp/build -DBUILD_SHARED_LIBS=OFF -DGGML_CUDA=ON
96
+ cmake --build llama.cpp/build --config Release -j --target llama-cli llama-server
97
+ ```
98
+
99
+ ```bash
100
+ ./llama.cpp/build/bin/llama-server \
101
+ -hf AtomicChat/Qwen3.5-9B-DFlash-GGUF:Q8_0 \
102
+ --jinja -ngl 99 -c 8192 -fa on
103
+ ```
104
 
105
+ ## How these were made
106
 
107
+ 1. Download `z-lab/Qwen3.5-9B-DFlash` (original weights).
108
+ 2. Convert to f16 GGUF with [llama.cpp](https://github.com/ggml-org/llama.cpp).
109
+ 3. Build an importance matrix over our calibration corpus.
110
+ 4. Quantize the ladder with `--imatrix`.
111
 
112
  ## License
113
 
114
+ Original model by Z Lab, released under the Apache 2.0 license. Quantized by Atomic Chat.