danielhanchen commited on
Commit
9716a63
·
verified ·
1 Parent(s): c4bdf74

README: MTP merged 16 May 2026, update build cmd, remove ngram chain, n_max 2→6

Browse files
Files changed (1) hide show
  1. README.md +7 -13
README.md CHANGED
@@ -30,16 +30,18 @@ tags:
30
  </a>
31
  </div>
32
  <ul style="margin: 0;">
33
- <li><b>NEW: MTP speculative decoding for ~1.5-2x faster generation - build llama.cpp from the <a href="https://github.com/ggml-org/llama.cpp/pull/22673">MTP PR branch</a>:</b>
34
 
35
  > **Note:** llama.cpp [renamed](https://github.com/ggml-org/llama.cpp/pull/22673/commits/655c5773854dfd3deb2b6a1e66695d992ba83708) `--spec-type mtp` to `--spec-type draft-mtp` on 2026-05-13
36
 
37
 
38
  ```bash
 
39
  apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y
40
- git clone -b mtp-clean https://github.com/am17an/llama.cpp.git
41
- cmake llama.cpp -B llama.cpp/build -DBUILD_SHARED_LIBS=OFF -DGGML_CUDA=ON
42
- cmake --build llama.cpp/build --config Release -j --clean-first --target llama-cli llama-server
 
43
  cp llama.cpp/build/bin/llama-* llama.cpp
44
  ```
45
 
@@ -48,17 +50,9 @@ export LLAMA_CACHE="unsloth/Qwen3.5-9B-MTP-GGUF"
48
  ./llama.cpp/llama-server \
49
  -hf unsloth/Qwen3.5-9B-MTP-GGUF:UD-Q4_K_XL \
50
  -ngl 99 -c 8192 -fa on -np 1 \
51
- --spec-type draft-mtp --spec-draft-n-max 2
52
  ```
53
 
54
- For even faster generation, chain `ngram-mod` in front of MTP (parallel drafting from [PR #22838](https://github.com/ggml-org/llama.cpp/pull/22838)) - ngram catches verbatim repeats from the prompt while MTP drafts novel tokens:
55
-
56
- ```bash
57
- ./llama.cpp/llama-server \
58
- -hf unsloth/Qwen3.5-9B-MTP-GGUF:UD-Q4_K_XL \
59
- -ngl 99 -c 8192 -fa on -np 1 \
60
- --spec-type ngram-mod,draft-mtp --spec-draft-n-max 4
61
- ```
62
 
63
  Set `-DGGML_CUDA=OFF` for CPU/Metal. `-np > 1` and `--mmproj` are not yet supported with MTP.
64
  </li>
 
30
  </a>
31
  </div>
32
  <ul style="margin: 0;">
33
+ <li><b>NEW: MTP speculative decoding for ~1.5-2x faster generation - build llama.cpp from the <a href="https://github.com/ggml-org/llama.cpp/pull/22673">MTP PR branch</a> - has been merged 16th May 2026!</b>
34
 
35
  > **Note:** llama.cpp [renamed](https://github.com/ggml-org/llama.cpp/pull/22673/commits/655c5773854dfd3deb2b6a1e66695d992ba83708) `--spec-type mtp` to `--spec-type draft-mtp` on 2026-05-13
36
 
37
 
38
  ```bash
39
+ apt-get update
40
  apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y
41
+ git clone https://github.com/ggml-org/llama.cpp
42
+ cmake llama.cpp -B llama.cpp/build \
43
+ -DBUILD_SHARED_LIBS=OFF -DGGML_CUDA=ON
44
+ cmake --build llama.cpp/build --config Release -j --clean-first --target llama-cli llama-mtmd-cli llama-server llama-gguf-split
45
  cp llama.cpp/build/bin/llama-* llama.cpp
46
  ```
47
 
 
50
  ./llama.cpp/llama-server \
51
  -hf unsloth/Qwen3.5-9B-MTP-GGUF:UD-Q4_K_XL \
52
  -ngl 99 -c 8192 -fa on -np 1 \
53
+ --spec-type draft-mtp --spec-draft-n-max 6
54
  ```
55
 
 
 
 
 
 
 
 
 
56
 
57
  Set `-DGGML_CUDA=OFF` for CPU/Metal. `-np > 1` and `--mmproj` are not yet supported with MTP.
58
  </li>