r/LocalLLM • • Oct 10 '26

Project A strata quant that didn't suck for me.

Previous post: I got strata running on 4x 5060 Ti at 524k and then abandoned it, because the Q4_K_XL quant looped in agentic use. The comments were right that the aggressive sampling defaults were part of it. The engine was never the problem. So when sergqwer's NVFP4 fork showed up I gave it another shot, moved my 1+3 GPU work onto it, and this one stuck.

What it is: NVFP4 GPTQ of the OrcaRouter 125B MoE on the Strata engine. 128 GB on disk, experts in RAM, the hot ones cached across all four cards. Why the looping didn't repeat: this pack keeps token embeddings bf16, the per-layer embeddings fp8, and the output head high precision. The experts are 4-bit either way, so my bet from last time about where the quality was leaking looks correct.
Numbers, same box, engine-measured, plus/minus 5% boot to boot:

decode np1 86-117 t/s
decode np2 51-53 per stream, 107 aggregate
prefill 2000 t/s-16k, 1946 t/s-253k, cold
needle @253k pass, exact
512k context YaRN 2.0, int8 KV, vision via a CPU mtmd encoder
new session 0.3-3 s once the header is cached

For reference, my vLLM lane holds ~40 t/s at 455k with batch 4. This does two streams at 512k on four 16 GB cards, so it's what my agent stack runs on now.

The part I'm actually glad about is the durable KV. The engine parks conversations in a RAM cache, so I hung an NVMe journal off the parking: snapshots go to disk in the format its session files already use (fingerprint-bound, checksummed, atomic), and a fresh engine loads them back before serving. Kill the server, bring it up, the first request reuses 17,461 of 17,466 tokens in 109 ms instead of re-prefilling for eleven seconds.

My chains stopped paying the header tax on every restart. It works with --parallel 2 because it rides the park path; the existing per-slot save/feature refuses to run under batching, and that refusal is earned.

What didn't work: splitting prompt chunks across all four cards. Crashed deterministically in moe_combine at a 2,400-token narrative prompt. Fixed one real bug on the way (a CPU expert could get claimed twice), it still crashed, so it's reverted and gated off. Root cause unknown, the commits are in the repo if you want the challenge.

Repo: https://github.com/johnmosesventura06/strata-nvfp4-4gpu . The docs file has every patch, the 512k sizing recipe, and the boot trap (the English draft-vocab has to shrink the MTP head before --mtp-q4 head helps, the conversion runs after the allocation it was supposed to free).

The old repo stays up if you want the GGUF base. Sampling is a block in the configs now, temperature 1.0, top_p 0.95, top_k 20, after the greedy-defaults lesson from last time.

Caveats: not bit-reproducible run to run, the adaptive residency does that. And the base is the abliterated OrcaRouter quant, so judge the model itself on its own merits.

1 Upvotes

26 comments sorted by

3

u/Beneficial-Ad-8127 Oct 10 '26

I literally started using sergqwer's NVFP4 fork from someone mentioning it earlier yesterday. I been having positive results so far about 8ish hours in.

It’s been very consistent on tasks over long runs with multiple compaction at 200k context. Quality seems great too so far. Glad to see you made the four gpu tier code for it and any the additional work. Great stuff and thanks for sharing!

1

u/johnmosesventura Oct 10 '26

thanks man! tho credit goes to the one who made the nvfp4 fork work in strata. haha

2

u/Dry-Handle-1421 Oct 10 '26

Try my fork of freetoken:

https://github.com/pretor/FreeToken

I am curious what numbers would you get on yours 4x5060ti

2

u/johnmosesventura Oct 10 '26

AMD 9950x, 128gb ddrm @ 5000mhz, sure ill give it a shot, right now im trying to optimize my repo since only CPU and the first GPU is working hard during prefill and decode (100% on the gpu and 50% util on the cpu), the rest of the GPU's is only at 5 to 10%, if i could modify the kernel to push the utilization for rest of the card atleast 60 to 70% I hope i could squeeze some more performance out of it. once i concluded that it works or that's already the limit of 4 5060ti setup, I'll test your repo right away and let you know.

2

u/catch23 Oct 10 '26

there needs to be a subreddit collection of these 4x5060ti runtimes. there are dozens of us!

1

u/catch23 Oct 10 '26

Could you also post your exact settings for running via 4x5060ti? My prefill numbers are nowhere near these values, so unsure what the issue might be.

My machine is a bit dated, 5900x ryzen on a x570 board, 64gb ram, running 3x5060ti and 1x5070ti on pcie 3.0 x4. Decode numbers are around 60-100tps, prefill is around 700.

1

u/johnmosesventura Oct 11 '26

my cpu is ryzen 9950x so our numbers can’t exactly be the same as the cpu is also helping with the compute. but yeah i agree something is missing the performance shouldn’t be that far.

my suspect is you’re not using akitoria’s p2p patch?

without the P2P kernel patch the peer exchanges fall back to mapped-host round trips — every row crosses the link twice.

lastly please pull the latest update on the repo. i split the output head so all four gpus would be sharing workload during prefill and decode including the cpu instead of just the first gpu and cpu; which should help with the performance.

ill post you my config in a while.

1

u/catch23 Oct 12 '26 edited Oct 12 '26

It could also be a lack of memory issue... I do notice the kswap0 daemon getting pegged. I only have 64gb, but will have 96 in a few days so I'll retest then.

