RelaxingSnorlax commited on
Commit
e53b374
·
verified ·
1 Parent(s): e5b6b66

Upload Llama4 Eagle3 dummy drafter for vLLM testing

Browse files
Files changed (2) hide show
  1. README.md +17 -45
  2. config.json +0 -21
README.md CHANGED
@@ -1,55 +1,27 @@
1
- ---
2
- license: apache-2.0
3
- tags:
4
- - eagle3
5
- - speculative-decoding
6
- - llama4
7
- - vllm
8
- - testing
9
- ---
10
 
11
- # Llama4 Scout 17B Eagle3 Dummy Drafter
12
-
13
- This is a **dummy/test drafter model** for testing the Eagle3 speculative decoding implementation with Llama4 Scout 17B models in vLLM.
14
-
15
- ⚠️ **WARNING**: This is not a real model and should not be used for inference. It contains random weights and is only for testing purposes.
16
 
17
  ## Model Details
18
-
19
- - **Architecture**: Llama4ForCausalLM (Eagle3 drafter variant)
20
- - **Target Model**: Llama4 Scout 17B
21
- - **Base Model**: Llama4 architecture
22
- - **Hidden Size**: 2048
23
- - **Layers**: 1 (single decoder layer as per Eagle3 design)
24
- - **Vocabulary**: 128256 tokens
25
- - **Parameters**: ~322M
26
 
27
  ## Configuration
28
-
29
- This model uses:
30
- - Eagle3 auxiliary hidden state combination
31
- - Llama4 layer structure with RoPE
32
- - SGLang-style weight naming (midlayer.*)
33
 
34
  ## Usage
 
35
 
36
- This model is designed specifically for testing the vLLM Eagle3 implementation:
37
-
38
- ```python
39
- # Use with vLLM for testing Eagle3 speculative decoding with Llama4 Scout
40
- vllm serve RedHatAI/Llama-4-Scout-17B-16E-Instruct-quantized.w4a16 \
41
- --speculative-config '{"method": "eagle3", "model": "nm-testing/llama4-scout-17b-eagle3-dummy-drafter", ...}'
42
  ```
43
 
44
- ## Testing Purpose Only
45
-
46
- This model:
47
- - Contains random weights
48
- - Is not trained on any data
49
- - Should not be used for actual inference
50
- - Is only for vLLM development and testing
51
-
52
- ## Related
53
-
54
- - vLLM: https://github.com/vllm-project/vllm
55
- - Eagle3: Speculative decoding method
 
1
+ # Llama4 Eagle Drafter Model (Test)
 
 
 
 
 
 
 
 
2
 
3
+ This is a test Eagle drafter model for Llama4 with proper configuration and vocabulary mappings.
 
 
 
 
4
 
5
  ## Model Details
6
+ - **Architecture**: Llama4ForCausalLM (Eagle draft variant)
7
+ - **Hidden size**: 2048
8
+ - **Layers**: 1 (single decoder layer for Eagle draft)
9
+ - **Vocabulary**: 128256 tokens (Llama4)
10
+ - **Includes**: d2t and t2d vocabulary mappings
 
 
 
11
 
12
  ## Configuration
13
+ - Uses standard Llama4 architecture
14
+ - Includes Eagle auxiliary state configuration
15
+ - Has vocabulary mapping tensors (d2t/t2d) for draft-to-target conversion
16
+ - Extended context support (262k max position embeddings)
 
17
 
18
  ## Usage
19
+ This model is for testing Eagle speculative decoding with Llama4 in vLLM:
20
 
21
+ ```bash
22
+ vllm serve <llama4-target-model> \
23
+ --speculative-config '{"method": "eagle", "model": "nm-testing/llama4-eagle-drafter", ...}'
 
 
 
24
  ```
25
 
26
+ ## Testing Purpose
27
+ This model contains random weights and is only for vLLM Eagle implementation testing.
 
 
 
 
 
 
 
 
 
 
config.json CHANGED
@@ -5,37 +5,17 @@
5
  "model_type": "llama4_text",
6
  "hidden_size": 2048,
7
  "intermediate_size": 5632,
8
- "intermediate_size_mlp": 5632,
9
  "num_hidden_layers": 1,
10
  "num_attention_heads": 16,
11
  "num_key_value_heads": 8,
12
  "head_dim": 128,
13
  "vocab_size": 128256,
14
- "draft_vocab_size": 128256,
15
  "attention_bias": false,
16
  "attention_dropout": 0.0,
17
- "attn_temperature_tuning": false,
18
- "cross_layer_interval": 1,
19
- "ffn_dim_multiplier": null,
20
  "mlp_bias": false,
21
- "multi_head_axial": false,
22
- "original_multi_head": false,
23
- "scale_attention_scores": false,
24
  "tie_word_embeddings": false,
25
  "use_cache": true,
26
- "use_memory_efficient_attention": false,
27
  "use_qk_norm": false,
28
- "no_rope_layers": [
29
- 1
30
- ],
31
- "attention_chunk_size": 8192,
32
- "interleave_moe_layer_step": 0,
33
- "moe_layers": [],
34
- "yoco_global_kv_layer": null,
35
- "yoco_local_kv_layer": null,
36
- "num_local_experts": null,
37
- "num_experts_per_tok": null,
38
- "router_aux_loss_coef": null,
39
  "rope_theta": 500000.0,
40
  "rope_scaling": {
41
  "factor": 8.0,
@@ -50,7 +30,6 @@
50
  "mscale_all_dim": 1.0
51
  },
52
  "max_position_embeddings": 262144,
53
- "logit_scale": 1.0,
54
  "rms_norm_eps": 1e-05,
55
  "hidden_act": "silu",
56
  "initializer_range": 0.02,
 
5
  "model_type": "llama4_text",
6
  "hidden_size": 2048,
7
  "intermediate_size": 5632,
 
8
  "num_hidden_layers": 1,
9
  "num_attention_heads": 16,
10
  "num_key_value_heads": 8,
11
  "head_dim": 128,
12
  "vocab_size": 128256,
 
13
  "attention_bias": false,
14
  "attention_dropout": 0.0,
 
 
 
15
  "mlp_bias": false,
 
 
 
16
  "tie_word_embeddings": false,
17
  "use_cache": true,
 
18
  "use_qk_norm": false,
 
 
 
 
 
 
 
 
 
 
 
19
  "rope_theta": 500000.0,
20
  "rope_scaling": {
21
  "factor": 8.0,
 
30
  "mscale_all_dim": 1.0
31
  },
32
  "max_position_embeddings": 262144,
 
33
  "rms_norm_eps": 1e-05,
34
  "hidden_act": "silu",
35
  "initializer_range": 0.02,