Repository navigation
Update 1.4.1 #128
|
From the release.
Can anyone give some guidance about the arguments --parallel 64 and --fixed-experts for different sized/quant models? |
Replies: 1 comment 1 reply
|
Hi, good question. --parallel N is how many requests can decode at the same time. Each slot keeps its own KV cache and --ctx is per slot, so 64 slots need 64 times the KV memory of one. If they don't fit, the server lowers --parallel by itself. For a MoE model the batched step starts from 16 requests decoding at once (STRATA_BATCH_MIN changes this). So --parallel 64 only helps if you really get many users at the same time. For a few users, --parallel 4 is the better choice. --fixed-experts keeps the set of experts in VRAM the same for the whole run. Without it the placement adapts to your traffic, which is nice for one user. With many users at once the fixed set gives steadier speed and the same text on every run. On my RTX 3060 with Qwen3.6-35B-A3B UD-Q2_K_XL, --parallel 16 --fixed-experts and 16 clients at 128 tokens each gave about 197 tok/s in total. About size and quant: a bigger quant means fewer experts fit in VRAM, so more of them run on the CPU and over PCIe. At start the server prints a "plan:" line with "resident experts X/Y". A higher X is faster. A smaller --ctx per slot leaves more VRAM for experts. Models with MTP, LoRA or hyper-connections (like Qwen3.8 Flash-Next) don't use the batched step yet. The easy way is to try it: start with --parallel 16 --ctx 4096 --fixed-experts and run tools/loadtest.py --clients 1,16 with your own model. Then change one setting at a time. What can it be used for? There are 3 options: But be careful, this is so to say "beta", and it's slower on Vulkan, but I am working on it every day, so pretty soon it will be nice alternative for vLLM, especially for custom GGUF and also for low VRAM and a lot of RAM(which vLLM can't offer) if you have not understood anything, just write and I will explain with more easy words |
Hi, good question.
--parallel N is how many requests can decode at the same time. Each slot keeps its own KV cache and --ctx is per slot, so 64 slots need 64 times the KV memory of one. If they don't fit, the server lowers --parallel by itself. For a MoE model the batched step starts from 16 requests decoding at once (STRATA_BATCH_MIN changes this). So --parallel 64 only helps if you really get many users at the same time. For a few users, --parallel 4 is the better choice.
--fixed-experts keeps the set of experts in VRAM the same for the whole run. Without it the placement adapts to your traffic, which is nice for one user. With many users at once the fixed set gives steadier speed and t…