Views
No views yet
This is an NVFP4-quantized standalone Gemma 4 target model.It can run by itself. For the speculative-decoding results below, it was paired with a compatible Gemma 4 26B A4B Assistant/MTP draft model.
nvidia/Gemma-4-26B-A4B-NVFP4google/gemma-4-26B-A4B-itnvfp4_experts_onlynvfp4_experts_only recipe, so not every tensor in the checkpoint is expected to use NVFP4.--spec-type draft-mtpnvfp4 tensor type, load the Gemma 4 Assistant architecture, or initialize the shared KV-cache layout correctly.Multimodal inference requires a compatible projector and runtime support. The text-only benchmark below does not test image input.
1llama-server \
2 -m Gemma-4-26B-A4B-NVFP4.gguf \
3 -md gemma-4-26B-A4B-it-assistant.gguf \
4 --spec-type draft-mtp \
5 --spec-draft-n-max 4 \
6 --flash-attn on \
7 -ngl 991llama-cli \
2 -m Gemma-4-26B-A4B-NVFP4.gguf \
3 -md gemma-4-26B-A4B-it-assistant.gguf \
4 --spec-type draft-mtp \
5 --spec-draft-n-max 4 \
6 --flash-attn on \
7 -ngl 991llama-server \
2 -m Gemma-4-26B-A4B-NVFP4.gguf \
3 -md gemma-4-26B-A4B-it-assistant.gguf \
4 --spec-type draft-mtp \
5 --spec-draft-n-max 4 \
6 --split-mode layer \
7 --tensor-split 1,1 \
8 --flash-attn on \
9 -ngl 99n_max = 4 gave the best aggregate throughput and shortest wall time.n_max = 2 gave the highest aggregate acceptance rate and remained preferable for several high-entropy tasks.n_max = 5 was nearly tied with n_max = 4 overall and achieved the highest speeds for repeated patterns, JSON, code completion, and stepwise mathematics.n_max = 4 to n_max = 5 added substantially more draft work but did not improve aggregate throughput.--spec-draft-n-max 4--spec-draft-n-max 2--spec-draft-n-max 5convert_hf_to_gguf.py from llama.cpp:1python convert_hf_to_gguf.py \
2 /path/to/Gemma-4-26B-A4B-NVFP4 \
3 --outfile Gemma-4-26B-A4B-NVFP4.gguf \
4 --outtype auto \
5 --verboseq4_k_m when the goal is to preserve the original NVFP4 tensors. The conversion repackages the ModelOpt checkpoint into GGUF rather than requantizing it into a K-quant.GB. A file shown with a larger decimal-GB value on Hugging Face can therefore appear smaller in Windows.llama-gguf:.\llama-gguf.exe E:\HF_MODELS\Gemma-4-26B-A4B-NVFP4.gguf r1tensor: name = blk.0.ffn_*.weight, type = nvfp4
2tensor: name = blk.0.ffn_*.scale, type = f32
3tensor: name = blk.0.ffn_*.input_scale, type = f32--spec-type draft-mtpn_max | Draft acceptance | Predicted tokens | Draft tokens | Accepted tokens | Wall time | Effective batch throughput |
|---|---|---|---|---|---|---|
| 2 | 80.6% | 2,135 | 1,622 | 1,307 | 16.77 s | 127.31 tok/s |
| 3 | 74.0% | 2,129 | 1,969 | 1,456 | 15.58 s | 136.65 tok/s |
| 4 | 68.1% | 2,116 | 2,261 | 1,540 | 14.76 s | 143.36 tok/s |
| 5 | 60.7% | 2,116 | 2,606 | 1,582 | 14.81 s | 142.88 tok/s |
tok/s can be higher because aggregate wall time may include prompt processing, request transitions, and benchmark overhead.n_max = 4 and n_max = 5 runs both generated 2,116 tokens and can be compared directly.n_max = 21code_python pred= 192 draft= 139 acc= 121 rate=0.871 tok/s=144.7
2code_cpp pred= 192 draft= 148 acc= 117 rate=0.790 tok/s=138.9
3explain_concept pred= 192 draft= 158 acc= 111 rate=0.703 tok/s=128.2
4summarize pred= 52 draft= 44 acc= 30 rate=0.682 tok/s=125.8
5qa_factual pred= 192 draft= 166 acc= 108 rate=0.651 tok/s=125.1
6translation pred= 129 draft= 102 acc= 77 rate=0.755 tok/s=135.5
7creative_short pred= 34 draft= 32 acc= 17 rate=0.531 tok/s=114.0
8stepwise_math pred= 192 draft= 137 acc= 122 rate=0.890 tok/s=145.5
9json_output pred= 192 draft= 128 acc= 127 rate=0.992 tok/s=158.4
10long_reasoning pred= 192 draft= 142 acc= 119 rate=0.838 tok/s=140.9
11repeat_pattern pred= 192 draft= 127 acc= 127 rate=1.000 tok/s=159.1
12code_completion pred= 192 draft= 132 acc= 124 rate=0.939 tok/s=152.5
13long_code_review pred= 192 draft= 167 acc= 107 rate=0.641 tok/s=118.0
14
15Aggregate:
16 requests: 13
17 predicted tokens: 2135
18 draft tokens: 1622
19 accepted tokens: 1307
20 acceptance rate: 0.8058
21 total wall time: 16.77 sn_max = 31code_python pred= 192 draft= 162 acc= 137 rate=0.846 tok/s=167.6
2code_cpp pred= 192 draft= 179 acc= 131 rate=0.732 tok/s=150.7
3explain_concept pred= 192 draft= 209 acc= 120 rate=0.574 tok/s=127.7
4summarize pred= 52 draft= 54 acc= 33 rate=0.611 tok/s=128.2
5qa_factual pred= 192 draft= 207 acc= 121 rate=0.585 tok/s=130.1
6translation pred= 123 draft= 123 acc= 82 rate=0.667 tok/s=141.6
7creative_short pred= 34 draft= 39 acc= 21 rate=0.538 tok/s=122.6
8stepwise_math pred= 192 draft= 159 acc= 137 rate=0.862 tok/s=166.7
9json_output pred= 192 draft= 146 acc= 142 rate=0.973 tok/s=181.3
10long_reasoning pred= 192 draft= 188 acc= 128 rate=0.681 tok/s=143.5
11repeat_pattern pred= 192 draft= 143 acc= 143 rate=1.000 tok/s=188.4
12code_completion pred= 192 draft= 151 acc= 140 rate=0.927 tok/s=175.9
13long_code_review pred= 192 draft= 209 acc= 121 rate=0.579 tok/s=125.9
14
15Aggregate:
16 requests: 13
17 predicted tokens: 2129
18 draft tokens: 1969
19 accepted tokens: 1456
20 acceptance rate: 0.7395
21 total wall time: 15.58 sn_max = 41code_python pred= 192 draft= 176 acc= 146 rate=0.830 tok/s=179.8
2code_cpp pred= 192 draft= 201 acc= 140 rate=0.697 tok/s=162.6
3explain_concept pred= 192 draft= 277 acc= 120 rate=0.433 tok/s=116.2
4summarize pred= 52 draft= 60 acc= 38 rate=0.633 tok/s=146.9
5qa_factual pred= 192 draft= 250 acc= 128 rate=0.512 tok/s=132.7
6translation pred= 110 draft= 120 acc= 82 rate=0.683 tok/s=158.2
7creative_short pred= 34 draft= 48 acc= 23 rate=0.479 tok/s=121.9
8stepwise_math pred= 192 draft= 176 acc= 147 rate=0.835 tok/s=187.2
9json_output pred= 192 draft= 160 acc= 151 rate=0.944 tok/s=203.1
10long_reasoning pred= 192 draft= 204 acc= 140 rate=0.686 tok/s=159.4
11repeat_pattern pred= 192 draft= 153 acc= 152 rate=0.994 tok/s=211.5
12code_completion pred= 192 draft= 164 acc= 150 rate=0.915 tok/s=199.2
13long_code_review pred= 192 draft= 272 acc= 123 rate=0.452 tok/s=119.7
14
15Aggregate:
16 requests: 13
17 predicted tokens: 2116
18 draft tokens: 2261
19 accepted tokens: 1540
20 acceptance rate: 0.6811
21 total wall time: 14.76 sn_max = 51code_python pred= 192 draft= 205 acc= 150 rate=0.732 tok/s=182.1
2code_cpp pred= 192 draft= 240 acc= 143 rate=0.596 tok/s=158.5
3explain_concept pred= 192 draft= 340 acc= 121 rate=0.356 tok/s=109.0
4summarize pred= 52 draft= 80 acc= 37 rate=0.463 tok/s=128.5
5qa_factual pred= 192 draft= 279 acc= 135 rate=0.484 tok/s=137.3
6translation pred= 110 draft= 150 acc= 81 rate=0.540 tok/s=146.0
7creative_short pred= 34 draft= 60 acc= 23 rate=0.383 tok/s=111.1
8stepwise_math pred= 192 draft= 189 acc= 153 rate=0.809 tok/s=196.7
9json_output pred= 192 draft= 172 acc= 156 rate=0.907 tok/s=212.1
10long_reasoning pred= 192 draft= 225 acc= 145 rate=0.644 tok/s=163.1
11repeat_pattern pred= 192 draft= 159 acc= 159 rate=1.000 tok/s=234.8
12code_completion pred= 192 draft= 178 acc= 155 rate=0.871 tok/s=208.2
13long_code_review pred= 192 draft= 329 acc= 124 rate=0.377 tok/s=111.2
14
15Aggregate:
16 requests: 13
17 predicted tokens: 2116
18 draft tokens: 2606
19 accepted tokens: 1582
20 acceptance rate: 0.6071
21 total wall time: 14.81 sn_max = 2:1code_python pred= 192 draft= 148 acc= 117 rate=0.790 tok/s=113.2
2code_cpp pred= 192 draft= 164 acc= 108 rate=0.658 tok/s=104.3
3explain_concept pred= 192 draft= 204 acc= 88 rate=0.431 tok/s=84.1
4summarize pred= 51 draft= 46 acc= 28 rate=0.609 tok/s=98.0
5qa_factual pred= 192 draft= 179 acc= 101 rate=0.564 tok/s=95.9
6translation pred= 70 draft= 78 acc= 31 rate=0.397 tok/s=80.7
7creative_short pred= 34 draft= 40 acc= 14 rate=0.350 tok/s=76.1
8stepwise_math pred= 192 draft= 151 acc= 115 rate=0.762 tok/s=113.1
9json_output pred= 192 draft= 134 acc= 124 rate=0.925 tok/s=126.4
10long_reasoning pred= 192 draft= 163 acc= 108 rate=0.663 tok/s=101.8
11repeat_pattern pred= 192 draft= 132 acc= 125 rate=0.947 tok/s=129.2
12code_completion pred= 192 draft= 137 acc= 122 rate=0.890 tok/s=123.9
13long_code_review pred= 192 draft= 193 acc= 94 rate=0.487 tok/s=86.7
14
15Aggregate:
16 requests: 13
17 predicted tokens: 2075
18 draft tokens: 1769
19 accepted tokens: 1175
20 acceptance rate: 0.6642
21 total wall time: 22.10 s
22 effective throughput: 93.89 tok/s| Draft method | Best tested setting | Draft acceptance | Effective batch throughput |
|---|---|---|---|
| DFlash | n_max = 2 | 66.4% | 93.89 tok/s |
| Assistant/MTP | n_max = 4 | 68.1% | 143.36 tok/s |
n_max = 4 delivered approximately 52.7% higher effective aggregate throughput than the tested DFlash n_max = 2 run.n_max = 4 was the best mixed-task setting, reaching approximately 143.36 tok/s aggregate throughput.n_max = 5 was effectively tied overall at 142.88 tok/s, but used 15.3% more draft tokens than n_max = 4.n_max = 4 to n_max = 5 increased accepted draft tokens by only 2.7%, indicating sharply diminishing returns.n_max = 5 reached 234.8 tok/s on repeated-pattern generation.n_max = 5.n_max = 5.n_max = 5.n_max = 5.Q4_K_M, Q4_K_S, or an Unsloth dynamic quant.google/gemma-4-26B-A4B-itnvidia/Gemma-4-26B-A4B-NVFP4nvidia/Gemma-4-26B-A4B-NVFP4 and google/gemma-4-26B-A4B-it model cards and applicable terms before redistribution or commercial use.