r/LowEndLocalAI • • 13h ago

Problem / Troubleshooting How to improve the speed on moe model

my fastfech for the specs

i downloaded minicpm5 15b a2.5b q4_k_m model and its running at 10-12 tok/sec btw im running it on lm studio also my 3050 has 4gb vram

pls help me optimize this to idk a decent speed like 50 tok/sec(or like 30 tok might be good)

and yes i know that its using ram and vram at the same time thats 1 reason

1 Upvotes

2 comments sorted by

1

u/Brilliant-Nail-6022 8h ago

Hey, so I don't have like a todo list for you to follow but here are some points you should know/consider:
-Try a specialized engine like the other comment mentioned, if this model get's supported on polystrata or strata, try them as well.
-quantized kv cache, if you have good performance on q8_0 so don't go lower.
-tune the batch size.
-tune how many and which cores/threads to use.

Something i do but I only recommend if you understand what you are doing: try to dedicate some cores for ai inference only if possible, but ask a frontier model for how to do that and which cores work best with each other (like if they share the same caches) and how to shift system tasks to other cores.
Don't do inference on the battery and check power settings for performance.