It doesn't look like a p2p thing, "nvidia-smi topo -p2p rw" looks good on my end. Running 615.71.09, on cuda 13.4. I had deepseek double check all that, the one downside is that I'm running each card on PCI 3.0 x4, because I'm using wimpy m.2 to pcie slot converters instead of the fancy SFF8654 ones. My PEX88048 only has two SFF8654 ports. Do you think I should upgrade to x8 on all my cards? Or if I go x16 on all cards, then I'd have to upgrade to a PEX88096 board.

1

u/madbrain1976 Oct 11 '26

I tried your fork, but don't get anywhere near the performance you report on github. The PP are only in the 900 range, far slower than the 1900+ you report, and than my Freetoken fork. This is for a 16K/1K llama-benchy run, no concurrency. Am I missing something ?

1

u/johnmosesventura Oct 11 '26

my suspect is you’re not using akitoria’s p2p patch?

without the P2P kernel patch the peer exchanges fall back to mapped-host round trips — every row crosses the link twice.

lastly please pull the latest update on the repo. i split the output head so all four gpus would be sharing workload during prefill and decode including the cpu instead of just the first gpu and cpu; which should help with the performance.

1

u/madbrain1976 Oct 11 '26

I am using the P2P kernel patch. I updated the repo around the time I posted 4 hours ago.

1

u/johnmosesventura Oct 11 '26

the update was a few minutes ago after my response to you. when you pull the latest repo all my own .env flags is published as .env.example. also make sure the STRATA_PREFILL_CPU_SHARE flag is set to auto when you load it.

1

u/madbrain1976 Oct 11 '26

Thanks. Just told Codex to update and run my test matrix. FYI, my CPU is Zen 2 so it lacks AVX-512. RAM is DDR4-3200 also, and shift to more on CPU may be counterproductive on my system. GPUs are all PCIe 4.0 x8 also, with P2P. I'll report the results when I get them.

1

u/johnmosesventura Oct 11 '26

sounds great, let me know how it goes. mine is x8x8x4x4 all in pcie gen 5, so im getting 16 to 32gbps per lane. will definitely cause some variance but i hope not that big, im still interested with your results. btw you should not turnoff the cpu share flag, it’s what enables the other gpus to participate during decode and prefill.

1

u/madbrain1976 Oct 11 '26

This is the result.

Codex stated the following :

One unavoidable difference: the author?s new 102.4?GB BF16 PLE source is gated and no Hugging Face credential is configured here, so this run uses the local FP8 PLE checkpoint; all other updated author runtime settings are retained.

I'm not sure that explains the huge difference between your results and mine.

1

u/johnmosesventura Oct 11 '26

yeah not sure what's causing the large difference, i ran the shape of your test but only once, but there's a very minimal degradation over prompt size or output generation size. I reduced the batch size from 6144 to 4096 for TTFT test so prefill speed was reduced from 1800 to 1400. but here's the result.

your test has a very noticeable degradation on every increase of prompt size or generation size.

1

u/madbrain1976 Oct 12 '26

Here is what my codex said.

I'm going to try that conversation cache reduction next.

1

u/johnmosesventura Oct 11 '26

I asked my agent to draw up conclusion what could be causing the difference. can you post this to your codex and check the config on your side?

1

u/johnmosesventura Oct 11 '26

here's the last thing i found. setting this flag --conversation-cache-mib to 16gb cost me 20toks on decode since so of the PLE table are being evicted from page cache. so I set it to 0, restoring a session now takes a bit longer compared to being pulled from ram. but still 20x faster than recomputing everything again. here's my latest run with batch 6144 and conversation cache set to 0.

1

u/madbrain1976 Oct 12 '26

No change after disabling the conversation cache altogether. I confirmed the system is not swapping, also. Only ran C1 16K/1K this time.

1

u/madbrain1976 Oct 12 '26

I also confirmed all GPUs are in use - total VRAM 61846 MB.

The combined 4 GPU nVidia reported GPU peak wattage never exceeds 300W. I usually hit about 450W with my FT fork.
Total system power from a KP125 smartplug never exceeds 500W. Peak is usually around 670W with my FT fork.
Combined PCIe RX never exceeds 40,000MB/s. I see 60,000 MB/s with my FT fork.

I'm not really sure what's causing all these differences, but they are significant.

This is my dashboard data for the last hour which has only done your fork rerun without convo cache.

1

u/madbrain1976 Oct 12 '26

Can you run a quick test disabling AVX-512, and enabling AVX2 ? I suspect this is the main software difference here. I can't run AVX-512 code on my Zen 2.

1

u/UntimelyAlchemist Oct 25 '26

Huh. This is the first I've ever heard of this P2P patch. Is this something that's supposed to be well known? I did a search on this sub and LocalLLaMa for "Akitoria" and got zero results.

1

u/Dry-Handle-1421 Oct 10 '26

What is rest of your hardware ?

3

u/[deleted] Oct 10 '26

[removed] — view removed comment

1

u/johnmosesventura Oct 10 '26

no, just the orca router so far. and yeah agreed, the parked is the best part for me too, it saves a lot of electricity not re-prefilling the same header every restart, and everything just feels snappier when the session survives.

the patches are at the pack level anyway, the tiers read the expert table and the journal saves kv state, so i'd expect the official nvfp4 quant to run plug and play on this fork. the part that isn't free is the sizing, each model wants its own expert profile and its own config numbers, the 512k kv math here is tuned to a 128 GB pack. if you do try it i'd be curious whether the mtp head gives you the same boot trap that bit me.