danielhanchen commited on
Commit
bf7562e
·
verified ·
1 Parent(s): 0f9c091

Add root-level mtp- drafter for -hf auto-discovery; rename MTP/ drafters to mtp- prefix; update MTP README

Browse files
.gitattributes CHANGED
@@ -62,3 +62,7 @@ gemma-4-E4B-it-BF16.gguf filter=lfs diff=lfs merge=lfs -text
62
  MTP/gemma-4-E4B-it-MTP-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
63
  MTP/gemma-4-E4B-it-MTP-BF16.gguf filter=lfs diff=lfs merge=lfs -text
64
  MTP/gemma-4-E4B-it-MTP-F16.gguf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
62
  MTP/gemma-4-E4B-it-MTP-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
63
  MTP/gemma-4-E4B-it-MTP-BF16.gguf filter=lfs diff=lfs merge=lfs -text
64
  MTP/gemma-4-E4B-it-MTP-F16.gguf filter=lfs diff=lfs merge=lfs -text
65
+ mtp-gemma-4-E4B-it-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
66
+ MTP/mtp-gemma-4-E4B-it-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
67
+ MTP/mtp-gemma-4-E4B-it-BF16.gguf filter=lfs diff=lfs merge=lfs -text
68
+ MTP/mtp-gemma-4-E4B-it-F16.gguf filter=lfs diff=lfs merge=lfs -text
MTP/README.md CHANGED
@@ -10,9 +10,11 @@ Run E4B with `-fa off`. With flash attention on, the draft model currently abort
10
 
11
  ## Files
12
 
13
- - `gemma-4-E4B-it-MTP-Q8_0.gguf` (smallest, recommended)
14
- - `gemma-4-E4B-it-MTP-BF16.gguf`
15
- - `gemma-4-E4B-it-MTP-F16.gguf`
 
 
16
 
17
  ## Build llama.cpp
18
 
@@ -25,17 +27,32 @@ cmake -B build -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=90
25
  cmake --build build --config Release -j --target llama-server
26
  ```
27
 
28
- ## Run
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  ```bash
31
  hf download unsloth/gemma-4-E4B-it-GGUF gemma-4-E4B-it-Q4_K_M.gguf --local-dir .
32
- hf download unsloth/gemma-4-E4B-it-GGUF MTP/gemma-4-E4B-it-MTP-Q8_0.gguf --local-dir .
33
 
34
  ./build/bin/llama-server \
35
  -m gemma-4-E4B-it-Q4_K_M.gguf \
36
- --model-draft MTP/gemma-4-E4B-it-MTP-Q8_0.gguf \
37
  --spec-type draft-mtp --spec-draft-n-max 4 \
38
  -ngl 999 -fa off
39
  ```
40
 
41
- Multi GPU: add `--spec-draft-device CUDA0 -sm layer`. The drafter pairs with any quant of the E4B.
 
10
 
11
  ## Files
12
 
13
+ A `mtp-` prefixed Q8_0 copy sits at the repo root so `-hf` can auto-discover it. All three precisions live in `MTP/`:
14
+
15
+ - `mtp-gemma-4-E4B-it-Q8_0.gguf` (smallest, recommended; same file is mirrored at the repo root)
16
+ - `mtp-gemma-4-E4B-it-BF16.gguf`
17
+ - `mtp-gemma-4-E4B-it-F16.gguf`
18
 
19
  ## Build llama.cpp
20
 
 
27
  cmake --build build --config Release -j --target llama-server
28
  ```
29
 
30
+ ## Run, the easy way
31
+
32
+ A recent llama.cpp finds the drafter automatically from the root `mtp-` file, so `-hf` is all you need. No `--model-draft`.
33
+
34
+ ```bash
35
+ ./build/bin/llama-server \
36
+ -hf unsloth/gemma-4-E4B-it-GGUF:Q4_K_M \
37
+ --spec-type draft-mtp --spec-draft-n-max 4 \
38
+ -ngl 999 -fa off
39
+ ```
40
+
41
+ If your build is too old to auto-discover the sibling, use the explicit form below.
42
+
43
+ ## Run with an explicit drafter
44
+
45
+ Use this to choose a precision or point at a local file.
46
 
47
  ```bash
48
  hf download unsloth/gemma-4-E4B-it-GGUF gemma-4-E4B-it-Q4_K_M.gguf --local-dir .
49
+ hf download unsloth/gemma-4-E4B-it-GGUF MTP/mtp-gemma-4-E4B-it-Q8_0.gguf --local-dir .
50
 
51
  ./build/bin/llama-server \
52
  -m gemma-4-E4B-it-Q4_K_M.gguf \
53
+ --model-draft MTP/mtp-gemma-4-E4B-it-Q8_0.gguf \
54
  --spec-type draft-mtp --spec-draft-n-max 4 \
55
  -ngl 999 -fa off
56
  ```
57
 
58
+ Multi GPU: add `--spec-draft-device CUDA0 -sm layer`. The drafter pairs with any quant of the E4B. Quantized KV cache works.
MTP/mtp-gemma-4-E4B-it-BF16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:909b31e9e0a4919c936f09b99b3562d663187d6c142abe3e6656610720f9b3e2
3
+ size 171766848
MTP/mtp-gemma-4-E4B-it-F16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16f0fad416a6ce65b28688daa1d39f4b11af5427a4478beb1d4f3adf7b5ed2bf
3
+ size 171766848
MTP/mtp-gemma-4-E4B-it-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6a723115efa510d3b3215db1e26790dae84cd08c2134a764f3d194f1f0c3376
3
+ size 98653248
mtp-gemma-4-E4B-it-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6a723115efa510d3b3215db1e26790dae84cd08c2134a764f3d194f1f0c3376
3
+ size 98653248