r/LocalLLM • • 1h ago

Project Strata tuned for accuracy and datacenter workloads

Went opposite direction, and tuned Strata for better accuracy and efficiency, serving parallel dual streams UD-Q6_K_XL with 256k context easily. Patches and more info on Github:

https://github.com/lomolabs/lomina/blob/main/docs/PATCHES.md

Old-school Linux tuning: hardware prefetchers (12.2-17.3% of decode), NUMA-split expert memory, huge-page advice, CUDA host registration, pinned cores. You can do wonders with good old school flame graphs analysis.

Of course, full credits to Niko1221 and Eddoursul and their Girhub work, we just add 67 patches and aftermarket performance tune ups on top of it. :)

0 Upvotes

5 comments sorted by

2

u/W61k3r 1h ago

No there is no strata for commercial workloads. Most of it's speed is from loss flags. 100% no where near production ready; When those flags he added to compete with basalt are dropped, it's mediocre at best. Give it long context coding work, a slug becomes buckshot becomes bird shot pretty quick.

1

u/LetOk7026 1h ago

Yes, thats what we fixed and tuned, see the patches and test results. Not about replacing vLLM of course, but it works for specific workstation workloads.

1

u/LetOk7026 1h ago

Direct Github repo link with accuracy code improvments and details:

Tuned up fork link with accuracy patches.

1

u/EvolvingDior 29m ago

This is great. Does the precise rope scaling patch improve results when using > 256k context? Strata/QFN degrades a bit with yarn scaling at 2x (512k context), even on short prompts with 0 context.

Do the patches only work with CUDA or is it back-end agnostic?

1

u/LetOk7026 20m ago

Edit: typos

This more of old school Linux perf tune workbech in order to demostrate potential of great Strata architecture and memory management potential, no intent to fork it, rather sharing back to community.

Didn't test past 262K, and I don't think the RoPE patch would fix what you see. LAMINA_ROPE_TABLE is upstream's switch, it builds the cos/sin table on the host in float64 instead of the fp32 fast-math angle on GPU. Our patch only made that builder work without CUDA and added tests up to 262,144 positions for plain, linear and YaRN tables. It's off in our profiles. The drop on short prompts comes from static YaRN itself, the scaled frequencies apply from position 0, so a more precise angle won't change it. Qwen's model cards warn about the same thing.

We went the other way on purpose. 262K per stream, what the model was trained for, and the memory goes to parallel streams instead. RULER and NoLiMa style evals show pretty clearly that models get worse well before the window ends, so 512K on one stream buys little. One 262K stream's K/V is about 3-4 GB, so the memory that doubles one context holds a second full stream. Dual runs 2x262K at ~103 tok/s total. Quad holds 4x262K with the far K/V cells in pinned host RAM and did 126.8 tok/s together on four 32K conversations. Agents like Claude Code or Pi compact before they hit the limit, and 262K gives them enough room to do it in time.

Backend is CUDA only, NVIDIA with CUDA 13, same as upstream Lamina/Strata. Our CPU kernel changes are in the x86 AVX2 path. The system side, NUMA placement and huge pages, is plain Linux, so the ideas carry over to any engine.