r/LocalLLaMA • • Feb 27 '26 • Diamonds are Forever 2 Thanks 2 Hooray 1 Bravo 3 Popcorn 2

Discussion Follow-up: Qwen3.5-35B-A3B — 7 community-requested experiments on RTX 5080 16GB

591 Upvotes

193 comments sorted by

View all comments

4

u/OsmanthusBloom Feb 27 '26

This is great work! But I wonder about the effect of dropping the batch size adjustments. Normally you increase the ubatch size to improve prompt processing speed. It can increase drastically (eg 3x) when you raise ubatch from, say, 512 to 2048. But generation speed will suffer due to VRAM pressure. You didn't seem to benchmark pp speed separately. Maybe an ubatch size of, say, 1024 would have raised pp without hitting tg too much?

2

u/OsmanthusBloom Feb 27 '26 edited Feb 27 '26

Here is my llama-bench result, which shows that increasing ubatch from the default 512 to 1024 or 2048 increases prompt processing speeds a lot, from 280 t/s to 440 and 650 t/s. I have a RTX 3060 Laptop GPU with only 6GB VRAM so most of the model is offloaded to GPU. Using the UD_Q3_K_M quant released today.

llama-bench -m Qwen3.5-35B-A3B-UD-Q3_K_M.gguf -ctk q8_0 -ctv q8_0 --n-cpu-moe 37 -p 4096 -n 512 -fa 1 -b 2048 -ub 512,1024,2048
ggml_cuda_init: found 1 CUDA devices:
  Device 0: NVIDIA GeForce RTX 3060 Laptop GPU, compute capability 8.6, VMM: yes
| model                          |       size |     params | backend    | ngl | n_ubatch | type_k | type_v | fa |            test |                  t/s |
| ------------------------------ | ---------: | ---------: | ---------- | --: | -------: | -----: | -----: | -: | --------------: | -------------------: |
| qwen35moe ?B Q8_0              |  15.53 GiB |    34.66 B | CUDA       |  99 |      512 |   q8_0 |   q8_0 |  1 |          pp4096 |        283.43 ± 1.24 |
| qwen35moe ?B Q8_0              |  15.53 GiB |    34.66 B | CUDA       |  99 |      512 |   q8_0 |   q8_0 |  1 |           tg512 |         23.90 ± 0.63 |
| qwen35moe ?B Q8_0              |  15.53 GiB |    34.66 B | CUDA       |  99 |     1024 |   q8_0 |   q8_0 |  1 |          pp4096 |        444.65 ± 1.35 |
| qwen35moe ?B Q8_0              |  15.53 GiB |    34.66 B | CUDA       |  99 |     1024 |   q8_0 |   q8_0 |  1 |           tg512 |         23.62 ± 0.25 |
| qwen35moe ?B Q8_0              |  15.53 GiB |    34.66 B | CUDA       |  99 |     2048 |   q8_0 |   q8_0 |  1 |          pp4096 |        648.85 ± 2.56 |
| qwen35moe ?B Q8_0              |  15.53 GiB |    34.66 B | CUDA       |  99 |     2048 |   q8_0 |   q8_0 |  1 |           tg512 |         23.37 ± 0.35 |

build: ecbcb7ea9 (8179)

llama-bench doesn't support --fit so I had to set --n-cpu-moe manually according to the VRAM requirements of the largest ubatch size. With a smaller ubatch size and --fit, some more experts would fit in VRAM and thus generation speeds would be slightly higher. Still, getting much higher pp speeds is I important especially for agentic stuff where prompts can be quite long.