r/LowEndLocalAI • • 4d ago

Optimization 8GB VRAM 16GB RAM Qwen3.6 35BA3B 58.5 t/s RustingStrata. I hope someone can benefit for it.

Post image

I shared this post in the hope of someone may/could benefit from faster token per second. I found RustingStrata 8 hours ago. Decided to give it a try. It's faster than llama cpp. Normally, I get around 30ts in llama cpp.

324 Upvotes

72 comments sorted by

View all comments

Show parent comments

7

u/ledzeppbluess 4d ago

nah polystrata can adjust around any ram you have, as it supports ssd offloading. and here are the important ones i use, I'll help you understand better.

--stage-mib will adjust your prefill speed, you should be getting around 900 - 1200 t/s. increaseing its number will give higher prefill speed but lower decode. Decreasing number is will higher decode but slower prefill, i found 350 or 512 to be a very good balance

"--ram-experts-mib" this adjust accordingly to house much free ram you have after OS or any background apps take, i have adjusted it so 500mb stays free after even context fills up, you can try this or increase and decrease according to you system.

"--no-graphs" this is experimental, helped increase decode speed on an nvidia gpu, you can try with it and without it.

"--vram-reserve-mib" is how much vram is left free for other stuff once modal is loaded on to it

I use 128k context btw and i will also give your rusting strata flags a try and see how it compares or you tell me. If you want to use the same gguf you have. Then open a powershell window in the polyStrata folder and run ./SETUP --custom-gguf "path to your guff" and then when its all set up, close the server and add these flags to the launch json file .

"--tail-skip" at 6 will give even higher speed but it drops some experts so can change answer quality a little bit.

Let me know speeds you get, the web ui has a nice statistics page

  "--tail-skip",
        "0",
        "--kv",
        "q8_0",
        "--expert-swaps",
        "64",
        "--prompt-batch",
        "512",
        "--stage-mib",
        "350",
        "--stage-ahead",
        "2048",
        "--threads",
        "6",
        "--ram-experts-mib",
        "10550",
        "--no-graphs",
        "--vram-reserve-mib",
        "256"

1

u/NicholasCureton 4d ago

I'll try it. Thanks!

1

u/danishaznita 4d ago

Hey , i think i may be missing some things , but how do i launch polystrata with my own models , and not from the setup cli ?

Do we do it the same as llamacpp?

2

u/ledzeppbluess 4d ago

./SETUP --custom-gguf "path to your guff" ,it will make polystrata engine run your own model.
You do not need any llamacpp, it will download its own version, you just have to download the source folder in releases and run that command if on windows or the sh command with same --custom-gguf "path to your guff" flags and it will guide you in setting up your own model with its engine, and the flags above you add it to the json file of the model it makes.
Make sure to use proper sampling too as recommended for qwen, either chat focused or code focused, run these commands from a terminal open in the source directory. In the end it will give you an open ai compatible api to use anywhere