[Skip to content](https://github.com/ggml-org/llama.cpp/discussions/21112#start-of-content)

You signed in with another tab or window. [Reload](https://github.com/ggml-org/llama.cpp/discussions/21112) to refresh your session.You signed out in another tab or window. [Reload](https://github.com/ggml-org/llama.cpp/discussions/21112) to refresh your session.You switched accounts on another tab or window. [Reload](https://github.com/ggml-org/llama.cpp/discussions/21112) to refresh your session.Dismiss alert

{{ message }}

### Uh oh!

There was an error while loading. [Please reload this page](https://github.com/ggml-org/llama.cpp/discussions/21112).

[ggml-org](https://github.com/ggml-org)/ **[llama.cpp](https://github.com/ggml-org/llama.cpp)** Public

- [Notifications](https://github.com/login?return_to=%2Fggml-org%2Fllama.cpp) You must be signed in to change notification settings
- [Fork\\
20.3k](https://github.com/login?return_to=%2Fggml-org%2Fllama.cpp)
- [Star\\
119k](https://github.com/login?return_to=%2Fggml-org%2Fllama.cpp)


# Optimize my llama.cpp  \#21112

Unanswered

[ggerganov](https://github.com/ggerganov)

asked this question in
[Q&A](https://github.com/ggml-org/llama.cpp/discussions/categories/q-a)

[Optimize my llama.cpp](https://github.com/ggml-org/llama.cpp/discussions/21112#top)#21112

[![@ggerganov](https://avatars.githubusercontent.com/u/1991296?s=40&v=4)\\
ggerganov](https://github.com/ggerganov)

on Mar 28Mar 28, 2026·
19 comments
·
24 replies


[Return to top](https://github.com/ggml-org/llama.cpp/discussions/21112#top)

Discussion options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

## [![](https://avatars.githubusercontent.com/u/1991296?s=64&v=4)\ ggerganov](https://github.com/ggerganov) [on Mar 28Mar 28, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussion-9775683)   Maintainer

 -


|     |
| --- |
| ## Overview<br>Are you using `llama.cpp` and wondering if you are getting the most out of your hardware?<br>Post your parameters below and get some help from the community to improve the performance. Sometimes, adjusting a few parameters can make a big difference in terms of speed and/or quality.<br>### Information needed:<br>- Hardware spec: (machines, GPUs, CPU, RAM)<br>- `llama-server` command that you are currently using<br>- One specific model that you are targeting<br>- Explain briefly your use case: how many users, client, agent harness, etc.<br>- Have an objective way to evaluate your current performance (usually `llama-bench`, but could be something else depending on the use case)<br>- Keep your posts short and focused<br>- Post one thread per setup<br>- Provide feedback if the recommended parameter changes have been helpful |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

8You must be logged in to vote

All reactions

## Replies:   19 comments  ·  24 replies

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

edited

Edited 1 time
![@wbste](https://avatars.githubusercontent.com/u/691245?s=40&v=4)
wbste

edited on Mar 28Mar 28, 2026 (most recent)

![@wbste](https://avatars.githubusercontent.com/u/691245?s=40&v=4)
wbste

created on Mar 28Mar 28, 2026

# {{editor}}'s edit

{{actor}} deleted this content
.

# {{editor}}'s edit

### [![](https://avatars.githubusercontent.com/u/691245?s=64&v=4)\ wbste](https://github.com/wbste) [on Mar 28Mar 28, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-16357522)

 -


|     |
| --- |
| I'm the sole user of these models (at most an embedding and llm model at the same time). Usually just chatting back and forth with basic tool calls via MCP and the llama-server webui or Pi for cli.<br>**Request**: MoE models that are larger than VRAM (let's focus on `NVIDIA-Nemotron-3-Super-120B-A12B-UD-Q3_K_XL`), I'm trying to squeeze more tg out of them. Some numbers from `llama-bench` using `llama-fit-params` prior to running to find optimal `-ot`. Below are average tg rate at gen128 from 0-16k depth<br>- Unsloth's gpt-oss-120b-Q8\_0: ~30 tok/s<br>- **Unsloth's NVIDIA-Nemotron-3-Super-120B-A12B-UD-Q3\_K\_XL: ~16 tok/s**<br>I know file sizes and active parameters all impact the numbers and you can't expect apples to apples between gpt-oss model architecture and others; just want to make sure I'm not missing any dials to tweak. Thanks everyone for this amazing project!<br>## Additional Questions<br>- I notice `ggml-org` vision models sometimes have q8 and f16 mmproj files. Have you noticed any quality differences between those?<br>- Anything I should tweak for embeddings (see below)?<br>## System Setup<br>RTX 3090 (24 GB VRAM) \| 128 DDR5 6400 MT/s RAM \| Intel Core Ultra 265k<br>```<br>llama-server --version<br>ggml_cuda_init: found 1 CUDA devices (Total VRAM: 24575 MiB):<br>  Device 0: NVIDIA GeForce RTX 3090, compute capability 8.6, VMM: yes, VRAM: 24575 MiB<br>load_backend: loaded CUDA backend from C:\llama\ggml-cuda.dll<br>load_backend: loaded RPC backend from C:\llama\ggml-rpc.dll<br>load_backend: loaded CPU backend from C:\llama\ggml-cpu-alderlake.dll<br>version: 8563 (1f5d15e66)<br>built with Clang 19.1.5 for Windows x86_64<br>```<br>I use `llama-server` and the models preset:<br>`--models-preset presets.ini --models-max 2 --sleep-idle-seconds 600 --host 0.0.0.0 --port 9292`<br>Portions of my `presets.ini` below<br>```<br>[*]<br>batch-size = 4096<br>ctx-size = 32000<br>jinja = true<br>parallel = 2<br>```<br>For embedding models I add this at each model level<br>```<br>batch-size = 16384<br>ctx-size = 32768<br>embeddings = on<br>parallel = 8<br>ubatch-size = 2048<br>```<br>## Llama-Bench Command<br>```<br>llama-bench -m 'D:\AI\models\unsloth\NVIDIA-Nemotron-3-Super-120B-A12B-GGUF\NVIDIA-Nemotron-3-Super-120B-A12B-UD-Q3_K_XL-00001-of-00003.gguf' -ngl 89 -ot 'blk\.21\.ffn_down.*=CPU;blk\.22\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.23\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.24\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.25\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.26\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.27\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.28\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.29\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.30\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.31\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.32\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.33\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.34\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.35\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.36\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.37\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.38\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.39\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.40\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.41\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.42\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.43\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.44\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.45\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.46\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.47\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.48\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.49\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.50\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.51\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.52\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.53\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.54\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.55\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.56\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.57\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.58\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.59\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.60\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.61\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.62\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.63\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.64\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.65\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.66\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.67\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.68\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.69\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.70\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.71\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.72\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.73\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.74\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.75\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.76\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.77\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.78\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.79\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.80\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.81\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.82\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.83\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.84\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.85\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.86\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.87\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU;blk\.88\.ffn_(up|down|gate_up|gate)_(ch|)exps=CPU' -p 0 -n 128 -d 4096 -fa 1<br>``` |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

6 replies


Show 1 previous reply

[![@wbste](https://avatars.githubusercontent.com/u/691245?s=60&v=4)](https://github.com/wbste)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [wbste](https://github.com/wbste) [on Mar 28Mar 28, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-16357908)

 -


|     |
| --- |
| Thanks for the reply!<br>- I've tried playing with P-cores only on my 265k with `--threads 8 --cpu-range 0,1,6-9,18,19`, but was a bit slower than just using them all. Will try again.<br>- `-ncmoe 999` would keep all MoE layers on cpu, which means I don't fill up VRAM and makes this all slower.<br>Updated tests (just depth of 4096)<br>- `llama-bench.exe -m 'D:\AI\models\unsloth\NVIDIA-Nemotron-3-Super-120B-A12B-GGUF\NVIDIA-Nemotron-3-Super-120B-A12B-UD-Q3_K_XL-00001-of-00003.gguf' -ngl 89 -ncmoe 999 -p 0 -n 128 -d 4096 -fa 1`: 12.72 tok/s<br>- `llama-bench.exe -m 'D:\AI\models\unsloth\NVIDIA-Nemotron-3-Super-120B-A12B-GGUF\NVIDIA-Nemotron-3-Super-120B-A12B-UD-Q3_K_XL-00001-of-00003.gguf' -ncmoe 999 -p 0 -n 128 -d 4096 -fa 1`: 12.78 tok/s<br>- my original command + `--threads 8 -C 0xC03C3 --cpu-strict 1`: 12.23 tok/s<br>- my original command: 16.6 tok/s<br>- my original command + `--mmap 0`: 16.8 tok/s (I know you said for pp, was just curious on tg impact) |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

[![@karambaso](https://avatars.githubusercontent.com/u/119061711?s=60&v=4)](https://github.com/karambaso)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [karambaso](https://github.com/karambaso) [on Mar 28Mar 28, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-16358798)

 -


|     |
| --- |
| > ```<br>> * I've tried playing with P-cores only on my 265k with `--threads 8 --cpu-range 0,1,6-9,18,19`, but was a bit slower than just using them all. Will try again.<br>> ```<br>I recommend to use all cores, in my test on the same cpu 96 threads was the best for prompt processing, when 24 threads was the best for token generation. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

👍1

All reactions

- 👍1

[![@ggerganov](https://avatars.githubusercontent.com/u/1991296?s=60&v=4)](https://github.com/ggerganov)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [ggerganov](https://github.com/ggerganov) [on Mar 29Mar 29, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-16366658)   Maintainer  Author

 -


|     |
| --- |
| > I notice ggml-org vision models sometimes have q8 and f16 mmproj files. Have you noticed any quality differences between those?<br>I haven't done extensive tests yet. My guess would be that quality-wise there should be no measurable difference between the two (q8\_0 vs f16). The reason to upload different mmproj types is simply that we are not very systematic when uploading the models to `ggml-org` \- something to improve.<br>> Anything I should tweak for embeddings (see below)?<br>I think your current config is solid. With `ubatch-size = 2048`, it means that you are computing embeddings with maximum length of 2048 tokens per sequence. Adding `batch-size = 16384` \+ `parallel = 8` is correct to ensure that you will be processing them in parallel within one logical batch.<br>The most common mistake with embeddings in `llama.cpp` is to forget to add the dense modules when converting the Python model to GGUF. This is the `--sentence-transformers-dense-modules` flag of `convert_hf_to_gguf.py`. More info at: [#16367](https://github.com/ggml-org/llama.cpp/pull/16367) |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

❤️1

All reactions

- ❤️1

[![@vishalbelsare](https://avatars.githubusercontent.com/u/1388100?s=60&v=4)](https://github.com/vishalbelsare)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [vishalbelsare](https://github.com/vishalbelsare) [on May 8May 9, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-16858476)

 -


|     |
| --- |
| Is there any documentation which gives some understanding of how batch size, ubatch size, ctx size, parallel interact in the context of embedding and reranking models? |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

[![@wbste](https://avatars.githubusercontent.com/u/691245?s=60&v=4)](https://github.com/wbste)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [wbste](https://github.com/wbste) [on May 9May 9, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-16859202)

 -


|     |
| --- |
| > Is there any documentation which gives some understanding of how batch size, ubatch size, ctx size, parallel interact in the context of embedding and reranking models?<br>I basically did some iterative testing with those variables after reading the llama-server docs (and asking AI).<br>TL;DR<br>- Set parallel to 1 if it's just you talking to it.<br>- Set ctx to whatever can fit in VRAM.<br>- Deep batch the defaults for LLM inference.<br>- For embeddings, I had to iterate based on my hardware to optimize throughput. The embedding model's supported length comes into play here too. If you don't want to rip through embeddings don't sweat it.<br>- To directly answer your question, copy paste the [https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md](https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md) page into your favorite LLM and ask away, or use something like DeepWiki.com to ask (it's how I learned the basics). |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

👍1

All reactions

- 👍1

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

edited

Edited 5 times
![@Dampfinchen](https://avatars.githubusercontent.com/u/59751859?s=40&v=4)
Dampfinchen

edited on Mar 29Mar 29, 2026 (most recent)

![@Dampfinchen](https://avatars.githubusercontent.com/u/59751859?s=40&v=4)
Dampfinchen

edited on Mar 29Mar 29, 2026
![@Dampfinchen](https://avatars.githubusercontent.com/u/59751859?s=40&v=4)
Dampfinchen

edited on Mar 29Mar 29, 2026
![@Dampfinchen](https://avatars.githubusercontent.com/u/59751859?s=40&v=4)
Dampfinchen

edited on Mar 29Mar 29, 2026
![@Dampfinchen](https://avatars.githubusercontent.com/u/59751859?s=40&v=4)
Dampfinchen

edited on Mar 29Mar 29, 2026
![@Dampfinchen](https://avatars.githubusercontent.com/u/59751859?s=40&v=4)
Dampfinchen

created on Mar 29Mar 29, 2026

# {{editor}}'s edit

{{actor}} deleted this content
.

# {{editor}}'s edit

### [![](https://avatars.githubusercontent.com/u/59751859?s=64&v=4)\ Dampfinchen](https://github.com/Dampfinchen) [on Mar 29Mar 29, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-16366929)

 -


|     |
| --- |
| Great thread!<br>I'm running Qwen 35B A3B on my RTX 2060 laptop (32GB RAM, 6 GB VRAM, i7 9750H, Windows 11) and this is the first model I am able to run at ridiculous amounts of context at great speeds.<br>`./llama-server -m "Qwen 3.5\Qwen_Qwen3.5-35B-A3B-Q4_K_M.gguf" -c 102144 -fa 1 --host 0.0.0.0 --port 5001 -ub 2048 --jinja -ngl 99 --n-cpu-moe 99 -ctv q8_0 -ctk q8_0 --temp 1 --top-p 0.95 --top-k 20 --min-p 0.0 --presence-penalty 1.5 --repeat-penalty 1.0 --mmproj "mmproj-Qwen3.5-35B-A3B-Q8_0.gguf" --no-mmproj-offload`<br>This is the best configuration I have come up with. With that, the experts are running on the CPU while the other layers run on the GPU. ubatch 2048 gives a huge speedup to prompt processing which is sorely needed.<br>This way I'm getting around 350-400 token/s prefill on 102K context and a text generation of around 15 token/s. So I'm very pleased how well it runs.<br>So pure text generation is great.<br>However, as you have noticed, I have offloaded the mmproj entirely on the CPU. Why? Because it needs around 600 MB VRAM and that would greatly reduce the effective context I am able to run. On the CPU it can be very slow, it takes up to 300 seconds on decently sized images like browser snapshots.<br>I wonder if there is any way to either make the mmproj more efficient on the CPU or switch layers from GPU to RAM to free up VRAM for the vision encoder just before the vision processing automatically or with a command and then load them back on the GPU after the vision processing has been completed. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

1 reply


[![@ggerganov](https://avatars.githubusercontent.com/u/1991296?s=60&v=4)](https://github.com/ggerganov)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

edited

Edited 1 time
![@ggerganov](https://avatars.githubusercontent.com/u/1991296?s=40&v=4)
ggerganov

edited on Apr 3Apr 3, 2026 (most recent)

![@ggerganov](https://avatars.githubusercontent.com/u/1991296?s=40&v=4)
ggerganov

created on Apr 3Apr 3, 2026

# {{editor}}'s edit

{{actor}} deleted this content
.

# {{editor}}'s edit

#### [ggerganov](https://github.com/ggerganov) [on Apr 3Apr 3, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-16441211)   Maintainer  Author

 -


|     |
| --- |
| I think you have the right setup to fit your hardware. Can't recommend any changes to the parameters.<br>Hot swapping the vision encoder is not possible and probably not be easy to add support for. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

edited

Edited 4 times
![@eelgaev](https://avatars.githubusercontent.com/u/3100771?s=40&v=4)
eelgaev

edited on Apr 3Apr 3, 2026 (most recent)

![@eelgaev](https://avatars.githubusercontent.com/u/3100771?s=40&v=4)
eelgaev

edited on Apr 3Apr 3, 2026
![@eelgaev](https://avatars.githubusercontent.com/u/3100771?s=40&v=4)
eelgaev

edited on Apr 3Apr 3, 2026
![@eelgaev](https://avatars.githubusercontent.com/u/3100771?s=40&v=4)
eelgaev

edited on Apr 3Apr 3, 2026
![@eelgaev](https://avatars.githubusercontent.com/u/3100771?s=40&v=4)
eelgaev

created on Apr 3Apr 3, 2026

# {{editor}}'s edit

{{actor}} deleted this content
.

# {{editor}}'s edit

### [![](https://avatars.githubusercontent.com/u/3100771?s=64&v=4)\ eelgaev](https://github.com/eelgaev) [on Apr 3Apr 3, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-16443371)

 -


|     |
| --- |
| I might be using one of the more exotic setups :)<br>It's an IBM AC922 POWER9 cpu with 4 NVLink'ed Tesla V100 16GB (CPU<->GPU BW is 100-150GB/s)<br>But speeds aren't really that good despite the connectivity.<br>- Kimi-K2 Thinking 1T (Q1) - 5-6 tk/s<br>- NVIDIA Nemotron 49B (Q8) - 12-13 tk/s<br>- NVIDIA Nemotron-Super 120B (Q8) - 20tk/s<br>I typically execute like this:<br>```<br>GGML_CUDA_ENABLE_UNIFIED_MEMORY=1 ./llama-server --host 0.0.0.0 --port 8081 -m Llama-3_3-Nemotron-Super-49B-v1-UD-Q8_K_XL-00001-of-00002.gguf \<br>-ngl 99 --keep -1 --ctx-size 40000 --flash-attn on --numa distribute --parallel 1 --no-context-shift \<br>--repeat-penalty 1.1 --presence-penalty 0.3 --frequency-penalty 0.5 --top-k 20 --top-p 0.9 \<br>--mirostat 2 --mirostat-lr 0.1 --mirostat-ent 5 --dry-sequence-breaker none \<br>-ts 8,8,12,12 --jinja --no-mmap --api-key <redacted> --poll 0 \<br>-t 8 -tb 32 --kv-unified --alias model<br>``` |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

1 reply


[![@wbste](https://avatars.githubusercontent.com/u/691245?s=60&v=4)](https://github.com/wbste)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [wbste](https://github.com/wbste) [on May 9May 9, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-16859232)

 -


|     |
| --- |
| Yeah the memory BW is the limiter AFAIK. You're in DDR5 speed area which isn't great relative to a modern top end GPU. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

### [![](https://avatars.githubusercontent.com/u/173457679?s=64&v=4)\ gompa-hacs](https://github.com/gompa-hacs) [on Apr 14Apr 14, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-16554247)

 -


|     |
| --- |
| i have an old crypto miner, its basically e-waste but it does run smaller models okeyish.<br>the problem is that it has a way underpowerd cpu and slow pcie so running multiple independent models on different gpu's the cpu and memory become an issue<br>i'am building a garbage multi agent chat interface, it sort of works as long as you only trigger 1-2 model at the same time<br>hw:<br>2 core Intel(R) Celeron(R) CPU 3865U @ 1.80GHz<br>16gb ddr4<br>all gpu's are pcie 1x gen1<br>1x 3060 12gb (swapped one of the p106-90 out for this, i had it laying around)<br>8x NVIDIA P106-090 6gb<br>i currently run it like this :<br>CUDA\_VISIBLE\_DEVICES=(change depending on the device) screen -d -m ./llama.cpp/build/bin/llama-server -m models/gemma-4-E2B-it-UD-Q4\_K\_XL.gguf -ngl 999 -t 1 --no-mmap --port 8080 --host 0.0.0.0 --fit on --jinja --no-warmup -cram 1024<br>it can idle multiple models at the same time, and run active inference on 2 models without too much slowdown but as soon as you hit the third model everything slows down significantly.<br>setting cram to 0 helps with the cpu memory load but forces prompt reprocessing<br>it's running different 4b models in Q4, or whatever fits in a single gpu's memory<br>i was wondering if there is a way to reduce cpu load to be-able to run multiple models concurrently |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

1 reply


[![@wbste](https://avatars.githubusercontent.com/u/691245?s=60&v=4)](https://github.com/wbste)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [wbste](https://github.com/wbste) [on May 9May 9, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-16859237)

 -


|     |
| --- |
| Do you really need multiple models at once? Drop paraellel to 1 and only keep 1 loaded at a time? |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

### [![](https://avatars.githubusercontent.com/u/236298967?s=64&v=4)\ hrpnr](https://github.com/hrpnr) [on May 10May 10, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-16870023)

 -


|     |
| --- |
| Windows 11, AMD Ryzen 5 2.9GHz, and DDR4 16GB RAM --> 7.8 t/s<br> ![image](https://private-user-images.githubusercontent.com/236298967/590108639-2ef6859e-70b7-4975-a712-50b560abc5a1.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMzMDM5MTksIm5iZiI6MTc4MzMwMzYxOSwicGF0aCI6Ii8yMzYyOTg5NjcvNTkwMTA4NjM5LTJlZjY4NTllLTcwYjctNDk3NS1hNzEyLTUwYjU2MGFiYzVhMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwNlQwMjA2NTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05MDRkZWRlMmY2MmY1NTZjMTY0M2FmY2RjODhmMzI0NmE0NzlkODIyZDQ1NDhjOTg0MzdjOTg0ZThjNjJlNzgxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.fkg83BAIbtOGhc_IhZyYZ4xa3Ye9CXTDjXVglwdEANY) <br>cmake -B build `-DCMAKE_BUILD_TYPE=Release`<br>-DGGML\_NATIVE=ON `-DGGML_LTO=ON`<br>-DGGML\_FAST\_MATH=ON `-DGGML_OPENMP=ON`<br>-DBUILD\_SHARED\_LIBS=OFF `-DLLAMA_BUILD_TESTS=OFF`<br>-DLLAMA\_BUILD\_EXAMPLES=OFF \`<br>-DLLAMA\_BUILD\_SERVER=ON<br>cmake --build build --config Release -j 4<br>.\\llama-server.exe `-m D:\Z\LocalModels\gemma-4-E4B-it\gemma-4-E4B-it-Q4_K_M.gguf`<br>-t 4 `-tb 4`<br>--no-mmap `-fa on`<br>-c 8000 `-b 1024`<br>-ub 1024 `-np 4`<br>--cache-type-k q4\_0 `--cache-type-v q4_0` |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

3 replies


[![@d-shehu](https://avatars.githubusercontent.com/u/39029310?s=60&v=4)](https://github.com/d-shehu)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [d-shehu](https://github.com/d-shehu) [on Jun 2Jun 2, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17155142)

 -


|     |
| --- |
| Did you need Q4 quant on KV cache to fit it in memory?<br>I was under the impression that anything below Q8 for KV significantly increases errors. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

[![@hrpnr](https://avatars.githubusercontent.com/u/236298967?s=60&v=4)](https://github.com/hrpnr)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [hrpnr](https://github.com/hrpnr) [3 weeks agoJun 12, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17275622)

 -


|     |
| --- |
| just arbitrarily chose Q4. the hardware can run with Q4 or F16. and I am yet to find relationship between cache-type and error levels. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

[![@Kangaroux](https://avatars.githubusercontent.com/u/2302541?s=60&v=4)](https://github.com/Kangaroux)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [Kangaroux](https://github.com/Kangaroux) [3 weeks agoJun 17, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17331063)

 -


|     |
| --- |
| This discussion has some details [#23470](https://github.com/ggml-org/llama.cpp/discussions/23470).<br>If you're just using it for chatting then 4-bit is fine. For tool use and larger contexts, use `-ctk q8_0 -ctv q5_0`. Made a very noticeable difference for me, particularly with regards to how "distractable" the model is. At q4 it feels like the model gets tunnel vision and has trouble with recall. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

edited

Edited 2 times
![@RWayne93](https://avatars.githubusercontent.com/u/16741629?s=40&v=4)
RWayne93

edited on May 11May 11, 2026 (most recent)

![@RWayne93](https://avatars.githubusercontent.com/u/16741629?s=40&v=4)
RWayne93

edited on May 11May 11, 2026
![@RWayne93](https://avatars.githubusercontent.com/u/16741629?s=40&v=4)
RWayne93

created on May 11May 11, 2026

# {{editor}}'s edit

{{actor}} deleted this content
.

# {{editor}}'s edit

### [![](https://avatars.githubusercontent.com/u/16741629?s=64&v=4)\ RWayne93](https://github.com/RWayne93) [on May 11May 11, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-16882767)

 -


|     |
| --- |
| Hey guys. I have the pleasure of being able to use an on prem GH200 server my company purchased a while back and wanted to optimize inference further on this particular platform. One things I have seen across a lot of llm inference engines is that they don't fully utilize these NVIDIA grace platforms well. Specifically the NVIDIA NVLink-C2C - Chip Interconnect.<br>So one big win I think for these type of systems is for MOE models by placing experts in a CUDA-owned mapped host buffer that lives inside the grace memory.<br>I'm a little out of my area on expertise on this though so with GPT 5.5 i was able to get something working (i think) that tries to take advantage of this. the diff is here. [`56900d0`](https://github.com/ggml-org/llama.cpp/commit/56900d080fc3a2eb578b8694c26891cb30e10b30)<br>To test i picked Qwen3.5 A122B FP8 which is larger than the 94gb of vram on my GH200 system and with the normal --moe-cpu offloading we get these results:<br>```<br>build-c2c/bin/llama-server \<br>  -m /bartowski--Qwen_Qwen3.5-122B-A10B-GGUF<br>  -ngl all \<br>  --cpu-moe \<br>  --no-mmap \<br>  --host 0.0.0.0 \<br>  --port 8080 \<br>  --ctx-size  12288 \<br>  --reasoning off<br>  <br>ggml_cuda_init: found 1 CUDA devices (Total VRAM: 97280 MiB):<br>  Device 0: NVIDIA GH200 480GB, compute capability 9.0, VMM: yes, VRAM: 97280 MiB<br>main: n_parallel is set to auto, using n_parallel = 4 and kv_unified = true<br>build_info: b9108-928b486b0<br>system_info: n_threads = 72 (n_threads_batch = 72) / 72 | CUDA : ARCHS = 900 | USE_GRAPHS = 1 | PEER_MAX_BATCH_SIZE = 128 | CPU : NEON = 1 | ARM_FMA = 1 | FP16_VA = 1 | MATMUL_INT8 = 1 | SVE = 1 | DOTPROD = 1 | SVE_CNT = 16 | OPENMP = 1 | REPACK = 1 | <br>Running without SSL<br>init: using 71 threads for HTTP server<br>load_tensors: loading model tensors, this can take a while... (mmap = false, direct_io = false)<br>load_tensors: offloading output layer to GPU<br>load_tensors: offloading 47 repeating layers to GPU<br>load_tensors: offloaded 49/49 layers to GPU<br>load_tensors:        CUDA0 model buffer size =  5607.73 MiB<br>load_tensors:    CUDA_Host model buffer size = 118276.97 MiB<br>srv  log_server_r: done request: POST /v1/chat/completions 127.0.0.1 200<br>slot print_timing: id  3 | task 0 | <br>prompt eval time =    2075.52 ms /    18 tokens (  115.31 ms per token,     8.67 tokens per second)<br>       eval time =   18013.80 ms /   128 tokens (  140.73 ms per token,     7.11 tokens per second)<br>      total time =   20089.32 ms /   146 tokens<br>```<br>and with our c2c-moe flag we get:<br>```<br>build-c2c/bin/llama-server \<br>  -m /bartowski--Qwen_Qwen3.5-122B-A10B-GGUF<br>  -ngl all \<br>  --c2c-moe \<br>  --no-mmap \<br>  --host 0.0.0.0 \<br>  --port 8080 \<br>  --ctx-size  12288 \<br>  --reasoning off<br>ggml_cuda_init: found 1 CUDA devices (Total VRAM: 97280 MiB):<br>  Device 0: NVIDIA GH200 480GB, compute capability 9.0, VMM: yes, VRAM: 97280 MiB<br>main: n_parallel is set to auto, using n_parallel = 4 and kv_unified = true<br>build_info: b9108-928b486b0<br>system_info: n_threads = 72 (n_threads_batch = 72) / 72 | CUDA : ARCHS = 900 | USE_GRAPHS = 1 | PEER_MAX_BATCH_SIZE = 128 | CPU : NEON = 1 | ARM_FMA = 1 | FP16_VA = 1 | MATMUL_INT8 = 1 | SVE = 1 | DOTPROD = 1 | SVE_CNT = 16 | OPENMP = 1 | REPACK = 1 | <br>Running without SSL<br>init: using 71 threads for HTTP serve<br>load_tensors: loading model tensors, this can take a while... (mmap = false, direct_io = false)<br>load_tensors: offloading output layer to GPU<br>load_tensors: offloading 47 repeating layers to GPU<br>load_tensors: offloaded 49/49 layers to GPU<br>load_tensors:        CUDA0 model buffer size =  5607.73 MiB<br>load_tensors: CUDA0_C2C_Host model buffer size = 117504.00 MiB<br>load_tensors:    CUDA_Host model buffer size =   772.97 MiB<br>slot print_timing: id  3 | task 0 | <br>prompt eval time =     215.34 ms /    18 tokens (   11.96 ms per token,    83.59 tokens per second)<br>       eval time =    2067.43 ms /   128 tokens (   16.15 ms per token,    61.91 tokens per second)<br>      total time =    2282.77 ms /   146 tokens<br>```<br>I am posting this here because I am wondering if this could be improved further by somebody that actually knows the llamacpp code base better than me and GPT 5.5 as i would love to see optimizations for this particular hardware in the llama.cpp codebase. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

2 replies


[![@d-shehu](https://avatars.githubusercontent.com/u/39029310?s=60&v=4)](https://github.com/d-shehu)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [d-shehu](https://github.com/d-shehu) [on Jun 2Jun 2, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17156075)

 -


|     |
| --- |
| I'm using 2 RPC servers with 88GB of VRAM. The best I've gotten is around 60 t/s for token generation with Qwen 3.5 122b. But with a few tweaks I did increase it from 15 t/s originally.<br>The main boosts on my mixed AMD + Nvidia system:<br>1. Use MT prediction and model<br>   <br>2. -ub 2048 -b 2048<br>   <br>3. GGML\_VK\_ALLOW\_GRAPHICS\_QUEUE=1<br>   <br>   <br>   \*RDNA specific<br>   <br>Key Params:<br>```<br>-ngl all                             <br> -sm layer                 <br> --fit off                 <br> -fa on                 <br> -ub 2048 -b 16384                 <br> --spec-type draft-mtp <br> --spec-draft-n-max 6 <br> --spec-draft-ngl all <br> --cache-type-k q8_0 <br> --cache-type-v q8_0                     <br> --spec-draft-type-k q8_0 <br> --spec-draft-type-v q8_0<br> --seed 3457                         <br>  -t 16                         <br>  --rpc <rpc server>:26001                         <br>   -dev RPC0,RPC1,Vulkan0,Vulkan1                         <br>   --tensor-split 22,0,30,30                         <br>   --no-mmap                         <br>   --no-warmup<br>```<br>This is the 1st time I've seen "--c2c-moe" flag ... |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

[![@RWayne93](https://avatars.githubusercontent.com/u/16741629?s=60&v=4)](https://github.com/RWayne93)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

edited

Edited 1 time
![@RWayne93](https://avatars.githubusercontent.com/u/16741629?s=40&v=4)
RWayne93

edited on Jun 2Jun 2, 2026 (most recent)

![@RWayne93](https://avatars.githubusercontent.com/u/16741629?s=40&v=4)
RWayne93

created on Jun 2Jun 2, 2026

# {{editor}}'s edit

{{actor}} deleted this content
.

# {{editor}}'s edit

#### [RWayne93](https://github.com/RWayne93) [on Jun 2Jun 2, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17156832)

 -


|     |
| --- |
| that was something i added its not in the official llama.cpp project at all.<br>this patch is adding a form of CUDA Unified Virtual Addressing that works really well in a system like the gh200 because of the 900GB/s C2C NVLink between the gh200 HBM3 memory and the grace LPDDR5 memory. Its even better on MOE models.<br>we got like a 10x improved further. almost I was just posting it here to see if it could be improved further vllm does something similar [https://docs.vllm.ai/en/stable/api/vllm/model\_executor/offloader/uva/](https://docs.vllm.ai/en/stable/api/vllm/model_executor/offloader/uva/) |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

👍1

All reactions

- 👍1

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

### [![](https://avatars.githubusercontent.com/u/7911352?s=64&v=4)\ SPYFF](https://github.com/SPYFF) [on May 23May 23, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17031124)

 -


|     |
| --- |
| HW specs (HP Elitebook):<br>- CPU: AMD Ryzen 7 AI 7 PRO 350<br>- iGPU: Radeon 860M<br>- RAM: 64Gb (unified, iGPU can take 32Gb for VRAM)<br>```<br>llama-server \<br>  -hf unsloth/Qwen3.6-35B-A3B-MTP-GGUF:MXFP4_MOE \<br>  -c 262144 \<br>  -ngl 99 \<br>  --spec-type draft-mtp  --spec-draft-n-max 2 \<br>  --cache-type-k q4_0   --cache-type-v q4_0 \<br>  --mlock --no-mmap --jinja \<br>  --batch-size 4096 --ubatch-size 768<br>```<br>- Model: anything what I can fit into 32Gb iGPU VRAM with good amount ctx ank kv cache<br>- Use-case: local coding, 1 user.<br>- Speed: **~26 t/s**<br>- Benchmark: Create a pong game in HTML+Javascript<br>I would be happy to hear potential speedup tuning params, also something more robust benchmarking ideas. Thanks in advance! |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

0 replies


Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

### [![](https://avatars.githubusercontent.com/u/3368866?s=64&v=4)\ AurelienKun](https://github.com/AurelienKun) [on May 24May 24, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17043366)

 -


|     |
| --- |
| Hi everyone,<br>I'm glad to see such discussion thread. I'm just struggling to get the max tokens out of my modest config...<br>I'm running a Framework laptop with an AMD 7840U with iGPU 780m + dGPU 7700S with 8GB VRAM + 64Go DDR5.<br>I can' get more than 27 t/s (vulkan, always trying the latest version available both compiled or via brew). I'm on Fedora 44, everything up to date.<br>Here is my lmaunch parameters:<br>```<br>llama-server \<br>--model ~/models/bartowski/Qwen_Qwen3.6-35B-A3B-GGUF/Qwen_Qwen3.6-35B-A3B-IQ4_XS.gguf<br>--ctx-size 32768 \<br>--jinja \<br>--chat-template-kwargs '{"preserve_thinking":true}' \<br>--port 1234 \<br>--parallel 1 \<br>--alias qwen \<br>--temperature 0.6 \<br>--top-p 0.95 \<br>--top-k 20 \<br>--min-p 0 \<br>--presence-penalty 0 \<br>--repeat-penalty 1.0 \<br>--flash-attn on \<br>--cache-type-k q8_0 \<br>--cache-type-v q8_0 \<br>--n-cpu-moe 26 \<br>--no-mmap \<br>--gpu-layers 99 \<br>--mlock \<br>--verbose<br>```<br>Here are some other parameters I tried without having a difference in output:<br>```<br>  --fit off <br>  --kv-unified<br>  --spec-type draft-mtp<br>  --draft-n-max 2,3<br>  --cache-ram -1<br>  --threads 16<br>```<br>I benchmarked the `--n-cpu-moe` value until I get best of it and despite some higher numbers here and there on nvidia 8gb cards, it does not seem to work out on my build....<br>```<br>0.00.344.056 I log_info: verbosity = 3 (adjust with the `-lv N` CLI arg)<br>0.00.344.060 I device_info:<br>0.00.344.065 I   - BLAS    : OpenBLAS (0 MiB, 0 MiB free)<br>0.00.344.198 I   - Vulkan0 : AMD Radeon 780M Graphics (RADV PHOENIX) (36206 MiB, 33949 MiB free)<br>0.00.344.285 I   - Vulkan1 : AMD Radeon RX 7700S (RADV NAVI33) (8176 MiB, 8149 MiB free)<br>0.00.344.289 I   - CPU     : AMD Ryzen 7 7840HS w/ Radeon 780M Graphics (56029 MiB, 56029 MiB free)<br>0.00.344.314 I system_info: n_threads = 8 (n_threads_batch = 8) / 16 | CPU : SSE3 = 1 | SSSE3 = 1 | AVX = 1 | AVX2 = 1 | F16C = 1 | FMA = 1 | BMI2 = 1 | AVX512 = 1 | AVX512_VBMI = 1 | AVX512_VNNI = 1 | AVX512_BF16 = 1 | OPENMP = 1 | REPACK = 1 | <br>0.00.344.339 I srv          init: running without SSL<br>0.00.344.369 I srv          init: using 15 threads for HTTP server<br>0.00.344.434 I srv         start: binding port with default address family<br>0.00.345.646 I srv  llama_server: loading model<br>0.00.345.655 I srv    load_model: loading model '~/models/bartowski/Qwen_Qwen3.6-35B-A3B-GGUF/Qwen_Qwen3.6-35B-A3B-IQ4_XS.gguf'<br>0.00.345.682 I common_init_result: fitting params to device memory ...<br>0.00.345.683 I common_init_result: (for bugs during this step try to reproduce them with -fit off, or provide --verbose logs if the bug only occurs with -fit on)<br>0.04.395.282 W llama_model_loader: tensor overrides to CPU are used with mmap enabled - consider using --no-mmap for better performance<br>0.08.226.374 W llama_context: n_ctx_seq (32768) < n_ctx_train (262144) -- the full capacity of the model will not be utilized<br>0.08.266.588 I common_init_from_params: warming up the model with an empty run - please wait ... (--no-warmup to disable)<br>0.08.758.170 I srv    load_model: initializing slots, n_slots = 1<br>0.09.234.331 W srv    load_model: speculative decoding will use checkpoints<br>0.09.234.340 W common_speculative_init: no implementations specified for speculative decoding<br>0.09.234.341 I slot   load_model: id  0 | task -1 | new slot, n_ctx = 32768<br>0.09.234.392 I srv    load_model: prompt cache is enabled, size limit: 8192 MiB<br>0.09.234.393 I srv    load_model: use `--cache-ram 0` to disable the prompt cache<br>0.09.234.393 I srv    load_model: for more info see https://github.com/ggml-org/llama.cpp/pull/16391<br>0.09.234.407 W srv          init: --cache-idle-slots requires --kv-unified, disabling<br>0.09.245.969 I init: chat template, example_format: '<|im_start|>system<br>You are a helpful assistant<|im_end|><br><|im_start|>user<br>Hello<|im_end|><br><|im_start|>assistant<br><think><br></think><br>Hi there<|im_end|><br><|im_start|>user<br>How are you?<|im_end|><br><|im_start|>assistant<br><think><br>'<br>0.09.254.273 I srv          init: init: chat template, thinking = 1<br>0.09.254.319 I srv  llama_server: model loaded<br>0.09.254.324 I srv  llama_server: server is listening on http://127.0.0.1:4141<br>0.09.254.332 I srv  update_slots: all slots are idle<br>```<br>If someone can point to me some optimizations I missed or the methodology to find a better sweet spot (in case I'm doing wrong), I would be really thankful 🙏 |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

1 reply


[![@d-shehu](https://avatars.githubusercontent.com/u/39029310?s=60&v=4)](https://github.com/d-shehu)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [d-shehu](https://github.com/d-shehu) [on Jun 3Jun 3, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17160399)

 -


|     |
| --- |
| Is it actually using the iGPU as a GPU or just offloading to CPU?<br>You could try manually offloading layers with -ot rather than relying on --n-cpu-moe. There is a good explanation on how to use reg expr to load layers in Unsloth's guide for gpt-oss 120.<br>[https://unsloth.ai/docs/models/gpt-oss-how-to-run-and-fine-tune](https://unsloth.ai/docs/models/gpt-oss-how-to-run-and-fine-tune)<br>You will probably need to do add "-v" to show the layers and [https://regexr.com/](https://regexr.com/) to test the expression. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

edited

Edited 3 times
![@MariusArmand](https://avatars.githubusercontent.com/u/38524339?s=40&v=4)
MariusArmand

edited on May 25May 25, 2026 (most recent)

![@MariusArmand](https://avatars.githubusercontent.com/u/38524339?s=40&v=4)
MariusArmand

edited on May 25May 25, 2026
![@MariusArmand](https://avatars.githubusercontent.com/u/38524339?s=40&v=4)
MariusArmand

edited on May 25May 25, 2026
![@MariusArmand](https://avatars.githubusercontent.com/u/38524339?s=40&v=4)
MariusArmand

created on May 25May 25, 2026

# {{editor}}'s edit

{{actor}} deleted this content
.

# {{editor}}'s edit

### [![](https://avatars.githubusercontent.com/u/38524339?s=64&v=4)\ MariusArmand](https://github.com/MariusArmand) [on May 25May 25, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17047924)

 -


|     |
| --- |
| Hello all, this is mine using the "AI marketed ASUS NUC" that I bought on an uninformed impulse..<br>Hardware spec:<br>Asus NUC 15 PRO<br>- GPU: Arrow Lake-P \[Arc Pro 130T/140T\]<br>- GNA: Arrow Lake Gaussian & Neural Accelerator (unused, afaik)<br>- NPU: Meteor Lake NPU (unused, jfyi)<br>- CPU: Intel(R) Core(TM) Ultra 7 255H<br>- RAM: 2 x 32GiB SODIMM Synchronous 5600 MHz (0.2 ns)<br>Host OS: Ubuntu 26<br>Llama-server docker compose:<br>```<br>services:<br>  llama-server:<br>    image: ghcr.io/ggml-org/llama.cpp:server-intel<br>    container_name: llama-server<br>    restart: unless-stopped<br>    ports:<br>      - "8090:8080"<br>    volumes:<br>      - ~/docker/llm/models:/models:ro<br>      - models-cache:/root/.cache/llama.cpp<br>      - ~/docker/llm/models/models-preset-default.ini:/models-preset.ini:ro<br>    devices:<br>      - /dev/dri:/dev/dri<br>    command:<br>      - --models-dir<br>      - /models<br>      - --models-preset<br>      - /models-preset.ini<br>      - --host<br>      - 0.0.0.0<br>      - --port<br>      - "8080"<br>      - --jinja<br>      - --chat-template-kwargs<br>      - '{"enable_thinking":false}'<br>      - --cont-batching<br>volumes:<br>  models-cache:<br>```<br>Model: Qwen3-4B-Instruct-2507-Q4\_K\_M<br>Model parameters:<br>c = 49152<br>temperature = 0.3<br>top-p = 0.8<br>top-k = 20<br>min-p = 0.0<br>repeat-penalty = 1.0<br>presence-penalty = 1.5<br>Use-case: 3 users, I'm using Home Assistant and am using llm to power its voice assistant.<br>Purpose is to command the llm to turn on/off devices, query it on device states, ..<br>Objective way to evaluate current performance:<br>I ask llama.cpp via its web ui to "tell me a story": 13.47 t/s<br>Using intel\_gpu\_top I can see it using 96% compute when asking a question.<br>It's working now, but the more speed I could get out of it, the better of course. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

0 replies


Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

### [![](https://avatars.githubusercontent.com/u/278139107?s=64&v=4)\ wenlidong1](https://github.com/wenlidong1) [on May 25May 26, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17055604)

 -


|     |
| --- |
| Hello everyone! I’m really excited to see this thread. I’ve run into quite a few issues while setting up llama.cpp, so I’d like to share my setup and runtime details below. Hope the experienced users here can give me some advice.<br>**Hardware Specs**<br>CPU: AMD Ryzen 9 9900X3D<br>GPU: RTX 5090 32GB (32607 MiB VRAM)<br>RAM: 96GB DDR5-6600<br>**First llama-server launch command**<br>llama-server -m "C:\\AI\\Qwen3.6-35B-A3B-Q4\_K\_M\\model.gguf" <br>--host 0.0.0.0 --port 8000 <br>-ngl 99 --flash-attn on --no-mmap --mlock <br>-t 6 -tb 4 --prio 1 <br>-c 150000 -b 384 -ub 384 -np 1 --poll 50 <br>--kv-unified --cache-type-k f16 --cache-type-v f16 <br>--ctx-checkpoints 2 --cache-ram 2048 <br>--mmproj "C:\\AI\\Qwen3.6-35B-A3B-UD-Q4\_K\_M\\mmproj-F16.gguf" <br>--image-min-tokens 1024 --timeout 1800 <br>--no-perf --jinja <br>--repeat-penalty 1.1 --min-p 0.04 --temperature 0.3<br>Performance:<br>Total VRAM usage is around 25.6 GB (including 1 GB baseline usage from Windows). The generation speed hits 236 tokens/s.<br>**Second llama-server launch command (running concurrently on the same machine)**<br>llama-server -m "C:\\AI\\Qwen3.6-35B-A3B-heretic-Q4\_K\_M\\model.gguf" <br>--host 0.0.0.0 --port 8001 <br>-ngl 99 --cpu-moe --no-mmap --mlock --flash-attn on <br>-t 8 -tb 4 --prio 1 <br>-c 150000 -b 128 -ub 128 -np 1 --poll 50 <br>--kv-unified --cache-type-k q4\_0 --cache-type-v q4\_0 <br>--ctx-checkpoints 2 --cache-ram 1024 <br>--mmproj "C:\\AI\\Qwen3.6-35B-A3B-UD-Q4\_K\_M\\mmproj-F16.gguf" <br>--image-min-tokens 1024 --timeout 1800 <br>--no-perf --jinja <br>--repeat-penalty 1.1 --min-p 0.04 --temperature 0.3<br>**Performance:**<br>When the first instance is idle (no incoming requests), this one runs at 50 tokens/s.<br>My English is not perfect, so I translated this post myself. Any feedback or suggestions are highly appreciated! |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

2 replies


[![@d-shehu](https://avatars.githubusercontent.com/u/39029310?s=60&v=4)](https://github.com/d-shehu)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [d-shehu](https://github.com/d-shehu) [on Jun 3Jun 3, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17160421)

 -


|     |
| --- |
| Why are you running 2 variants of the same model as 2 instances? Are you testing models side by side?<br>If you want dynamic load/unload why not use llama-swap or llama server with router mode:<br>[https://huggingface.co/blog/ggml-org/model-management-in-llamacpp](https://huggingface.co/blog/ggml-org/model-management-in-llamacpp) |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

[![@wenlidong1](https://avatars.githubusercontent.com/u/278139107?s=60&v=4)](https://github.com/wenlidong1)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [wenlidong1](https://github.com/wenlidong1) [on Jun 3Jun 3, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17165049)

 -


|     |
| --- |
| On one hand, I’m benchmarking how fast this model can run. I only tinker with it after work since I’m swamped with my regular job. I haven’t quite wrapped my head around llama-swap or llama server in router mode yet.<br>I’m only aiming for the best local performance on my machine. After tuning, my current setup is as follows:<br>llama-server ^<br>-m "C:\\AI\\Qwen3.6-35B-A3B-Q5\_K\_M\\model.gguf" ^<br>--host 0.0.0.0 --port 8000 ^<br>-ngl 99 ^<br>--flash-attn on ^<br>--no-mmap ^<br>--mlock ^<br>-t 8 -tb 4 ^<br>--prio 1 ^<br>-c 184320 ^<br>-b 384 -ub 384 ^<br>-np 1 ^<br>--poll 38 ^<br>--kv-unified ^<br>--cache-type-k f16 ^<br>--cache-type-v f16 ^<br>--ctx-checkpoints 128 ^<br>--cache-ram 8172 ^<br>--mmproj "C:\\AI\\Qwen3.6-35B-A3B-UD-Q4\_K\_M\\mmproj-F16.gguf" ^<br>--image-min-tokens 1024 ^<br>--timeout 1800 ^<br>--no-perf ^<br>--jinja ^<br>--override-kv qwen35moe.expert\_used\_count=int:22 ^<br>--repeat-penalty 1.1 --min-p 0.05 --temperature 0.35 |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

### [![](https://avatars.githubusercontent.com/u/648143?s=64&v=4)\ strikeoncmputrz](https://github.com/strikeoncmputrz) [on May 25May 26, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17055903)

 -


|     |
| --- |
| Late to the party but this is an awesome thread! [@ggerganov](https://github.com/ggerganov) your software has changed my life for the better. Major thank you to all the Llama.cpp contributors.<br>I'm running Unsloth [Qwen 3.6 27B MTP in Q8](https://huggingface.co/unsloth/Qwen3.6-27B-MTP-GGUF/blob/main/Qwen3.6-27B-UD-Q8_K_XL.gguf) on an RTX Pro 4500 and a modded 4090D (80GB VRAM combined). My use case for the inference is Hermes Agent writing reports and maintaining my k8s cluster.<br>Here are my params. I'm seeing between 50 and 10 t/s for generation and between 1700 and 500 t/s for prompt eval. Generation averaged 33 t/s over the last 24 hours.<br>```<br>#!/bin/bash<br>MODEL_PATH="/home/x0xxin/GGUF/unsloth_Qwen3.6-27B-MTP-GGUF_Qwen3.6-27B-UD-Q8_K_XL.gguf/Qwen3.6-27B-UD-Q8_K_XL.gguf"<br>M_ALIAS="Qwen3.6-27B-UD-Q8_K_XL"<br>export CUDA_VISIBLE_DEVICES=0,1<br>llama-server \<br>  -m "$MODEL_PATH" \<br>  --alias "$M_ALIAS" \<br>  --host 0.0.0.0 \<br>  --port 8080 \<br>  --timeout 900 \<br>  --no-webui \<br>  -fa on \<br>  --prio 3 \<br>  --metrics \<br>  -c 262144 \<br>  -np 3 \<br>  --kv-unified \<br>  --cache-reuse 256 \<br>  --timeout 180 \<br>  --temp 1.0 \<br>  --top-p 0.95 \<br>  --top-k 20 \<br>  --presence-penalty 1.5 \<br>  --min-p 0.00 \<br>  --spec-type draft-mtp \<br>  --spec-draft-n-max 3 \<br>  --chat-template-kwargs '{"preserve_thinking":true}' \<br>  --reasoning-format deepseek \<br>  --batch_size 4096 \<br>  --ubatch_size 1024<br>``` |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

0 replies


Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

edited

Edited 1 time
![@iridium87](https://avatars.githubusercontent.com/u/18313278?s=40&v=4)
iridium87

edited on May 28May 28, 2026 (most recent)

![@iridium87](https://avatars.githubusercontent.com/u/18313278?s=40&v=4)
iridium87

created on May 28May 28, 2026

# {{editor}}'s edit

{{actor}} deleted this content
.

# {{editor}}'s edit

### [![](https://avatars.githubusercontent.com/u/18313278?s=64&v=4)\ iridium87](https://github.com/iridium87) [on May 28May 28, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17085599)

 -


|     |
| --- |
| That's a great idea.<br>My setup is 5950x, 64GB with a 5070ti + 3060 12GB (PCIe 3 x1) running in layer mode and here is my observation.<br>I was running with b = 4096 ub = 1024 probably seen somewhere on the internet, and was getting around 70k ctx and 15tks with Gemma 4 31B, until I came across ServeurpersoCom config here [#23502](https://github.com/ggml-org/llama.cpp/issues/23502) and tried his config with b = 128 ub = 512 and I got 80k ctx and 18tks, prefill is faster too.<br>So worth experimenting with batch sizes.<br>And I am curious if someone can shed light on how to optimize this.<br>Cheers! |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

5 replies


[![@iridium87](https://avatars.githubusercontent.com/u/18313278?s=60&v=4)](https://github.com/iridium87)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

edited

Edited 2 times
![@iridium87](https://avatars.githubusercontent.com/u/18313278?s=40&v=4)
iridium87

edited on May 29May 29, 2026 (most recent)

![@iridium87](https://avatars.githubusercontent.com/u/18313278?s=40&v=4)
iridium87

edited on May 29May 29, 2026
![@iridium87](https://avatars.githubusercontent.com/u/18313278?s=40&v=4)
iridium87

created on May 29May 29, 2026

# {{editor}}'s edit

{{actor}} deleted this content
.

# {{editor}}'s edit

#### [iridium87](https://github.com/iridium87) [on May 29May 29, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17102464)

 -


| ### Further testing and findings on batch sizes

**TL;DR:** Batch sizes depend on hardware, use case, and model. Benchmark your specific setup — defaults may be leaving context on the table.

From what I have gathered smaller batch sizes **might** be beneficial in the following cases: discrete GPUs, memory constraints, and optimizing for context, **higher** batch sizes might be necessary for unified memory devices, optimizing for multi user setups, memory is not a concern. Throughput seems unaffected or in margin of error.

_See Sources section for more details_

For my specific hardware (5950x, 64GB with a 5070ti + 3060 12GB (PCIe 3 x1), the sweet spot seems to be around `b = 128 ub = 512` and `b=256, ub=128` which yields around +30% real world increase in context size with no loss in throughput for Gemma 4 31B

With a Nemotron 4B BF16 model which fits in a single GPU the results are slightly different but still lower batch sizes perform better `b = 256-1024 ub = 256`

TO DOs:

- [ ]  Test batch sizes on MoE models
- [ ]  Test the effect of -fa
- [ ]  Test unified memory batch sizes (help needed)
- [ ]  Test multi request setups (help appreciated)

* * *

**Sources and further readings:**

NVIDIA : [https://docs.nvidia.com/deeplearning/tensorrt/latest/performance/optimization.html](https://github.com/ggml-org/llama.cpp/discussions/url)

> On NVIDIA Ada Lovelace or later GPUs, decreasing the batch size can improve the throughput significantly if the smaller batch sizes help the GPU cache the input/output values in the L2 cache.

MLX documentation, however, suggest that higher batch sizes might be needed to correctly dispatch work to the GPU [https://ml-explore.github.io/mlx/build/html/usage/unified\_memory.html](https://github.com/ggml-org/llama.cpp/discussions/url)

> a = mx.random.uniform(shape=(4096, 512))
>
> b = mx.random.uniform(shape=(512, 4))
>
> The first matmul operation is a good fit for the GPU since it’s more compute dense. The second sequence of operations are a better fit for the CPU, since they are very small and would probably be overhead bound on the GPU.

A research paper by Microsoft

[https://arxiv.org/pdf/2412.03594](https://github.com/ggml-org/llama.cpp/discussions/url)

> The target of the token-batching is to enlarge the number of tokens in the batch under the constraint of GPU memory size. Thus there are two main factors that matters for the token-batching procedure: whether the number of tokens is large enough in the batch to saturate the GPU, indicating the current status of the token-batch; and whether the remaining memory is enough to accommodate more pre fill chunks, indicating if the status can be improved.

Which also references a vLLM discussion [https://github.com/vllm-project/vllm/issues/6801](https://github.com/ggml-org/llama.cpp/discussions/url)

A research paper on SYCL batched kernels [https://hal.science/hal-05015978/document](https://github.com/ggml-org/llama.cpp/discussions/url)

> There are still incentives to limit allocations in shmem/lds or registers. First because there is a limit to the size of these memories. In addition, the larger the allocations per work-group or work-item, the less threads can fit in parallel in the physical memory of a single GPU streaming multiprocessor / compute unit (SM/CU). This limits GPU occupancy and has an impact on performance

* * *

**Test results (big tables)**

Full test Results Gemma 4 31B 5070ti + 3060 12GB (PCIe 3 x1)

> | model | size | params | backend | ngl | n\_batch | n\_ubatch | type\_k | type\_v | fa | mmap | test | t/s |
> | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 16 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 245.96 ± 0.28 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 16 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.88 ± 0.01 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 32 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 245.75 ± 0.11 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 32 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.86 ± 0.01 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 64 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 245.27 ± 0.09 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 64 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.84 ± 0.02 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 128 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 244.68 ± 0.93 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 128 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.76 ± 0.06 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 256 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 243.56 ± 0.37 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 256 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.82 ± 0.09 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 512 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 244.61 ± 0.48 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 512 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.57 ± 0.16 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 1024 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 243.23 ± 0.97 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 1024 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.78 ± 0.05 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 2048 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 243.47 ± 0.61 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 2048 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.77 ± 0.09 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 4096 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 243.97 ± 0.32 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 16 | 4096 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.82 ± 0.04 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 16 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 336.52 ± 0.48 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 16 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.71 ± 0.06 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 32 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 412.80 ± 0.52 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 32 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.81 ± 0.04 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 64 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 414.10 ± 0.36 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 64 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.74 ± 0.05 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 128 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 413.99 ± 0.54 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 128 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.78 ± 0.06 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 256 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 413.30 ± 0.70 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 256 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.78 ± 0.04 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 512 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 413.93 ± 0.38 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 512 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.78 ± 0.07 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 1024 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 413.54 ± 0.28 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 1024 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.79 ± 0.05 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 2048 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 413.58 ± 0.50 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 2048 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.80 ± 0.04 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 4096 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 413.84 ± 0.47 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 32 | 4096 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.79 ± 0.06 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 16 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 289.48 ± 0.61 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 16 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.76 ± 0.06 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 32 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 557.89 ± 0.75 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 32 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.68 ± 0.09 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 64 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 612.05 ± 0.84 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 64 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.80 ± 0.03 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 128 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 612.12 ± 1.34 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 128 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.77 ± 0.04 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 256 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 612.09 ± 0.83 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 256 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.77 ± 0.09 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 512 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 612.58 ± 0.99 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 512 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.77 ± 0.06 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 1024 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 612.20 ± 1.14 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 1024 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.75 ± 0.03 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 2048 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 612.02 ± 0.96 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 2048 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.77 ± 0.07 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 4096 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 611.95 ± 0.71 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 64 | 4096 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.74 ± 0.09 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 16 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 274.11 ± 0.65 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 16 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.76 ± 0.11 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 32 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 478.62 ± 0.87 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 32 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.79 ± 0.07 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 64 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 792.61 ± 0.94 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 64 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.78 ± 0.07 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 128 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 789.35 ± 1.65 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 128 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.80 ± 0.02 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 256 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 789.23 ± 1.38 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 256 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.79 ± 0.04 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 512 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 789.00 ± 1.77 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 512 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.76 ± 0.07 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 1024 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 789.56 ± 1.51 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 1024 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.70 ± 0.09 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 2048 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 788.91 ± 1.49 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 2048 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.68 ± 0.06 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 4096 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 790.72 ± 1.01 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 128 | 4096 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.77 ± 0.05 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 16 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 268.09 ± 0.37 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 16 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.75 ± 0.04 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 32 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 454.11 ± 0.55 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 32 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.75 ± 0.07 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 64 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 681.54 ± 1.62 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 64 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.79 ± 0.04 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 128 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 958.48 ± 1.38 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 128 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.78 ± 0.09 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 256 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 944.55 ± 0.35 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 256 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.73 ± 0.05 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 512 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 943.81 ± 0.94 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 512 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.74 ± 0.08 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 1024 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 944.15 ± 1.50 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 1024 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.80 ± 0.04 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 2048 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 943.29 ± 1.05 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 2048 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.71 ± 0.13 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 4096 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 943.76 ± 1.50 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 256 | 4096 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.74 ± 0.09 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 16 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 266.39 ± 0.74 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 16 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.77 ± 0.02 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 32 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 447.83 ± 1.32 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 32 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.77 ± 0.04 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 64 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 664.38 ± 1.12 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 64 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.80 ± 0.05 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 128 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 890.78 ± 0.70 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 128 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.78 ± 0.05 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 256 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 960.40 ± 0.53 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 256 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.77 ± 0.08 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 512 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 841.14 ± 5.03 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 512 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.80 ± 0.05 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 1024 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 840.90 ± 6.34 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 1024 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.78 ± 0.03 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 2048 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 840.57 ± 5.27 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 2048 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.79 ± 0.04 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 4096 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 840.86 ± 5.61 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 512 | 4096 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.75 ± 0.08 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 16 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 266.25 ± 0.69 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 16 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.81 ± 0.04 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 32 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 449.38 ± 0.22 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 32 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.81 ± 0.02 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 64 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 664.54 ± 1.39 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 64 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.81 ± 0.06 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 128 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 889.66 ± 1.03 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 128 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.59 ± 0.33 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 256 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 960.53 ± 0.85 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 256 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.04 ± 1.43 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 512 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 841.03 ± 6.81 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 512 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.72 ± 0.06 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 1024 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 840.58 ± 6.02 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 1024 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.74 ± 0.04 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 2048 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 840.79 ± 6.27 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 2048 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.72 ± 0.10 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 4096 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 840.48 ± 5.27 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 1024 | 4096 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.73 ± 0.05 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 16 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 266.52 ± 0.25 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 16 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.76 ± 0.09 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 32 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 449.03 ± 0.65 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 32 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.76 ± 0.02 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 64 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 659.34 ± 3.87 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 64 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.78 ± 0.10 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 128 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 888.88 ± 1.18 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 128 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.81 ± 0.05 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 256 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 959.67 ± 1.56 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 256 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.62 ± 0.09 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 512 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 838.75 ± 7.44 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 512 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.67 ± 0.09 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 1024 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 838.41 ± 7.23 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 1024 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.69 ± 0.11 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 2048 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 839.71 ± 5.46 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 2048 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.79 ± 0.06 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 4096 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 840.63 ± 5.71 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 2048 | 4096 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.77 ± 0.05 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 16 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 265.72 ± 0.97 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 16 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.77 ± 0.03 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 32 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 447.63 ± 0.52 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 32 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.70 ± 0.06 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 64 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 663.16 ± 1.17 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 64 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.79 ± 0.03 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 128 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 888.59 ± 0.74 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 128 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.75 ± 0.04 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 256 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 959.75 ± 0.49 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 256 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.77 ± 0.05 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 512 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 839.66 ± 5.70 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 512 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.78 ± 0.06 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 1024 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 839.13 ± 5.37 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 1024 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.75 ± 0.09 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 2048 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 833.65 ± 9.42 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 2048 | q8\_0 | q8\_0 | 1 | 0 | tg128 | 21.64 ± 0.07 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 4096 | q8\_0 | q8\_0 | 1 | 0 | pp512 | 833.88 ± 3.53 |
> | gemma4 31B Q4\_K - Medium | 17.52 GiB | 30.70 B | CUDA | 99 | 4096 | 4096 | q8\_0 | q8\_0 | 1 | 0 | tg1.\ |  |

Excerpt test Results Nemotron 4B BF16 5070ti

> | model | size | params | backend | ngl | n\_batch | n\_ubatch | sm | fa | mmap | test | t/s |
> | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 16 | none | 1 | 0 | pp512 | 1444.24 ± 11.37 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 16 | none | 1 | 0 | tg128 | 104.08 ± 0.72 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 32 | none | 1 | 0 | pp512 | 1450.80 ± 3.42 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 32 | none | 1 | 0 | tg128 | 104.32 ± 0.40 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 64 | none | 1 | 0 | pp512 | 1450.21 ± 2.58 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 64 | none | 1 | 0 | tg128 | 104.37 ± 0.08 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 128 | none | 1 | 0 | pp512 | 1452.28 ± 1.88 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 128 | none | 1 | 0 | tg128 | 104.39 ± 0.07 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 256 | none | 1 | 0 | pp512 | 1450.80 ± 1.65 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 256 | none | 1 | 0 | tg128 | 104.37 ± 0.09 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 512 | none | 1 | 0 | pp512 | 1432.44 ± 11.51 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 512 | none | 1 | 0 | tg128 | 104.36 ± 0.10 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 1024 | none | 1 | 0 | pp512 | 1420.90 ± 1.76 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 1024 | none | 1 | 0 | tg128 | 104.22 ± 0.39 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 2048 | none | 1 | 0 | pp512 | 1421.74 ± 3.70 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 2048 | none | 1 | 0 | tg128 | 104.10 ± 0.75 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 4096 | none | 1 | 0 | pp512 | 1420.74 ± 3.72 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 16 | 4096 | none | 1 | 0 | tg128 | 104.23 ± 0.58 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 16 | none | 1 | 0 | pp512 | 1356.82 ± 3.74 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 16 | none | 1 | 0 | tg128 | 102.79 ± 1.50 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 32 | none | 1 | 0 | pp512 | 2385.40 ± 10.45 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 32 | none | 1 | 0 | tg128 | 104.39 ± 0.06 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 64 | none | 1 | 0 | pp512 | 2384.98 ± 12.08 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 64 | none | 1 | 0 | tg128 | 103.38 ± 1.38 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 128 | none | 1 | 0 | pp512 | 2382.34 ± 4.63 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 128 | none | 1 | 0 | tg128 | 104.39 ± 0.07 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 256 | none | 1 | 0 | pp512 | 2383.43 ± 9.71 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 256 | none | 1 | 0 | tg128 | 101.91 ± 0.13 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 512 | none | 1 | 0 | pp512 | 2377.52 ± 6.48 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 512 | none | 1 | 0 | tg128 | 104.44 ± 0.09 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 1024 | none | 1 | 0 | pp512 | 2383.96 ± 10.27 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 1024 | none | 1 | 0 | tg128 | 103.90 ± 1.18 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 2048 | none | 1 | 0 | pp512 | 2382.71 ± 4.88 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 2048 | none | 1 | 0 | tg128 | 102.91 ± 1.36 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 4096 | none | 1 | 0 | pp512 | 2382.33 ± 9.44 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 32 | 4096 | none | 1 | 0 | tg128 | 103.42 ± 1.27 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 16 | none | 1 | 0 | pp512 | 1423.60 ± 5.87 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 16 | none | 1 | 0 | tg128 | 104.45 ± 0.05 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 32 | none | 1 | 0 | pp512 | 2274.03 ± 11.44 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 32 | none | 1 | 0 | tg128 | 103.93 ± 1.02 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 64 | none | 1 | 0 | pp512 | 3950.97 ± 36.54 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 64 | none | 1 | 0 | tg128 | 104.40 ± 0.21 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 128 | none | 1 | 0 | pp512 | 3953.33 ± 25.35 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 128 | none | 1 | 0 | tg128 | 104.41 ± 0.05 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 256 | none | 1 | 0 | pp512 | 3924.61 ± 27.79 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 256 | none | 1 | 0 | tg128 | 103.94 ± 1.17 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 512 | none | 1 | 0 | pp512 | 3926.34 ± 50.07 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 512 | none | 1 | 0 | tg128 | 104.19 ± 0.61 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 1024 | none | 1 | 0 | pp512 | 3964.14 ± 41.44 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 1024 | none | 1 | 0 | tg128 | 104.25 ± 0.27 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 2048 | none | 1 | 0 | pp512 | 3954.10 ± 22.55 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 2048 | none | 1 | 0 | tg128 | 104.19 ± 0.43 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 4096 | none | 1 | 0 | pp512 | 3929.08 ± 51.43 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 64 | 4096 | none | 1 | 0 | tg128 | 104.37 ± 0.08 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 16 | none | 1 | 0 | pp512 | 1495.83 ± 11.51 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 16 | none | 1 | 0 | tg128 | 103.92 ± 1.08 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 32 | none | 1 | 0 | pp512 | 2296.29 ± 31.33 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 32 | none | 1 | 0 | tg128 | 104.34 ± 0.14 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 64 | none | 1 | 0 | pp512 | 4000.11 ± 13.32 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 64 | none | 1 | 0 | tg128 | 104.38 ± 0.07 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 128 | none | 1 | 0 | pp512 | 5651.76 ± 30.26 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 128 | none | 1 | 0 | tg128 | 104.23 ± 0.22 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 256 | none | 1 | 0 | pp512 | 5651.75 ± 56.23 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 256 | none | 1 | 0 | tg128 | 104.22 ± 0.52 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 512 | none | 1 | 0 | pp512 | 5647.26 ± 46.90 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 512 | none | 1 | 0 | tg128 | 103.71 ± 1.01 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 1024 | none | 1 | 0 | pp512 | 5666.41 ± 52.42 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 1024 | none | 1 | 0 | tg128 | 104.41 ± 0.10 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 2048 | none | 1 | 0 | pp512 | 5689.71 ± 12.68 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 2048 | none | 1 | 0 | tg128 | 104.39 ± 0.10 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 4096 | none | 1 | 0 | pp512 | 5626.77 ± 52.97 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 128 | 4096 | none | 1 | 0 | tg128 | 104.42 ± 0.08 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 16 | none | 1 | 0 | pp512 | 1536.93 ± 12.58 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 16 | none | 1 | 0 | tg128 | 103.93 ± 0.53 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 32 | none | 1 | 0 | pp512 | 2505.12 ± 11.04 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 32 | none | 1 | 0 | tg128 | 104.42 ± 0.15 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 64 | none | 1 | 0 | pp512 | 4012.07 ± 34.22 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 64 | none | 1 | 0 | tg128 | 104.41 ± 0.10 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 128 | none | 1 | 0 | pp512 | 5948.13 ± 23.07 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 128 | none | 1 | 0 | tg128 | 103.88 ± 1.38 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 256 | none | 1 | 0 | pp512 | 6931.30 ± 6.79 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 256 | none | 1 | 0 | tg128 | 104.16 ± 0.77 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 512 | none | 1 | 0 | pp512 | 6915.72 ± 36.79 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 512 | none | 1 | 0 | tg128 | 104.12 ± 0.85 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 1024 | none | 1 | 0 | pp512 | 6907.32 ± 43.56 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 1024 | none | 1 | 0 | tg128 | 103.85 ± 1.25 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 2048 | none | 1 | 0 | pp512 | 6919.19 ± 29.04 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 2048 | none | 1 | 0 | tg128 | 104.24 ± 0.52 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 4096 | none | 1 | 0 | pp512 | 6922.82 ± 18.06 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 256 | 4096 | none | 1 | 0 | tg128 | 104.46 ± 0.13 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 16 | none | 1 | 0 | pp512 | 1557.14 ± 4.07 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 16 | none | 1 | 0 | tg128 | 104.40 ± 0.06 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 32 | none | 1 | 0 | pp512 | 2539.10 ± 10.58 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 32 | none | 1 | 0 | tg128 | 104.43 ± 0.10 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 64 | none | 1 | 0 | pp512 | 4094.07 ± 9.64 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 64 | none | 1 | 0 | tg128 | 104.43 ± 0.14 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 128 | none | 1 | 0 | pp512 | 5999.90 ± 27.24 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 128 | none | 1 | 0 | tg128 | 104.43 ± 0.11 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 256 | none | 1 | 0 | pp512 | 6997.11 ± 26.82 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 256 | none | 1 | 0 | tg128 | 104.16 ± 0.72 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 512 | none | 1 | 0 | pp512 | 7302.38 ± 153.20 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 512 | none | 1 | 0 | tg128 | 104.36 ± 0.33 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 1024 | none | 1 | 0 | pp512 | 7380.62 ± 150.24 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 1024 | none | 1 | 0 | tg128 | 104.14 ± 0.84 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 2048 | none | 1 | 0 | pp512 | 7356.15 ± 192.23 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 2048 | none | 1 | 0 | tg128 | 104.15 ± 0.72 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 4096 | none | 1 | 0 | pp512 | 7353.98 ± 193.46 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 512 | 4096 | none | 1 | 0 | tg128 | 104.34 ± 0.36 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 16 | none | 1 | 0 | pp512 | 1556.13 ± 3.46 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 16 | none | 1 | 0 | tg128 | 104.49 ± 0.13 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 32 | none | 1 | 0 | pp512 | 2538.90 ± 14.64 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 32 | none | 1 | 0 | tg128 | 104.46 ± 0.14 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 64 | none | 1 | 0 | pp512 | 4107.69 ± 25.90 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 64 | none | 1 | 0 | tg128 | 104.43 ± 0.09 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 128 | none | 1 | 0 | pp512 | 6019.86 ± 13.06 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 128 | none | 1 | 0 | tg128 | 104.25 ± 0.61 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 256 | none | 1 | 0 | pp512 | 7015.91 ± 10.12 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 256 | none | 1 | 0 | tg128 | 104.43 ± 0.17 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 512 | none | 1 | 0 | pp512 | 7348.81 ± 191.43 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 512 | none | 1 | 0 | tg128 | 104.45 ± 0.13 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 1024 | none | 1 | 0 | pp512 | 7347.27 ± 138.49 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 1024 | none | 1 | 0 | tg128 | 104.43 ± 0.10 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 2048 | none | 1 | 0 | pp512 | 7332.95 ± 171.38 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 2048 | none | 1 | 0 | tg128 | 103.93 ± 1.25 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 4096 | none | 1 | 0 | pp512 | 7339.77 ± 184.33 |
> | nemotron\_h ?B BF16 | 7.40 GiB | 3.97 B | CUDA | 99 | 1024 | 4096 | none | 1 | 0 | tg128 | 104.34 ± 0.31 | |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

[![@d-shehu](https://avatars.githubusercontent.com/u/39029310?s=60&v=4)](https://github.com/d-shehu)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [d-shehu](https://github.com/d-shehu) [on Jun 3Jun 4, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17173432)

 -


|     |
| --- |
| How did you test to find the sweet spot? Did you use llama-bench or something a bit more sophisticated?<br>I ran some tests this afternoon both with llama-bench and Hermes agent but the numbers I came up with are not consistent with other experimental values from online posts.<br>Example: Qwen 3.6 27b -ub 512 -b 16384 |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

[![@wbste](https://avatars.githubusercontent.com/u/691245?s=60&v=4)](https://github.com/wbste)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [wbste](https://github.com/wbste) [on Jun 3Jun 4, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17173805)

 -


|     |
| --- |
| Yeah definitely sweep with llama bench. Quickest way to find some optimal settings. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

[![@iridium87](https://avatars.githubusercontent.com/u/18313278?s=60&v=4)](https://github.com/iridium87)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [iridium87](https://github.com/iridium87) [on Jun 5Jun 5, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17189814)

 -


|     |
| --- |
| Yes, I was using [llama bench](https://github.com/ggml-org/llama.cpp/blob/master/tools/llama-bench/README.md) for the tests. I only now had some time to play with it, but it is really cool as you can do -b 1024, 2048, 4069, … -ub 1024, 2048, 4069, … and it will bench all the combinations.<br>You have an interesting setup, do you have multiple users? I am curious what lowering the batch size will do in your case. I am thinking that maybe in an RPC setup smaller batch sizes might increase the throughput (just a theory). I am also curious how did you arrive to the -b 16384 number? |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

[![@d-shehu](https://avatars.githubusercontent.com/u/39029310?s=60&v=4)](https://github.com/d-shehu)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

edited

Edited 1 time
![@d-shehu](https://avatars.githubusercontent.com/u/39029310?s=40&v=4)
d-shehu

edited on Jun 5Jun 5, 2026 (most recent)

![@d-shehu](https://avatars.githubusercontent.com/u/39029310?s=40&v=4)
d-shehu

created on Jun 5Jun 5, 2026

# {{editor}}'s edit

{{actor}} deleted this content
.

# {{editor}}'s edit

#### [d-shehu](https://github.com/d-shehu) [on Jun 5Jun 5, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17196080)

 -


|     |
| --- |
| When profiling Hermes it seems to be gated by prompt processing. I thought about creating my own test with my RAG library and a dozen PDFs ~64K context (100 pages). But I'm not sure if it's a good test.<br>I'm using RPC with Connectx 4 Lx NICs with 2 nodes mainly to minimize latency. RPC works very well with MOE and especially if models fit in VRAM. But degrades heavily with dense models and offloading to RAM.<br>The 16384, 512 is simply the highest performing (pp) I could benchmark without llama-bench spilling into RAM. I ran a few tests with llama-cli and Hermes and all seemed ok with these values.<br>Oddly, most of my models are capable of running with 128K or 256K of context with llama-cli and llama-server. I assume when I set the context to 128K it is pre-allocating the memory ... at least that's what I see when I measure memory usage.<br>So I don't understand why llama-bench starts using system RAM with > 16K for batch. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

### [![](https://avatars.githubusercontent.com/u/291599045?s=64&v=4)\ AetherPrompt](https://github.com/AetherPrompt) [last monthJun 7, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17212289)

 -


|     |
| --- |
| Hello,<br>I'm running Qwen3.5-9B on M4 24GB and consistently the decode speed is at ~10 tok/s with 82s TTFT for large prompts, despite efficient prefill (~174 tok/s). I got the TTFT and decode metrics from the llama-server logs and I'm not sure what the difference is between TTFT and what the actual time from prompt to first character is but it takes anywhere from 3-6 minutes for fist character from first prompt in fresh session. After the first prompt it responds in <30s or faster depending on prompt and context. But that first prompt eats up to as much as 50k tokens and up to 6 minutes before first character.<br>I was trying to Optimize llama.cpp performance for Qwen3.5-9B-Q5\_K\_M.gguf with 65,536 context length Hermes v0.15.1 on M4 24GB. Running Hermes Agent directly (no Docker).<br>Decode speed bottlenecked at ~10 tok/s regardless of optimization attempts<br>First query TTFT: 82 seconds for ~14k tokens (follow-up queries: 7-8s) \*\*Time to first character is 3-6 minutes on first prompt in new session. After first prompt it gets much better.<br>Memory management issues (cache growing to 756 MiB after 6 prompts)<br>Current llama-server configuration:<br>./build/bin/llama-server <br>-m ./models/Qwen3.5-9B-Q5\_K\_M.gguf <br>-c 65536 <br>-ngl 99 <br>-fa on <br>--cache-type-k q4\_0 <br>--cache-type-v q4\_0 <br>-np 1 <br>-b 2048 <br>-ub 1024 <br>-t 6 <br>--port 8080 --host 127.0.0.1 <br>--jinja <br>--cache-ram 8192<br>report - [https://paste.rs/KH5Hh](https://paste.rs/KH5Hh)<br>agent.log - [https://paste.rs/Fvp1K](https://paste.rs/Fvp1K)<br>Is this expected behavior on M4 24GB, or should decode be faster?<br>Why does it take > 3 minutes to first character and then speeds up after?<br>Are there llama.cpp flags better optimized for Metal GPUs?<br>Is the checkpoint behavior (82s first query → 7-8s follow-up) normal?<br>Any recommendations for reducing the initial query penalty?<br>Note:<br>Memory pressure is manageable (~17 GB peak, no swapping, pressure bar is green and ~40% of pressure window)<br>Prefill speed is efficient (~95 tok/s)<br>The bottleneck is specifically in the decode phase<br>Thanks! |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

0 replies


Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

### [![](https://avatars.githubusercontent.com/u/2624106?s=64&v=4)\ motosir](https://github.com/motosir) [last monthJun 8, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17222806)

 -


|     |
| --- |
| Thanks for this topic!<br>I'm running RTX pro 6000 Max-Q, 128 GB RAM in a dedicated headless server.<br>Would love optimal settings with extra features like MTP, etc for running Qwen 3.6 27B and Gemma 31B/26B-A4B to get the most out of the 96 GB VRAM I've got available. I usually run single threaded stuff from Pi harness.<br>I run with llama server in router mode (with models-preset and .ini config), very basic set of MCP servers (3) and my current configuration is:<br>start script<br>```<br>lama-server \<br>    --host 192.168.0.41 \<br>    --port 8185 \<br>    --models-max 1\<br>    --models-preset llama-server-models-mtp.ini \<br>    --webui-mcp-proxy<br>```<br>and config:<br>```<br>; Global settings<br>[*]<br>; fit = off               ; Disable automatic memory fitting (default: on)<br>ngl = 999               ; Full GPU offload<br>ctk = q8_0              ; KV cache key quantization<br>ctv = q8_0              ; KV cache value quantization<br>fa = on                 ; Enable flash attention<br>mlock = on              ; Lock model in RAM<br>np = 4                  ; Parallel request batching (default: 4)<br>kvu = on                ; Unified KV cache buffer (default: on)<br>stop-timeout = 2        ; Force-kill child process after graceful shutdown timeout in seconds (default: 10)<br>sleep-idle-seconds = 3000 ; Unload weights on child process<br>b = 4096                ; Logical maximum batch size (default: 2048)<br>ub = 4096               ; Physical maximum batch size (default: 512)<br>jinja = true            ;<br>cb = on                 ; continuous batching (essential with np>1)<br>t = 16                  ; generation threads (1/physical core) <br>; tb = 16                 ; batch threads  <br>cram = 32768            ; KV cache RAM limit: 32GB<br>cache-reuse = 512       ; cache reuse via KV shifting, Pi sends full conversation history each request. This reuses cached prefix instead of re-evaluating. <br>[Dense-Vision-Qwen3.6-27B(Q8_0)]<br>m = qwen36/27b/Qwen3.6-27B-Q8_0.gguf<br>mm = qwen36/27b/mmproj-F16.gguf<br>temperature=0.7<br>top-p=0.8<br>top-k=20<br>min-p = 0.0<br>presence-penalty=1.5<br>c = 225280<br>chat-template-kwargs = {"preserve_thinking": true}<br>[MoE-Vision-Qwen3.6-35B-A3B(Q8_0)]<br>m = qwen36/Qwen3.6-35B-A3B-Q8_0.gguf<br>mm = qwen36/mmproj-F16.gguf<br>temperature=1.0<br>top-p=0.95<br>top-k=20<br>min-p = 0.0<br>presence-penalty=1.5<br>repeat-penalty=1.1<br>c = 225280<br>chat-template-kwargs = {"preserve_thinking": true}<br>[coding/Gemma4-31B-llmfan46-uncensored(Q8_0)]<br>m = gemma4-31B-llmfan46/Gemma-4-Harmonia-31B-uncensored-heretic-mmproj-BF16.gguf<br>mm = google/gemma4-31B-llmfan46/Gemma-4-Harmonia-31B-uncensored-heretic-Q8_0.gguf<br>temperature=1.0<br>top-p=0.95<br>top-k=64<br>c = 225280<br>chat-template-kwargs = {"enable_thinking": true}<br>[coding/Gemma4-26B-A4B-llmfan46-uncensored(Q8_0)]<br>m = google/gemma4-26B-A4B-llmfan46/gemma-4-26B-A4B-it-ultra-uncensored-heretic-Q8_0.gguf<br>mm = google/gemma4-26B-A4B-llmfan46/gemma-4-26B-A4B-it-mmproj-BF16.gguf<br>temperature=1.0<br>top-p=0.95<br>top-k=64<br>c = 225280<br>chat-template-kwargs = {"enable_thinking": true}<br>```<br>It's hard to keep up with all the improvements and new settings, so any suggestions for improvement would be very much appreciated.<br>Thank you!. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

1 reply


[![@ggerganov](https://avatars.githubusercontent.com/u/1991296?s=60&v=4)](https://github.com/ggerganov)

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

#### [ggerganov](https://github.com/ggerganov) [3 weeks agoJun 18, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17349623)   Maintainer  Author

 -


|     |
| --- |
| With Qwen3.6-27B, you can try this: [#21112 (comment)](https://github.com/ggml-org/llama.cpp/discussions/21112#discussioncomment-17349591). LMK what is your experience. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

👍1

All reactions

- 👍1

Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

edited

Edited 17 times
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026 (most recent)

![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

edited 3 weeks agoJun 12, 2026
![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=40&v=4)
fbo25

created 3 weeks agoJun 12, 2026

# {{editor}}'s edit

{{actor}} deleted this content
.

# {{editor}}'s edit

### [![](https://avatars.githubusercontent.com/u/75153730?s=64&v=4)\ fbo25](https://github.com/fbo25) [3 weeks agoJun 12, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17273952)

 -


| Hello,

I5-12400F / DDR5 64Gb (4x16Gb) @ 6200-CL30 / RTX 4070 12 Gb / Archlinux

I really enjoy using the builtin webui (but can't wait for full omnimodal support !) and I'm having good results with Opencode.

Compiled with :

```
source /opt/intel/oneapi/setvars.sh
cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=Intel10_64lp -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DGGML_NATIVE=ON -DGGML_CUDA=ON -DGGML_CUDA_COMPRESSION_MODE=size -DGGML_LTO=ON -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_SERVER=ON
```

Running :

`llama-server -hf unsloth/Qwen3.6-35B-A3B-GGUF:UD-Q4_K_M --no-warmup --ubatch-size 2048 --batch-size 16384 -ngl all -fa on --n-cpu-moe 34 --no-mmap --mlock --cache-ram 16384 -ctk q8_0 -ctv q8_0 --threads 6 --parallel 1 --fit-target 512 --timeout 720000 --ctx-size 262144 --temp 0.6 --top-p 0.95 --top-k 20 --min-p 0.0 --presence-penalty 0.0 --repeat-penalty 1.0 --port 8000 --host 127.0.0.1 --webui-mcp-proxy --chat-template-kwargs '{"preserve_thinking" : true}'`

Bench :

`llama-bench -hf unsloth/Qwen3.6-35B-A3B-GGUF:UD-Q4_K_M --no-warmup --ubatch-size 2048 --batch-size 16384 -ngl 999 -fa on --n-cpu-moe 34 --mmap 0 -ctk q8_0 -ctv q8_0 --threads 6 --fit-target 512` :

```
ggml_cuda_init: found 1 CUDA devices (Total VRAM: 11893 MiB)
Device 0: NVIDIA GeForce RTX 4070, compute capability 8.9, VMM: yes, VRAM: 11893 MiB
```

| model | size | params | backend | n\_cpu\_moe | threads | n\_batch | n\_ubatch | type\_k | type\_v | fa | mmap | fitt | test | t/s |
| --- | --: | --: | --- | --: | --: | --: | --: | --: | --: | --: | --: | --: | --: | --: |
| qwen35moe 35B.A3B Q4\_K - Medium | 20.60 GiB | 34.66 B | CUDA,BLAS | 34 | 6 | 16384 | 2048 | q8\_0 | q8\_0 | 1 | 0 | 512 | pp512 | 1170.73 ± 107.17 |
| qwen35moe 35B.A3B Q4\_K - Medium | 20.60 GiB | 34.66 B | CUDA,BLAS | 34 | 6 | 16384 | 2048 | q8\_0 | q8\_0 | 1 | 0 | 512 | tg128 | 76.56 ± 0.38 |

build: [`7d2b45b`](https://github.com/ggml-org/llama.cpp/commit/7d2b45b4f7b663cda74f23fbc3ce6dc3bd4f6545) (9568)

tg drops to around 35-40 t/s with a huge context (>230k) but it still is very usable for production. pp is quite stable actually. |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

2You must be logged in to vote

All reactions

0 replies


Comment options

# {{title}}

Quote reply

### [![](https://avatars.githubusercontent.com/u/57068549?s=64&v=4)\ KD-MM2](https://github.com/KD-MM2) [3 weeks agoJun 12, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17275222)

 -


|     |
| --- |
| I think it's quite good but hope it could squeeze some more...<br>PC: Dell T5810<br>CPU: Intel(R) Xeon(R) CPU E5-2697 v4 @ 2.30GHz<br>Memory: 8\*16GB RIMM DDR4 Synchronous 2400 MHz<br>GPU: Tesla V100-SXM2-32GB<br>## docker compose:<br>```<br>    llamacpp_cuda:<br>        container_name: llamacpp_cuda<br>        image: ghcr.io/ggml-org/llama.cpp:server-cuda12<br>        ports:<br>            - 3334:8080<br>        deploy:<br>            resources:<br>                reservations:<br>                    devices:<br>                        - driver: nvidia<br>                          count: 1<br>                          capabilities: [ gpu ]<br>        restart: unless-stopped<br>        volumes:<br>            - /mnt/2TB/models:/models:ro<br>            - /mnt/2TB/templates:/templates:ro<br>            - ./config_cuda.ini:/app/config_model.ini:ro<br>        command: ><br>            --models-preset /app/config_model.ini --models-max 1 --host 0.0.0.0 --port 8080<br>```<br>## config.ini:<br>```<br>; llama-server model config.ini<br>[*]<br>n-gpu-layers = all<br>threads = 8<br>batch-size  = 1024<br>ubatch-size = 1024<br>ctx-size = 131072<br>rope-scaling = yarn<br>rope-scale = 4<br>yarn-orig-ctx = 32768<br>parallel = 1<br>mlock = false<br>mmap = true<br>flash-attn = true<br>cache-type-k = q8_0<br>cache-type-v = q8_0<br>prio = 3<br>seed = 3407<br>jinja = true<br>[Qwopus3.6-35B-A3B-v1-MTP]<br>model = /models/Qwopus3.6/Qwopus3.6-35B-A3B-v1-MTP-Q4_K_M.gguf<br>mmproj = /models/Qwopus3.6/mmproj-F32-MTP.gguf<br>image-min-tokens = 1024<br>chat-template-file = /templates/buun-Qwen3.6-chat_template.jinja from ;https://huggingface.co/spiritbuun/buun-Qwen3.6-chat_template<br>temperature = 0.7<br>top-p = 0.8<br>top-k = 20<br>min-p = 0.0<br>presence-penalty = 1.5<br>repeat-penalty = 1.0<br>spec-type = draft-mtp<br>spec-draft-n-max = 3<br>draft-p-min = 0.0<br>spec-draft-p-min = 0.75<br>```<br>## Speed<br>- 7xx t/s for PP and 7x-8x t/s for TG.<br>## llama.cpp logs:<br>```<br>[40009] 810.50.504.292 I srv  update_slots: all slots are idle<br>819.05.873.700 I srv  proxy_reques: proxying request to model Qwopus3.6-35B-A3B-v1-MTP on port 40009<br>[40009] 810.50.653.313 I srv  params_from_: Chat format: peg-native<br>[40009] 810.50.653.551 I slot get_availabl: id  0 | task -1 | selected slot by LRU, t_last = 568025079156<br>[40009] 810.50.653.554 I srv  get_availabl: updating prompt cache<br>[40009] 810.50.654.367 W srv   prompt_save:  - saving prompt with length 7316, total state size = 146.594 MiB (draft: 7.731 MiB)<br>[40009] 810.50.838.943 I srv          load:  - looking for better prompt, base f_keep = 0.001, sim = 0.001<br>[40009] 810.50.838.954 I srv          load:  - found better prompt with f_keep = 0.346, sim = 0.047<br>[40009] 810.50.859.605 I srv        update:  - cache state: 14 prompts, 5679.382 MiB (limits: 8192.000 MiB, 131072 tokens, 203411 est)<br>[40009] 810.50.859.611 I srv        update:    - prompt 0x7b49bc05aba0:     655 tokens, checkpoints:  1,   133.189 MiB<br>[40009] 810.50.859.612 I srv        update:    - prompt 0x627c818cacd0:   29380 tokens, checkpoints:  1,   493.097 MiB<br>[40009] 810.50.859.613 I srv        update:    - prompt 0x7b4a682d4fe0:     643 tokens, checkpoints:  1,   133.052 MiB<br>[40009] 810.50.859.614 I srv        update:    - prompt 0x7b496c162740:   19754 tokens, checkpoints:  5,   669.996 MiB<br>[40009] 810.50.859.615 I srv        update:    - prompt 0x7b496c0565d0:    2922 tokens, checkpoints:  2,   224.518 MiB<br>[40009] 810.50.859.616 I srv        update:    - prompt 0x627c83676e80:    1153 tokens, checkpoints:  1,   139.579 MiB<br>[40009] 810.50.859.617 I srv        update:    - prompt 0x7b489c071750:   28963 tokens, checkpoints: 13,  1461.215 MiB<br>[40009] 810.50.859.619 I srv        update:    - prompt 0x7b4924038810:    2541 tokens, checkpoints:  2,   220.018 MiB<br>[40009] 810.50.859.622 I srv        update:    - prompt 0x7b49540d7e50:   14549 tokens, checkpoints:  5,   589.733 MiB<br>[40009] 810.50.859.623 I srv        update:    - prompt 0x7b482806d140:    4349 tokens, checkpoints:  2,   245.744 MiB<br>[40009] 810.50.859.624 I srv        update:    - prompt 0x7b482806cc80:    5253 tokens, checkpoints:  2,   257.814 MiB<br>[40009] 810.50.859.625 I srv        update:    - prompt 0x7b4910013ba0:   16404 tokens, checkpoints:  3,   480.380 MiB<br>[40009] 810.50.859.628 I srv        update:    - prompt 0x7b48e02d44c0:    7140 tokens, checkpoints:  3,   345.842 MiB<br>[40009] 810.50.859.629 I srv        update:    - prompt 0x7b48e02cb5e0:    7316 tokens, checkpoints:  2,   285.205 MiB<br>[40009] 810.50.859.630 I srv  get_availabl: prompt cache update took 206.07 ms<br>[40009] 810.50.859.706 I reasoning-budget: activated, budget=0 tokens<br>[40009] 810.50.859.709 I reasoning-budget: budget=0, forcing immediately<br>[40009] 810.50.859.709 I reasoning-budget: forced sequence complete, done<br>[40009] 810.50.859.745 I slot launch_slot_: id  0 | task 16307 | processing task, is_child = 0<br>[40009] 810.50.859.758 I slot update_slots: id  0 | task 16307 | Checking checkpoint with [600, 600] against 308...<br>[40009] 810.50.859.761 W slot update_slots: id  0 | task 16307 | forcing full prompt re-processing due to lack of cache data (likely due to SWA or hybrid/recurrent memory, see https://github.com/ggml-org/llama.cpp/pull/13194#issuecomment-2868343055)<br>[40009] 810.50.859.763 W slot update_slots: id  0 | task 16307 | erased invalidated context checkpoint (pos_min = 600, pos_max = 600, n_tokens = 601, n_swa = 0, pos_next = 0, size = 63.448 MiB)<br>[40009] 810.54.985.306 I slot print_timing: id  0 | task 16307 | prompt processing, n_tokens =   3072, progress = 0.47, t =   4.13 s / 744.63 tokens per second<br>[40009] 810.56.378.445 I slot print_timing: id  0 | task 16307 | prompt processing, n_tokens =   4096, progress = 0.63, t =   5.52 s / 742.21 tokens per second<br>[40009] 810.57.783.205 I slot print_timing: id  0 | task 16307 | prompt processing, n_tokens =   5120, progress = 0.78, t =   6.92 s / 739.52 tokens per second<br>[40009] 810.58.494.595 I slot print_timing: id  0 | task 16307 | prompt processing, n_tokens =   5512, progress = 0.84, t =   7.63 s / 721.95 tokens per second<br>[40009] 810.58.514.967 I slot create_check: id  0 | task 16307 | created context checkpoint 1 of 32 (pos_min = 5511, pos_max = 5511, n_tokens = 5512, size = 68.638 MiB)<br>[40009] 810.59.903.110 I slot print_timing: id  0 | task 16307 | prompt processing, n_tokens =   6532, progress = 1.00, t =   9.04 s / 722.30 tokens per second<br>[40009] 810.59.928.798 I slot create_check: id  0 | task 16307 | created context checkpoint 2 of 32 (pos_min = 6531, pos_max = 6531, n_tokens = 6532, size = 69.715 MiB)<br>[40009] 811.01.196.309 I slot print_timing: id  0 | task 16307 | n_decoded =    101, tg =  81.32 t/s<br>[40009] 811.04.205.270 I slot print_timing: id  0 | task 16307 | n_decoded =    343, tg =  80.68 t/s<br>[40009] 811.07.213.656 I slot print_timing: id  0 | task 16307 | n_decoded =    584, tg =  80.44 t/s<br>[40009] 811.10.218.165 I slot print_timing: id  0 | task 16307 | n_decoded =    803, tg =  78.24 t/s<br>[40009] 811.12.276.171 I slot print_timing: id  0 | task 16307 | prompt eval time =    9094.24 ms /  6536 tokens (    1.39 ms per token,   718.70 tokens per second)<br>[40009] 811.12.276.177 I slot print_timing: id  0 | task 16307 |        eval time =   12321.94 ms /   982 tokens (   12.55 ms per token,    79.70 tokens per second)<br>[40009] 811.12.276.178 I slot print_timing: id  0 | task 16307 |       total time =   21416.18 ms /  7518 tokens<br>[40009] 811.12.276.179 I slot print_timing: id  0 | task 16307 |    graphs reused =       8818<br>[40009] 811.12.276.180 I slot print_timing: id  0 | task 16307 | draft acceptance = 0.92765 (  577 accepted /   622 generated)<br>[40009] 811.12.276.194 I statistics        draft-mtp: #calls(b,g,a) =   53  16371  13220, #gen drafts =  13220, #acc drafts = 12781, #gen tokens =  33451, #acc tokens = 31814, dur(b,g,a) = 0.049, 58056.097, 12.354 ms<br>[40009] 811.12.276.546 I slot      release: id  0 | task 16307 | stop processing: n_tokens = 7517, truncated = 0<br>[40009] 811.12.276.565 I srv  update_slots: all slots are idle<br>819.27.627.531 I srv  proxy_reques: proxying request to model Qwopus3.6-35B-A3B-v1-MTP on port 40009<br>[40009] 811.12.406.184 I srv  params_from_: Chat format: peg-native<br>[40009] 811.12.406.386 I slot get_availabl: id  0 | task -1 | selected slot by LRU, t_last = 568046851436<br>[40009] 811.12.406.388 I srv  get_availabl: updating prompt cache<br>[40009] 811.12.407.211 W srv   prompt_save:  - saving prompt with length 7517, total state size = 148.896 MiB (draft: 7.943 MiB)<br>[40009] 811.12.598.088 I srv          load:  - looking for better prompt, base f_keep = 0.001, sim = 0.001<br>[40009] 811.12.598.098 I srv          load:  - found better prompt with f_keep = 0.360, sim = 0.062<br>[40009] 811.12.619.832 I srv        update:  - cache state: 14 prompts, 5827.052 MiB (limits: 8192.000 MiB, 131072 tokens, 207203 est)<br>[40009] 811.12.619.837 I srv        update:    - prompt 0x7b49bc05aba0:     655 tokens, checkpoints:  1,   133.189 MiB<br>[40009] 811.12.619.839 I srv        update:    - prompt 0x627c818cacd0:   29380 tokens, checkpoints:  1,   493.097 MiB<br>[40009] 811.12.619.839 I srv        update:    - prompt 0x7b4a682d4fe0:     643 tokens, checkpoints:  1,   133.052 MiB<br>[40009] 811.12.619.840 I srv        update:    - prompt 0x7b496c162740:   19754 tokens, checkpoints:  5,   669.996 MiB<br>[40009] 811.12.619.841 I srv        update:    - prompt 0x7b496c0565d0:    2922 tokens, checkpoints:  2,   224.518 MiB<br>[40009] 811.12.619.843 I srv        update:    - prompt 0x7b489c071750:   28963 tokens, checkpoints: 13,  1461.215 MiB<br>[40009] 811.12.619.857 I srv        update:    - prompt 0x7b4924038810:    2541 tokens, checkpoints:  2,   220.018 MiB<br>[40009] 811.12.619.859 I srv        update:    - prompt 0x7b49540d7e50:   14549 tokens, checkpoints:  5,   589.733 MiB<br>[40009] 811.12.619.860 I srv        update:    - prompt 0x7b482806d140:    4349 tokens, checkpoints:  2,   245.744 MiB<br>[40009] 811.12.619.861 I srv        update:    - prompt 0x7b482806cc80:    5253 tokens, checkpoints:  2,   257.814 MiB<br>[40009] 811.12.619.862 I srv        update:    - prompt 0x7b4910013ba0:   16404 tokens, checkpoints:  3,   480.380 MiB<br>[40009] 811.12.619.867 I srv        update:    - prompt 0x7b48e02d44c0:    7140 tokens, checkpoints:  3,   345.842 MiB<br>[40009] 811.12.619.868 I srv        update:    - prompt 0x7b48e02cb5e0:    7316 tokens, checkpoints:  2,   285.205 MiB<br>[40009] 811.12.619.869 I srv        update:    - prompt 0x627c7e010a70:    7517 tokens, checkpoints:  2,   287.249 MiB<br>[40009] 811.12.619.870 I srv  get_availabl: prompt cache update took 213.48 ms<br>[40009] 811.12.619.947 I reasoning-budget: activated, budget=0 tokens<br>[40009] 811.12.619.949 I reasoning-budget: budget=0, forcing immediately<br>[40009] 811.12.619.949 I reasoning-budget: forced sequence complete, done<br>[40009] 811.12.619.981 I slot launch_slot_: id  0 | task 16720 | processing task, is_child = 0<br>[40009] 811.12.619.993 I slot update_slots: id  0 | task 16720 | Checking checkpoint with [707, 707] against 415...<br>[40009] 811.12.619.995 W slot update_slots: id  0 | task 16720 | forcing full prompt re-processing due to lack of cache data (likely due to SWA or hybrid/recurrent memory, see https://github.com/ggml-org/llama.cpp/pull/13194#issuecomment-2868343055)<br>[40009] 811.12.619.998 W slot update_slots: id  0 | task 16720 | erased invalidated context checkpoint (pos_min = 707, pos_max = 707, n_tokens = 708, n_swa = 0, pos_next = 0, size = 63.561 MiB)<br>[40009] 811.16.709.430 I slot print_timing: id  0 | task 16720 | prompt processing, n_tokens =   3072, progress = 0.46, t =   4.09 s / 751.20 tokens per second<br>[40009] 811.18.112.611 I slot print_timing: id  0 | task 16720 | prompt processing, n_tokens =   4096, progress = 0.62, t =   5.49 s / 745.73 tokens per second<br>[40009] 811.19.504.877 I slot print_timing: id  0 | task 16720 | prompt processing, n_tokens =   5120, progress = 0.77, t =   6.88 s / 743.66 tokens per second<br>[40009] 811.20.373.781 I slot print_timing: id  0 | task 16720 | prompt processing, n_tokens =   5619, progress = 0.85, t =   7.75 s / 724.68 tokens per second<br>[40009] 811.20.394.142 I slot create_check: id  0 | task 16720 | created context checkpoint 1 of 32 (pos_min = 5618, pos_max = 5618, n_tokens = 5619, size = 68.751 MiB)<br>[40009] 811.21.782.713 I slot print_timing: id  0 | task 16720 | prompt processing, n_tokens =   6639, progress = 1.00, t =   9.16 s / 724.57 tokens per second<br>[40009] 811.21.833.147 I slot create_check: id  0 | task 16720 | created context checkpoint 2 of 32 (pos_min = 6638, pos_max = 6638, n_tokens = 6639, size = 69.828 MiB)<br>[40009] 811.23.161.346 I slot print_timing: id  0 | task 16720 | n_decoded =    101, tg =  77.53 t/s<br>[40009] 811.26.168.458 I slot print_timing: id  0 | task 16720 | n_decoded =    325, tg =  75.40 t/s<br>[40009] 811.29.196.909 I slot print_timing: id  0 | task 16720 | n_decoded =    575, tg =  78.36 t/s<br>[40009] 811.29.626.649 I slot print_timing: id  0 | task 16720 | prompt eval time =    9238.34 ms /  6643 tokens (    1.39 ms per token,   719.07 tokens per second)<br>[40009] 811.29.626.656 I slot print_timing: id  0 | task 16720 |        eval time =    7768.03 ms /   615 tokens (   12.63 ms per token,    79.17 tokens per second)<br>[40009] 811.29.626.657 I slot print_timing: id  0 | task 16720 |       total time =   17006.36 ms /  7258 tokens<br>[40009] 811.29.626.658 I slot print_timing: id  0 | task 16720 |    graphs reused =       8912<br>[40009] 811.29.626.659 I slot print_timing: id  0 | task 16720 | draft acceptance = 0.94301 (  364 accepted /   386 generated)<br>[40009] 811.29.626.673 I statistics        draft-mtp: #calls(b,g,a) =   54  16623  13389, #gen drafts =  13389, #acc drafts = 12945, #gen tokens =  33837, #acc tokens = 32178, dur(b,g,a) = 0.049, 58824.114, 12.504 ms<br>[40009] 811.29.627.039 I slot      release: id  0 | task 16720 | stop processing: n_tokens = 7259, truncated = 0<br>[40009] 811.29.627.059 I srv  update_slots: all slots are idle<br>``` |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

0 replies


Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

### [![](https://avatars.githubusercontent.com/u/1436852?s=64&v=4)\ jpdelmundo](https://github.com/jpdelmundo) [3 weeks agoJun 12, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17275811)

 -


|     |
| --- |
| HW Specs: RTX 4060 8GB, RX 5700X3D, 16GB<br>llama-server -hf unsloth/gemma-4-12B-it-qat-GGUF:UD-Q4\_K\_XL -c 32768 --spec-type draft-mtp --spec-draft-n-max 2 -ngl 35 -fa on --port 8000 --ui-mcp-proxy<br>Also added brave search mcp server.<br>With those parameters, VRAM usage is 7.5GB<br>Tests:<br>"Write a Python function that sorts a list": 882 tokens 1min 5s 13.45 t/s<br>"Explain how transformers work in simple terms": 719 tokens 1min 6s 10.76 t/s<br>"Write a short story about a robot.": 823 tokens 1min 19s 10.37 t/s<br>I'd like to use it for agentic coding. Can this spec be optimized to maybe 20-30 t/s? |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

2You must be logged in to vote

All reactions

0 replies


Comment options

-
Copy link


-
Copy Markdown



# {{title}}

Quote reply

edited

# {{editor}}'s edit

{{actor}} deleted this content
.

# {{editor}}'s edit

### [![](https://avatars.githubusercontent.com/u/19999039?s=64&v=4)\ fessmm](https://github.com/fessmm) [3 weeks agoJun 15, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17304374)

 -


|     |
| --- |
| CPU: AMD Ryzen 9 5900X 12-Core Processor<br>GPU: AMD Radeon RX 6900 XT 16GB vRAM<br>RAM: 32GB<br>my compose file:<br>```<br>services:<br>  llama-gemma:<br>    container_name: llama-gemma<br>    image: llama-cpp-vulkan:latest<br>    ports:<br>      - "8888:8080"<br>    volumes:<br>      - ./hf-cache:/root/.cache/huggingface<br>    devices:<br>      - /dev/dri<br>    command:<br>      - --server<br>      - --host<br>      - "0.0.0.0"<br>      - --port<br>      - "8080"<br>      - --hf-repo<br>      - "unsloth/gemma-4-26B-A4B-it-GGUF:UD-IQ4_XS"<br>      - --spec-type<br>      - "draft-mtp"<br>      - --spec-draft-n-max<br>      - "1"<br>      - --no-mmproj<br>      - --n-gpu-layers<br>      - "-1"<br>      - --parallel<br>      - "1"<br>      - --cache-type-k<br>      - "q8_0"<br>      - --cache-type-v<br>      - "q5_0"<br>    restart: unless-stopped<br>```<br>context:<br>162.048 of 262.144<br>i run this command to benchmark:<br>```<br>curl --request POST --url http://localhost:8888/v1/chat/completions --header "Content-Type: application/json" --data '{"messages": [{"role": "user", "content": "Write a story about a dragon."}], "max_tokens": 2000}'<br>```<br>output:<br>```<br>{<br>  "choices": [<br>    {<br>      "finish_reason": "length",<br>      "index": 0,<br>      "message": {<br>        "role": "assistant",<br>        "content": "xxx",<br>        "reasoning_content": "xxx"<br>      }<br>    }<br>  ],<br>  "created": 1781762838,<br>  "model": "unsloth/gemma-4-26B-A4B-it-GGUF:UD-IQ4_XS",<br>  "system_fingerprint": "b9692-f3e182816",<br>  "object": "chat.completion",<br>  "usage": {<br>    "completion_tokens": 2000,<br>    "prompt_tokens": 23,<br>    "total_tokens": 2023,<br>    "prompt_tokens_details": { "cached_tokens": 1 }<br>  },<br>  "id": "chatcmpl-RZFWE48jPuELBsv31pHVMgfZSUeG5rAj",<br>  "timings": {<br>    "cache_n": 1,<br>    "prompt_n": 22,<br>    "prompt_ms": 202.57,<br>    "prompt_per_token_ms": 9.207727272727272,<br>    "prompt_per_second": 108.60443303549391,<br>    "predicted_n": 2000,<br>    "predicted_ms": 17616.371,<br>    "predicted_per_token_ms": 8.8081855,<br>    "predicted_per_second": 113.53076067709974,<br>    "draft_n": 1180,<br>    "draft_n_accepted": 818<br>  }<br>}<br>``` |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

1You must be logged in to vote

All reactions

0 replies


Comment options

# {{title}}

Quote reply

### [![](https://avatars.githubusercontent.com/u/1991296?s=64&v=4)\ ggerganov](https://github.com/ggerganov) [3 weeks agoJun 18, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17349591)   Maintainer  Author

 -


|     |
| --- |
| For Qwen3.6-27B users, I found that loading the MTP layers in `Q4_0` provides a nice speed-up. Here is my current config for the RTX 5090:<br>[https://huggingface.co/ggerganov/presets/blob/main/preset-32GB.ini#L92-L95](https://huggingface.co/ggerganov/presets/blob/main/preset-32GB.ini#L92-L95) |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

5You must be logged in to vote

All reactions

1 reply


[![@gelim](https://avatars.githubusercontent.com/u/179122?s=60&v=4)](https://github.com/gelim)

Comment options

# {{title}}

Quote reply

#### [gelim](https://github.com/gelim) [5 hours agoJul 5, 2026](https://github.com/ggml-org/llama.cpp/discussions/21112\#discussioncomment-17540516)

 -


|     |
| --- |
| Is there is any advantage using the dedicated drafter over unsloth/Qwen3.6-27B-MTP-GGUF ? |

BetaWas this translation helpful? [Give feedback.](https://github.com/ggml-org/llama.cpp/discussions/21112#)

All reactions

[Sign up for free](https://github.com/join?source=comment-repo) **to join this conversation on GitHub**.
Already have an account?
[Sign in to comment](https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fggml-org%2Fllama.cpp%2Fdiscussions%2F21112)

Category


[🙏\\
\\
Q&A](https://github.com/ggml-org/llama.cpp/discussions/categories/q-a)

Labels


None yet


25 participants


[![@ggerganov](https://avatars.githubusercontent.com/u/1991296?s=48&v=4)](https://github.com/ggerganov) [![@gelim](https://avatars.githubusercontent.com/u/179122?s=48&v=4)](https://github.com/gelim) [![@strikeoncmputrz](https://avatars.githubusercontent.com/u/648143?s=48&v=4)](https://github.com/strikeoncmputrz) [![@wbste](https://avatars.githubusercontent.com/u/691245?s=48&v=4)](https://github.com/wbste) [![@vishalbelsare](https://avatars.githubusercontent.com/u/1388100?s=48&v=4)](https://github.com/vishalbelsare) [![@jpdelmundo](https://avatars.githubusercontent.com/u/1436852?s=48&v=4)](https://github.com/jpdelmundo) [![@Kangaroux](https://avatars.githubusercontent.com/u/2302541?s=48&v=4)](https://github.com/Kangaroux) [![@motosir](https://avatars.githubusercontent.com/u/2624106?s=48&v=4)](https://github.com/motosir) [![@am17an](https://avatars.githubusercontent.com/u/2929750?s=48&v=4)](https://github.com/am17an) [![@eelgaev](https://avatars.githubusercontent.com/u/3100771?s=48&v=4)](https://github.com/eelgaev) [![@AurelienKun](https://avatars.githubusercontent.com/u/3368866?s=48&v=4)](https://github.com/AurelienKun) [![@SPYFF](https://avatars.githubusercontent.com/u/7911352?s=48&v=4)](https://github.com/SPYFF) [![@RWayne93](https://avatars.githubusercontent.com/u/16741629?s=48&v=4)](https://github.com/RWayne93) [![@iridium87](https://avatars.githubusercontent.com/u/18313278?s=48&v=4)](https://github.com/iridium87) [![@fessmm](https://avatars.githubusercontent.com/u/19999039?s=48&v=4)](https://github.com/fessmm) [![@MariusArmand](https://avatars.githubusercontent.com/u/38524339?s=48&v=4)](https://github.com/MariusArmand) [![@d-shehu](https://avatars.githubusercontent.com/u/39029310?s=48&v=4)](https://github.com/d-shehu) [![@KD-MM2](https://avatars.githubusercontent.com/u/57068549?s=48&v=4)](https://github.com/KD-MM2) [![@Dampfinchen](https://avatars.githubusercontent.com/u/59751859?s=48&v=4)](https://github.com/Dampfinchen) [![@fbo25](https://avatars.githubusercontent.com/u/75153730?s=48&v=4)](https://github.com/fbo25) [![@karambaso](https://avatars.githubusercontent.com/u/119061711?s=48&v=4)](https://github.com/karambaso) and others

Heading

Bold

Italic

Quote

Code

Link

* * *

Numbered list

Unordered list

Task list

* * *

Attach files

Mention

Reference

# Select a reply

Loading

[Create a new saved reply](https://github.com/ggml-org/llama.cpp/discussions/21112)

👍1 reacted with thumbs up emoji👎1 reacted with thumbs down emoji😄1 reacted with laugh emoji🎉1 reacted with hooray emoji😕1 reacted with confused emoji❤️1 reacted with heart emoji🚀1 reacted with rocket emoji👀1 reacted with eyes emoji

You can’t perform that action at this time.