Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: MiniMaxAI/MiniMax-M3
|
| 4 |
+
tags:
|
| 5 |
+
- eagle3
|
| 6 |
+
- speculative-decoding
|
| 7 |
+
- compressed-tensors
|
| 8 |
+
- int4
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# MiniMax-M3 EAGLE3 drafter — RTN INT4
|
| 12 |
+
|
| 13 |
+
EAGLE3 speculative-decoding draft head for
|
| 14 |
+
[Sebesky/MiniMax-M3-W4A16-GPTQ](https://huggingface.co/Sebesky/MiniMax-M3-W4A16-GPTQ):
|
| 15 |
+
a single Llama-style decoder layer (hidden 6144, 64-head full MHA, head_dim 128)
|
| 16 |
+
with its **own** `embed_tokens` and `lm_head` (vocab 200,064) — not shared with
|
| 17 |
+
the target. Everything is RTN-quantized to int4 (compressed-tensors
|
| 18 |
+
`pack-quantized`, group 128): Linear, embedding, and lm_head. ~1.6 GB.
|
| 19 |
+
|
| 20 |
+
## Usage (vLLM)
|
| 21 |
+
|
| 22 |
+
```
|
| 23 |
+
--speculative-config '{"method":"eagle3","model":"Sebesky/MiniMax-M3-EAGLE3-RTN-INT4","num_speculative_tokens":3}'
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
Validated on 2x DGX Spark (GB10) at TP2 with `draft_tensor_parallel_size: 2`:
|
| 27 |
+
acceptance length 3.36 (78.6% draft acceptance) at 120k-token context,
|
| 28 |
+
decode 39.7 / 30.4 / 26.4 tok/s @512/65k/120k with 4-bit KV quantization.
|
| 29 |
+
|
| 30 |
+
Reference deployment (container image, recipes, GB10 operational notes):
|
| 31 |
+
see the `DEPLOYMENT.md` of the companion spark-vllm-docker fork.
|
| 32 |
+
|
| 33 |
+
Note: the int4 embedding requires the draft model's quantization config to be
|
| 34 |
+
applied to `embed_tokens` at load; vLLM builds that need the
|
| 35 |
+
`fix-eagle3-draft-embed-quant` mod from the deployment repo.
|