deepsweet commited on
Commit
3d5d72d
·
verified ·
1 Parent(s): 3122315

Add files using upload-large-folder tool

Browse files
Files changed (3) hide show
  1. README.md +22 -0
  2. config.json +53 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: transformers
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - dflash
7
+ - speculative-decoding
8
+ - draft-model
9
+ base_model: z-lab/Qwen3.6-27B-DFlash
10
+ ---
11
+
12
+ This model was [converted](https://github.com/deepsweet/bf16-to-fp16) to FP16 from [z-lab/Qwen3.6-27B-DFlash](https://huggingface.co/z-lab/Qwen3.6-27B-DFlash) BF16.
13
+
14
+ ## What is "DFlash"?
15
+
16
+ >DFlash is a novel speculative decoding method that utilizes a lightweight block diffusion model for drafting. It enables efficient, high-quality parallel drafting that pushes the limits of inference speed.
17
+
18
+ ## What is "FP16"?
19
+
20
+ "FP16" is M1/M2 Apple Silicon only optimization that leads to a very noticeable prompt processing boost. See [jundot/omlx/issues/604](https://github.com/jundot/omlx/issues/604) and [jundot/omlx/pull/880](https://github.com/jundot/omlx/pull/880) for details.
21
+
22
+ Use the original model if you have M3+ Apple Silicon.
config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DFlashDraftModel"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "auto_map": {
8
+ "AutoModel": "dflash.DFlashDraftModel"
9
+ },
10
+ "block_size": 16,
11
+ "bos_token_id": null,
12
+ "dflash_config": {
13
+ "mask_token_id": 248070,
14
+ "target_layer_ids": [
15
+ 1,
16
+ 16,
17
+ 31,
18
+ 46,
19
+ 61
20
+ ]
21
+ },
22
+ "dtype": "float16",
23
+ "eos_token_id": 248044,
24
+ "head_dim": 128,
25
+ "hidden_act": "silu",
26
+ "hidden_size": 5120,
27
+ "initializer_range": 0.02,
28
+ "intermediate_size": 17408,
29
+ "layer_types": [
30
+ "sliding_attention",
31
+ "sliding_attention",
32
+ "sliding_attention",
33
+ "sliding_attention",
34
+ "full_attention"
35
+ ],
36
+ "max_position_embeddings": 262144,
37
+ "max_window_layers": 5,
38
+ "model_type": "qwen3",
39
+ "num_attention_heads": 32,
40
+ "num_hidden_layers": 5,
41
+ "num_key_value_heads": 8,
42
+ "num_target_layers": 64,
43
+ "pad_token_id": 248044,
44
+ "rms_norm_eps": 1e-06,
45
+ "sliding_window": 2048,
46
+ "tie_word_embeddings": false,
47
+ "transformers_version": "5.5.3",
48
+ "use_cache": true,
49
+ "use_sliding_window": true,
50
+ "vocab_size": 248320,
51
+ "rope_theta": 10000000,
52
+ "rope_scaling": null
53
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f6a287575d124c04f05ea18287894b3d7324d3a270dba6db309eb5517c1b474
3
+ size 3460432416