Llama.cpp v ik_llama.cpp sanity check step-3.5-flash

hi all,

maybe my first post on here.
i’ve been using ollama / openwebui as a Casual, but more recently became aware that with MoE llm inference opened up some potential performance benefits when utilising vram and ram over ollama.
anyway when i heard about step-3.5-flash being run at acceptable framerates on llamacpp (and not available for easy ollama install) it was enough to make me attempt llama.cpp - but then when i did a bit more research it was like - wait maybe ik_llama.cpp is an even better option.

so i’m just hoping the llm gurus can give some direction on ik_llama.
i have tried getting ik_llama.cpp cranking with step3.5-flash but i can’t match the perf i can get with regular llama.cpp. i thought the fork was more geared toward complicated setups (sharing gpu/ram) but im not sure it matches my hardware (maybe not multi mixed gpu’s and ram?).

endeavour os/ 3090 / 5060ti (16gb) / 5060 ti (16gb), 64gb ram, 5950x.

with llama.cpp (serve) i can run AesSedai_Step-3.5-Flash -IQ4_XS (~96gb).
im getting about 17/18t/s on lllama.cpp but whatever i try (remember noob at this) im getting 10t/s on ik_llama.cpp. is my multi-gpu sys an issue with ik? or should i keep trying to refine? i have put a fair bit of time in but with no luck - so was just unsure if it was likely a hardware issue or user issue that i could sort.

my llama.cpp launch would look something like:
./build/bin/llama-server --model /mnt/LOCATION/MODELS/step3p5_flash_Q4_K_S-00001-of-00012.gguf --ctx-size 16384 --flash-attn 1 -ctk q8_0 -ctv q8_0 --fit on --fit-target 1200 --no-warmup --threads 16 --numa numactl --sleep-idle-seconds 240 --host 0.0.0.0 --port xyxy

my ik_llama.cpp was
./build/bin/llama-server --model /mnt/location/MODELS/AesSedai_Step-3.5-Flash-GGUF_IQ4_XS_Step-3.5-Flash-IQ4_XS-00001-of-00003.gguf -ngl 20 --main-gpu 0 --tensor-split 23,15,15 --ctx-size 16384 --batch-size 2048 -fa 1 -ot “token_embd.weight=CUDA0” -ot “output.weight=CUDA0” --host 0.0.0.0 --port xyxy - also a bit unstable.

im - a bit in disbelief to be able to get 16/17 t/s for 196B on my sys at around Q4 - it doesn’t look like the model goes that great going down from q4 to q3.

cheers

rusty

-edit - reduce ramblings that were put together on a phone that wasn’t meant to be posted…

1 Like

The point of ik_llama.cpp, in this context, is to be able to use --split-mode graph - I could be wrong, but I believe the default is the same as llama.cpp, which is -- split-mode layer.

However, using that split mode (essentially tensor parallelism) is going to be limited by the slowest GPU PCIE connection, and that’s going to be pretty damn slow on a consumer motherboard (PCIE x4, through the chipset).

For what it’s worth, there’s an open PR on llama.cpp for tensor parallelism:

Not sure how close it is, but I’d guess it’s at least a few weeks away.

1 Like

it looks like ik_llama.cpp isn’t fully optimized for your multi-GPU setup the way llama.cpp is. ik_llama shines in complex mixed GPU/RAM configurations, but your dual 5060 Ti setup may not be ideal for its tensor-splitting defaults. Performance drop from 17t/s to 10t/s is expected if the GPU mapping or split isn’t tuned.

You can try adjusting --tensor-split and assigning layers more evenly across your GPUs, but on your current hardware, llama.cpp will likely stay faster and more stable. ik_llama is worth exploring if you expand to mixed or larger GPU setups, otherwise stick with llama.cpp for step-3.5-flash.

1 Like

ok thanks for the feedback and heads up on --split mode graph - something to consider. you both have helped me out thankyou. i’ll take it too that ik_llama may not be optimised for my setup. i’ll continue working with llama.cpp for now.
in the meantime i did some further llama.cpp v ollama with gpt-oss-120 Q8 which went from 17t/s to i think it was 44t/s (over 40 anyway). qwen coder next was a smaller improvement. really loving these MoE models with llama.cpp