WalterHoffmann commited on
Commit
d067997
·
verified ·
1 Parent(s): 5b181ed

Document MTP speculative decoding (llama.cpp draft-mtp + vLLM)

Browse files
Files changed (1) hide show
  1. README.md +18 -0
README.md CHANGED
@@ -249,6 +249,24 @@ processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
249
  # No system prompt required — the behaviour is intrinsic to the weights.
250
  ```
251
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
252
  ## Responsible use
253
 
254
  **Intended**: authorized penetration testing and red-teaming; internal vulnerability
 
249
  # No system prompt required — the behaviour is intrinsic to the weights.
250
  ```
251
 
252
+ ## Speculative decoding (MTP)
253
+
254
+ This model carries the base **MTP (multi-token-prediction) head** (`model-mtp-head.safetensors`),
255
+ so vLLM can *self*-speculate one token ahead with **no separate draft model**:
256
+
257
+ ```bash
258
+ vllm serve QuaduxIT/Qwen3.8-27B-Whitehat \
259
+ --trust-remote-code \
260
+ --max-model-len 32768 \
261
+ --speculative-config '{"method":"mtp","num_speculative_tokens":1}' \
262
+ --host 0.0.0.0 --port 8080
263
+ ```
264
+
265
+ vLLM loads the MTP module as `Qwen3_5MTP` (verified: loads and runs). For **llama.cpp / GGUF**
266
+ speculative decoding on the GGUF build, see the
267
+ [`Qwen3.8-27B-Whitehat-GGUF`](https://huggingface.co/QuaduxIT/Qwen3.8-27B-Whitehat-GGUF) repo
268
+ (`--spec-type draft-mtp` — the MTP head ships as `blk.64`).
269
+
270
  ## Responsible use
271
 
272
  **Intended**: authorized penetration testing and red-teaming; internal vulnerability