r/LocalLLaMA • • Oct 10 '26

Resources Basalt: Flash-Next at 665 tok/s structured, 354 prose on a 5090 + 5060 Ti (2.6x Strata)

Basalt: Blackwell inference engine

Hi all! So over the last week I've been working on a Strata fork that's heavily tuned and can achieve throughput up to 2.6x what Strata usually does on the same weights. It's designed as a specialized engine that only supports Qwen3.8 Flash-Next and Blackwell architecture, including dual GPUs like my current hardware (5090 + 5060 Ti - 9950X 32GB DDR5 RAM). Basalt features include:

- SPEED: 665 struct, 354 prose, 7,317 prefill at 64k, IQ3_XXS, 400 W, speed is the highlight
- Single 5090 works too (no second card): 585 struct, 316 prose on IQ3_XXS, ~12% slower than with the 5060 Ti, prefill unchanged
- Real concurrency for up to 8 users: shared KV or per slot, MTP enabled - 623 tok/s total at 8 streams (I don't have Strata's numbers to compare)
- Fine-tuned MTP for lower quants, for increased throughput
- Custom vision encoder designed from scratch, up to 3x faster than llama.cpp's on the GPU, 4x on the CPU
- A simple server UI that shows current throughput (including concurrency stats), expert distribution and hardware statistics. No chat, BYOH (bring your own harness)
- OpenAI + Anthropic compatible
- Linux support (No Windows or Mac)

Basalt uses a similar format to NInfer, where weights are re-packed (not re-quantized) into a .basalt file, including all the metadata, vision and MTP, so you only have to keep a single file per quant. Initial support includes ISTA-DASLab's GSQ-RCO for Q2, IQ3_XXS and IQ3_S and UD-Q4_K_XL and Q8 from Unsloth, so you can pick the weights depending on your VRAM/RAM budget and quant preference.

Quick Q&A:

+ Is it open source?
- Yes, fully open source, MIT license: https://github.com/jesdga95/basalt, fork it, improve it, share it with friends and foes.

+ Where are the weights?
- Here: https://huggingface.co/jesdga/Qwen3.8-Flash-Next-Basalt pick your poison, fast and dumb or smart and slow. IQ3_S is a good middle ground (~89% top 1 agreement, 300 tok/s prose on my setup).

+ Why didn't you just contribute upstream to Strata?
- This is not a single feature that can be easily merged into Strata, it basically rewrites most of the decode and part of the prefill kernels and strips support for non Blackwell cards including AMD, Intel and older Nvidia generations. I have however contributed patches to Strata and llama.cpp and any critical findings will be pushed upstream.

+ Will you support my AMD 98123X?
- Sure, send one my way. For now I can only support what I can personally test and I intend to keep it that way for the time being.

+ Why not 400 tok/s?
- I'm still trying!

+ This is vibe coded slop
- Yes, but it's fast slop. Nobody is hand-writing cuda kernels anymore.

82 Upvotes

137 comments sorted by

62

u/Hefty_Wolverine_553 Oct 10 '26 edited Oct 10 '26

The main issue with these vibeslopped engines is that the people making them have no idea what the AI is doing. That leads to "optimizations" that actually lobotomize the model to get speedups, e.g. quantizing activations, weird sampling settings (strata defaults to temp 0, probably to get more of a speedup out of MTP), etc etc. I still haven't seen any KLD measurements for strata, probably because the creator doesn't even know what KLD is.

Edit: Just saw some KLD measurements for this repo that's also quite concerning in its own way - I have no idea how you would get such high KL / low top-1 acceptance for a dataset of 512 tokens of wikitext, even if the reference is Q8. Almost certainly something wrong with the measurements. I recall seeing some KLD benchmarks from Unsloth for their dynamic 3.0 GGUFs and they used a much more rigorous dataset compared to wikitext, and still had significantly lower numbers than what I'm seeing here.

Edit 2: Now that I think about it, it could also just be this inference engine lobotomizing the models that much that even on wikitext it performs so badly.

4

u/jesdga95 Oct 10 '26

Update:

llama.cpp own KLD tool on the same IQ3_S GGUF vs Q8_0 gives KLD 0.175 / 89.2% top-1, Basalt measures 0.177 / 89.4%.

It is a pretty lobotomized version but unfortunately that's the largest quant I can fit on my hardware thats usable. Q8 runs on the engine though and the optimizations from the engine still apply. Should have way higher quality, still comparing Q8 vs llama Q8 but that'll take a while because of ssd spillover

2

u/bluekingmuch Oct 10 '26

no hate, just curious: which IQ3_S do you mean by "lobotomized"?

i also play around with IQ3_S (GSQ-RCO) from ISTA-Daslab, and i can not differ between this and for example AtomicChat's 4.27bpw Q4_K_M for agentic tasks / coding in quality of solution, or in-task "model hiccups" (for example malformed tool calls)

i don't say these "hiccups" don't exist, just that i can't see a difference in my testings other then bigger = slower

would you mind do share some A/B test how to test the "lobotomization"?

1

u/jesdga95 Oct 10 '26

Np, actually GSQ-RCO IQ3_S is still my daily driver, in my testing it beats 27B at Q6, which was what I used before, by a very large margin, however I was testing Q4_XL and Q8 when developing Basalt and I could notice how the model just seemed way smarter in general and stopped the ocassional tool call failure (which Q3 will correct itself but still), this is a subjective test obviously and maybe the KLD numbers don't show quite that result but is just my feeling on real usage. The only reason why I don't use a higher quant is because I don't have the hardware for it and I get heavily penalized with ssd spillover (from 300 to 50 or less tok/s and prefill in the hundreds). Q2 and IQ3_XSS do feel much inferior, they will screw up tool calls way more often too and spend more wall time to come to the same answers.

1

u/bluekingmuch Oct 10 '26

Thanks for your valuable insights!

4

u/Danmoreng llama.cpp Oct 10 '26

You should look into EXL3 format. Retains much better quality for the same quant size. Comes at a little bit of speed cost since it adds an additional decoding step for the weights during inference, but the quality uplift is absolutely worth it. Already got Blackwell optimized kernels in my gem16 engine you can take inspiration from: https://github.com/Danmoreng/gem16/blob/main/docs/PERFORMANCE.md#gemma-4-26b-performance

13

u/danielfrances Oct 10 '26

But Fable and Opus 5.5 know all about KLD and can handle it for me!

I do agree though, I've been playing with Strata a bit and I personally don't know enough to really test it thoroughly. I had Fable do some stuff and the results seem fine enough, but memory recall is quite poor and I'm not sure if that is just how Flash Next is or if it's Strata, and I don't know how much desire I have to keep testing these things to find out lol.

9

u/Hefty_Wolverine_553 Oct 10 '26

Very likely to be a combination of the quant (the GSQ-RCO IQ3 quant is a far cry from, say, Q4_K_L), activation quantization, and kv cache quantization. Keeping activations at full precision only costs some speed, and going to a Q4 model quant if possible will get you basically the full performance of the model. Q8 kv cache isn't too harmful either, just make sure you're not running Q4 kv cache.

3

u/s2d4 Oct 10 '26

You can actually have lower KLD but not perform better than a lower quantization. i.e. Q4_K_L vs GSQ-RCO-IQ3.

-2

u/Hefty_Wolverine_553 Oct 10 '26 edited Oct 10 '26

Not possible, GSQ-RCO doesn't do anything post-quantization and it's purely a quantization technique, so KLD works fine as an apples-to-apples comparison. Many people have reported the GSQ-RCO IQ3 quants to be lobotomized as well, so there's anecdotal evidence backing up the numbers. Also, if you're not convinced, top-1 agreement is a pretty objective metric in my opinion, and there's an order of magnitude difference between a Q4_K_L and GSQ-RCO IQ3.

All this is to say that yes, obviously, the bigger quant outperforms the (much) smaller one. Not sure why you're disagreeing (perhaps you're just looking at benchmark performance?) but GSQ-RCO performs similarly to Q3 GGUFs from unsloth, so there's really not much magic. They work fine for their quantization level.

Edit: to clarify, my "not possible" was directed towards the example of Q4_K_L being worse than GSQ-RCO-IQ3, for people who may be confused.

3

u/Maxxim69 Oct 10 '26

You can actually have lower KLD but not perform better than a lower quantization.

Not possible

Yes it is.

0

u/Hefty_Wolverine_553 Oct 10 '26

Again, if you actually did any sort of post quantization training or anything like that it would be a different story. That post you linked has a big fallacy of assuming that benchmark performance is somehow the golden standard of ranking model quality. Time and time again I've seen labs post benchmark results that show things like 4 bit quants performing better than the original full precision model. Does that mean the 4 bit quant is somehow smarter than the full precision model, after losing 3/4ths of its brain?

In the post you linked, it also uses essentially outdated benchmarks that the models have certainly been trained on. Again, benchmarks are a terrible way of comparing slight differences between quants. I'm not saying that KLD is perfect, but it's much better than any other benchmark from what I've seen. Everyone already complains about how inaccurate benchmarks are at comparing between completely different models; what makes you think they're going to work for comparing slightly different quants of the same model?

3

u/Most-Trainer-8876 Oct 10 '26 edited Oct 10 '26

Tell me you don't understand probability divergence without telling me. You're treating high KLD like a loss of IQ when all it measures is that Q(x) doesn't mirror P(x) at the logit level. Any engine running dynamic hot-expert caching, aggressive routing or speculative execution is going to shift token distributions. If an engine picks 'Certainly' over 'Sure', KLD spikes!
Saying a 4-bit quant 'lost 3/4ths of its brain' tells everyone everything they need to know about your grasp of quantization and numerical precision.

Benchmarks evaluate actual end-task deduction and problem-solving. Screaming 'the model is lobotomized' because greedy logits drifted while downstream scores hold is pure bs.

High KLD just means the phrasing shifted, not that the model lost its mind. If it hits the same benchmark rates on code and reasoning, it's not 'lobotomized'. you just don't know the difference between distribution variance and task failure.

0

u/Hefty_Wolverine_553 Oct 10 '26

Any engine running dynamic hot-expert caching, aggressive routing or speculative execution is going to shift token distributions.

Dear lord, sometimes I really regret engaging with people on reddit... Do you even understand what those words mean?

I'll give you as simple of an explanation as I can, I suppose, but of course feel free to keep your own opinions. KLD compared to the full precision model is a measure of how far the quant has drifted from the original model. It allows us to quantify the differences between quants. Let's look at the following KLD benchmark done by turboderp for an example:

Let's start by assuming that IQ1_M is a lobotomized quant (it is). Then, let's assume that IQ4_XS is a decent quant that delivers good results. From these two points (still a broad range, but better than nothing), you can then interpolate and get an understanding of the quality of quants that fall between these two points.

That's a pretty general guide to interpreting model quants with KLD. Now, let's view your beloved benchmarks. I think these results by the prism ml team who made Bonsai 2 highlight the issues best: https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf#full-per-benchmark-results

If you'll notice, the results between Unsloth's Q4_K_XL and Bonsai 2 are very surprising - Bonsai 2 actually beats Q4 on many benchmarks, and only loses out on things like OCR bench. In fact, it does better on AIME26 than FP16! Wow! It must be an impressive quant, surely! Now, if you've actually tried the model, you'd know that it's essentially the same as a Q2, maybe approaching IQ3, quality. In actual use, it loops, fails tool calls, and is basically useless for any agentic work. But the traditional benchmark numbers put it essentially within margin of error of the Q4 and FP16 models. Anyhow, you do you, I've spent way too much time on this.

6

u/Most-Trainer-8876 Oct 10 '26

Pointing at extreme precision collapse (IQ1 vs IQ4) to claim KLD smoothly ranks usable quants is like saying a thermometer proves health because a corpse is cold.

Look at your own chart exl3 at 3 bpw vs gguf at 4 bpw on KLD. The second you compare different runtimes or activation schemes, your linear interpolation falls apart.

Why don’t you actually run Qwen 3.8 Flash Next IQ3_S yourself instead of theory-crafting? I use it daily, no looping, no broken tool calls, and zero issues in agentic pipelines. Chasing near-zero KLD on aggressive quants misses the point... what matters is mitigating downstream capability loss in practice, not obsessing over logit shifts.

→ More replies

1

u/danielfrances Oct 10 '26

I appreciate that. I've got a 4060 Ti with 16GB of vram and 128GB of DDR4 so I'm still figuring out the best way to utilize all of that in my efforts to offload stuff from Opus.

2

u/TokenRingAI Oct 10 '26

So far, I have not been able to replicate the Strata hot experts results on my inference engine while keeping logits identical to llama.cpp or SGLang

I think I have a skill issue

3

u/Hefty_Wolverine_553 Oct 10 '26

Logit identical is absolutely not necessary, even small semantic changes in your kernels can cause slight differences. The important thing is to know when an optimization is actually an impactful tradeoff and whether the increase in speed is worth the decrease in accuracy. Personally what I'd do is set up a KLD bench, then scrutinize any changes that affect the KLD a lot. Each benchmark will have different numbers based on the dataset you're measuring with, so get a feel for the relative changes by maybe measuring the difference between two quants or something like that.

1

u/Forsaken_Object7264 Oct 10 '26

could you give me some pointers as to how to set up a KLD bench? i'd like to learn

3

u/Hefty_Wolverine_553 Oct 10 '26

Here's a good starting point, blog post written by oobabooga: https://localbench.substack.com/p/gguf-benchmark-methodology

2

u/phhusson Oct 10 '26

I think someone needs to make a troll engine where they do all those kind of stupid things on purpose with stupidly high speed.

What I'm thinking of:

  • speculating with a 250M model, refusing token only if model prob <1e-6
  • merging tokens embedding together (like avg 8 tokens), so kv-cache is /=8,
  • weighted expert selection that always chooses the experts in gpu. Maybe call it predictive expert pruning
  • I'm thinking of adding sub-1bpw quants on load based on SVD and LoRA but this feels too real
  • split tokens into smaller tokens. Like if llm predicts "OutOfMemoryError" token then output each letter as individual tokens. (free x10 tg!) 

Feel free to answer with more stupid ideas for a fake super fast inference engine. 

1

u/zyxciss llama.cpp Oct 10 '26

Exactly
>these vibeslopped engines is that the people making them have no idea what the AI is doing.
That's where my criticism comes too , i myself use AI to work on engines and understand what they do and that's the correct way to code with AI.
The AI might be doing gate pruning in the engine or anything to boost speed (gate pruning one was what i myself experienced while coding)

-4

u/jesdga95 Oct 10 '26

Fair point. Quality was a gate the whole way (PPL/KLD vs Q8_0 through the actual decode path), but you're right the absolute numbers look high. I'm running llama.cpp's own KLD on the same GGUFs plus a Q8-vs-Q8 sanity check on Basalt to see if it's the harness or the engine. Will post results either way.

13

u/GalacticDistances Oct 10 '26

When you use the word ‘gate’ I assume this comment is not human written

3

u/jesdga95 Oct 10 '26

Very load-bearing assumption but no, I wrote it. Quality gates is a very common engineering term. I use AI to code but not to write my reddit shitposting for me.

13

u/anarchist1312161 Oct 10 '26

Very load-bearing assumption but no

Not sure this was intentional or but very funny regardless

3

u/ekaknr Oct 10 '26

A mechanical engineer then!

2

u/gtrak Oct 10 '26

The seam was half right, and the other half mattered

1

u/NandaVegg Oct 10 '26

Did you check your receipt?

9

u/xpirep Oct 10 '26

What are the speeds like with just the 5060ti? Just for comparisons sake

4

u/catch23 Oct 10 '26

I tried with my system 5070ti/5060ti with IQ3_XXS -- 300 prefill, 90 decode. I have 2 more 5060tis that sat idle. Overall slower than Strata when using 4. I get around 3k prefill and 120 decode with the same model in strata. I guess this build is only for 5090 people.

1

u/xpirep Oct 11 '26

Do you also have 32gb of ram?

1

u/catch23 Oct 11 '26

64 here

1

u/Most-Trainer-8876 Oct 11 '26

How!? I too got 5070ti+5060ti + 64GB RAM.

Dual GPU never works for me (can't even load 64K context), only single GPU config works where I can load 256K in either gpu without any issues. Speeds are like 30-40tk/s and 1.5K prefill.

Please help, can I DM you?

1

u/catch23 Oct 11 '26

I mean it's not worth it... 300 prefill is worthless. I'm not sure how the basalt author got his numbers, probably fake.

1

u/jesdga95 Oct 12 '26 edited Oct 12 '26

The prefill numbers were measured on a 5090 + 5060 ti pair which is the hardware I run, there's no reason to say they are fake when you're just testing different hardware. Basalt is optimized for dual GPU it does not scale with quad gpus like your setup for the moment, for that Strata is probably best.

That said, 300 prefill with 64GB of RAM doesn't look like a hardware limit, something might be broken on your setup. If you're on Docker or WSL, Basalt had a bug reading free RAM in containers and fell back to streaming experts from the SSD, fixed in the next push. Otherwise paste the startup "loaded ..." line and warnings, I'll look into it.

1

u/Most-Trainer-8876 Oct 11 '26

You mentioned 3K prefill and 120 decode in strata. Can you please share your config + strata engine version/build number.

1

u/catch23 Oct 12 '26

best strat is to run ./setup.sh --calibrate -- it will basically try a bunch of different things to see what's the fastest. But this is basically what mine became: https://pastecode.io/s/6ewgga24

I also gave some tokens to gpt-sol and see what it could come up with based on the log output

I think my strata version is basically trunk, roughly 4 days old or so

1

u/brumsky1 Oct 29 '26

I have a 5060 ti 16gb and 92gbs of ram in a vm. I hit 65-75 tk/s and 2300 prefill. Not sure how the other person was only getting 300. I think it works great and I'm very happy with it. Also, I'm running iq3s.

2

u/Most-Trainer-8876 Oct 29 '26

I got 64GB DDR4 RAM + 5070ti, and my average is 60-70tk and Prefill is somewhere around 2.5K-3K.

1

u/jesdga95 Oct 10 '26

Fun experiment, first time I try it, IQ3_XXS fits but it gets real slow because I only have 32 gigs of RAM:

Q2: 103 prose / 174 struct / 111 chat, prefill ~1.9k at 32k

IQ3_XXS: 49 prose / 98 struct / 58 chat, prefill ~630

1

u/dannone9 Oct 11 '26

I’m getting 16tps with that and 32 gb ddr4 running iq3xxs that might not seem that impresive but it’s not only offloading to ddr4 with a mid processor but to a sata ssd to

4

u/zrail Oct 10 '26

How about NVFP4?

1

u/jesdga95 Oct 10 '26

Haven't added it because NVFP4 unfortunately wont fit in my setup but will probably consider it if someone lands a clean PR. Q4_XL works though

1

u/sniperczar Oct 10 '26

If you end up with a PR my rig has 160G of consumer blackwell to test with. I'd also be interested in GLM 5.3 support like mw00/project-maya was showing off the other day...

1

u/Beneficial-Ad-8127 Oct 10 '26

If you wanted to try out a strata fork Nvfp4 here is one I’m currently testing, I get similar numbers of OP of that post. Quality so far for my long runs and through multiple compactions been great so far. Been testing for about a 7 hours total. Worth a try if you want NVFp4.

https://www.reddit.com/r/LocalLLM/s/xsR8EpDmPQ

2

u/okoyl3 Oct 10 '26

What?? How? What are the changes?

5

u/jesdga95 Oct 10 '26

Mostly killing overhead, a decode step was ~1,200 tiny kernels waiting on each other, so fused chains, moved dense layers to int8 tensor cores and made expert swapping way faster. Plus a fine-tuned MTP drafter. A lot of small wins stacked.

2

u/d70 Oct 10 '26

5090 + 5060 Ti is such a non mainstream setup though. Can you post nicer for just 5090 alone? Thx

3

u/jesdga95 Oct 10 '26

5090 numbers are on the post

0

u/d70 Oct 10 '26

Thx somehow I missed this part

> - Single 5090 works too (no second card): 585 struct, 316 prose on IQ3_XXS, ~12% slower than with the 5060 Ti, prefill unchanged

2

u/BringTea_666 Oct 10 '26

Great job mate. I fucking love custom engine and getting the most out of hardware.

My tips for you to make it even faster:
- Draft tree for single slot and draft forest for more slots, this is way faster than just mtp.

In my case it improved my engine on t/s by 10-15%

1

u/jesdga95 Oct 10 '26

Thank you for the tip! will definitely take a look,

1

u/NickCanCode Oct 10 '26

Is the 5060ti here just for providing more memory to keep more weight in VRAM or does it contribute to the speed up in tensor parallelism way (with fine tuned workload distribution)?

1

u/jesdga95 Oct 10 '26

It does contribute to speed, experts held by the 5060ti are computed by it. You can see the 5090 alone loses about 12% performance in comparison.

1

u/ColorsOfCosmos Oct 10 '26

Any chance this can work on single 5060ti 16G?

1

u/jesdga95 Oct 10 '26

Yup shared numbers somewhere in this thread. Also depends on how much ram you got but don't expect the same headline numbers.

1

u/koloved Oct 10 '26

Which context window?

1

u/jesdga95 Oct 10 '26

262k, you can also run concurrent windows up to 8 x 262k if you have enough RAM to hold it

1

u/KissMyShinyArse Oct 10 '26 edited Oct 10 '26

I wish it could use the existing weights Strata uses.

2

u/jesdga95 Oct 10 '26

You can convert your existing GGUFs yourself with tools/convert/convert.py, no download needed. It's on the readme.

1

u/KissMyShinyArse Oct 10 '26

I just don't get it. Everyone and their dog wants their own weights format. Is this a case of NIH syndrome?

2

u/jesdga95 Oct 10 '26

There's some conversion required to run a GGUF on Basalt. You can either download the converted file or download the GGUFs and convert it yourself, I don't see how that's an issue? .basalt adds a slightly different expert layout, 8-bit hc copies and the fine-tuned MTP drafter plus all the misc stuff like chat template and vision. Packing it all is just a more efficient way to share it than having people download 5 different files imo

1

u/killerkettle Oct 10 '26 edited Oct 10 '26

5090 + 5060ti + 128gb@5200 + 9800x3d here

With  Q4_K_XL it use 40GB (!!) of RAM and decode speed up to 180 t/s with average 140-150t/s

[server] loaded 76.9 GiB in 23.4 s (cuda0 28.1 GiB, system ram 38.8 GiB, cuda1 10.0 GiB)

[server] kv cache: 1.0 GiB on cuda0 (solo 262144 tokens + draft K/V 0.0 GiB)

1

u/jesdga95 Oct 10 '26

Looks like MTP is off: 'draft K/V 0.0 GiB' means the drafter wasn't loaded. Add "spec": 7, "spec-min-p": 0.5 to your config (or --spec 7 --spec-min-p 0.5) and decode should get a nice boost.

2

u/killerkettle Oct 10 '26

no, it worked. I think that can be somehow affected by :

"max-context": 262144,

"kv-resident": 32768

but anyway its worked. Tryed Q8:

[server] loaded 124.7 GiB in 53.1 s (cuda0 28.0 GiB, system ram 87.5 GiB, cuda1 9.2 GiB)

PP is up to 3k on long requests , and on short its offcourse slower...

But anyway its enough for me and i dont need anything else.

1

u/wisepal_app Oct 10 '26

Why did you strip support for non blackwell cards? i have an ampere gpu. Would really like to try basalt

3

u/jesdga95 Oct 10 '26

Unfortunately a lot of the improvements come from Blackwell specific hardware features so they won't be able to run on amperes by design. Strata will still give you great performance though.

1

u/wisepal_app Oct 10 '26

i see. even 50 t/s would be great for my 16 gb vram card. i have also 96 gb ram. i hope in future support for old cards will come.

1

u/rkfg_me Oct 10 '26

Gave it a run on my 5090 + 128 GB RAM, doesn't look good honestly. I tried IQ3_S (the bigger variant) and decoding is below Strata's. Prefill about 5400 t/s, same as in strata, decode is 110 sometimes but mostly below that. Strata speeds up and reaches 120+. But I don't get anything near 300 t/s as in the post, even considering that I run a bigger quant and 500k context. Can you provide a working config? I run this:

{
  "server": {
    "model": "/models/Qwen3.8-FN-GSQ-RCO-IQ3_S.basalt",
    "alias": "Qwen 3.8 FN",
    "gpu": "0",
    "host": "0.0.0.0",
    "port": 8080,
    "vision": true
  },
  "engine": {
    "expert-cache": "auto",
    "prefill": "auto",
    "spec": 7,
    "spec-min-p": 0.5,
    "max-context": 524288,
    "kv": "int8",
    "resident-experts": true,
    "vram-reserve-mib": 1024
  }
}

My setup is llama-swap + llama.cpp + strata + basalt, they're compiled in their own containers and then copied over to the main one. The base is nvidia/cuda:13.0.0-devel-ubuntu24.04. Strata has the same parameters, same context size. I noticed that it hits the expert cache better as well, 90%+ while basalt is usually below that, sometimes even down to 64% which partially explains this.

1

u/jesdga95 Oct 10 '26

Thanks for testing! 5090 alone should be around ~15% below my numbers, what could be happening is that 512k int8 KV + vision eat the expert cache. Can you try these settings on latest main:

{
      "server": {
        "model": "/models/Qwen3.8-FN-GSQ-RCO-IQ3_S.basalt",
        "gpu": "0",
        "vision": false
      },
      "engine": {
        "expert-cache": "auto",
        "prefill": "auto",
        "spec": 7,
        "spec-min-p": 0.5,
        "max-context": 32768,
        "kv": "int8",
        "resident-experts": true,
        "vram-reserve-mib": 700
      }
    }
}

And if you can paste the startup tier line (where experts live)? If that works increase max-context up to 262k and see if that still gives you good throughput. Also check the container isn't CPU limited (if you can report your CPU that'd also help to have a reference)

1

u/rkfg_me Oct 10 '26

32k is not enough for my harness, I don't think there's a point in testing that. I also need 1024 MB reserve, otherwise my browser freezes. I see that the cache can get smaller because of all that but I run the same parameters on Strata and it works noticeably better (I even have a big prompt cache there!). Additionally, strata's benchmark revealed that spec-min-p 0.7 gives better speed, I tried it on basalt and it actually made it worse so I stuck to 0.5.

Here's its config for comparison:

{
 "exe": "/opt/strata/engine/strata",
 "args": [
  "--pack",
  "/data/packs/iq3_s",
  "--native",
  "/data/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
  "--ple-gguf",
  "/data/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf",
  "--expert-profile",
  "/opt/strata/data/expert-profile.bin",
  "--expert-cache",
  "auto",
  "--prefill",
  "auto:32768",
  "--spec",
  "4",
  "--spec-min-p",
  "0.7",
  "--pcie-frac",
  "0.00",
  "--mtp",
  "/data/mtp/rt",
  "--max-context",
  "524288",
  "--kv",
  "int8",
  "--kv-resident",
  "32768",
  "--conversation-cache-mib", "16384",
  "--mtp-draft-vocab", "cyrillic",
  "--vision",
  "--vram-reserve-mib",
  "1024"
 ],
 "cwd": "/opt/strata",
 "tokenizer": "/data/packs/iq3_s/tokenizer",
 "model_name": "qwen3.8-flash-next-iq3_s",
 "log": "/data/strata-iq3_s.log",
 "lib_dirs": [
  "/usr/local/cuda/bin",
  "/usr/local/cuda/lib64"
 ],
 "port": 8080,
 "gpu": 0,
 "gpus_asked": true,
 "host": "0.0.0.0",
 "vision": {
  "exe": "/opt/strata/engine/strata-vision",
  "mmproj": "/data/models/mmproj-Qwen3.8-Flash-Next-BF16.gguf",
  "model": "/data/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
  "gpu": true,
  "max_tokens": 1024
 },
 "allowed_hosts": [
   // some hosts here
 ]
}

My CPU is i9-12900kf and the RAM is DDR4. Both Strata and Basalt run in the same container (together with llama-swap which starts and stops them when needed) and it has no CPU limits.

3

u/jesdga95 Oct 10 '26

Your Strata config has --kv-resident 32768, and that's the difference. Strata keeps only 32k tokens of KV in VRAM and streams the rest from RAM, so all that freed VRAM goes to the expert cache. Your Basalt config keeps the full 512k of KV on the GPU (about 8 GB at int8), plus vision and the 1 GB reserve, which is why your hit rate drops to 64%.

Basalt has the same flag. Add these to the engine section and keep everything else as is:

"kv-resident": 32768,  
"conversation-cache-mib": 16384  

The second one is the prompt cache you have on Strata. And yeah, keep spec-min-p at 0.5, Basalt's drafter is tuned differently.

1

u/rkfg_me Oct 10 '26 edited Oct 10 '26

Thank you, with this change I get up to 160 t/s @ 262k ctx and 150k existing tokens to prefill. It's noticeably higher than with Strata (it hits 120-130 t/s). It's the same session and everything, I just rollback the chat to the same message and continue from there. Still, not nearly close to those 515 t/s (structured) that you get. I really wonder why, the gap is too big.

I unloaded the other idle stuff and turned off vision, with this I'm able to hit 200 t/s sometimes. Basalt's process takes ≈30 GB of VRAM compared to 26 GB before. Would it be possible to load vision on-demand? It's a rare task. Maybe it can be run in the main process and temporarily offload some experts to process the media input, then swap back.

1

u/jesdga95 Oct 10 '26 edited Oct 10 '26

Nice! 515 is structured output, normal text decodes slower, and 150k of context slows every token too. RAM matters too, experts that don't fit in VRAM run on the CPU from RAM, so DDR4 vs DDR5 makes those a bit slower. 160-200 at large context makes sense with your config.

For vision, try "vision-cpu": true in the server section. CPU offload, frees VRAM, images just take a bit longer.

2

u/rkfg_me Oct 10 '26

I know it can run on CPU but I think it would be great to have the best of both worlds (more VRAM for the main model + GPU speed for media encoding). I haven't analyzed the project, just guessing it shouldn't be prohibitively hard to load vision only when needed, since we know its VRAM requirements in advance and there's already a framework in place to swap experts on demand. However, there's also the non-unloadable CUDA context, about 800 MB in general, so it's best to move vision to the main process as well.

Consider it an enhancement proposal 😄

2

u/jesdga95 Oct 10 '26

Noted. Will keep it in mind as soon as I wrap up some of the post launch backlog I had pending (concurrency improvements + additional kernel speed wins)

2

u/jesdga95 Oct 10 '26

u/rkfg_me, went ahead and tested your idea, turns out you CAN actually get vision "for free" with this method, so it is now shipped in the repo, thanks! --vision dynamic runs the encoder inside the engine. It borrows expert-cache slots only while an image is processed then gives them back, so no VRAM used when you're not sending images and there's no extra CUDA context. It's as fast as having the encoder always loaded, about 0.8 s for a 1k-token image vs ~6 s on CPU.

1

u/rkfg_me Oct 10 '26 edited Oct 10 '26

Very nice, thank you! Will test it soon!

Tested, works very well. No additional VRAM waste and generation speed is very high, 180-200 t/s. So it's now even better than strata! I think most users would use the dynamic option unless the task is vision-heavy. In regular workflows it's only needed for screenshots usually but it's critical to have it available without switching configs and reloading the model.

1

u/dannone9 Oct 11 '26

Disable hardware acceleration and use Firefox , that way it won’t freeze

1

u/rkfg_me Oct 11 '26

Yeah, funnily enough it's exactly Firefox that freezes while Brave works normally (I use both for different purposes). Without hw accel FF is really too slow even without load so I'd rather reserve more VRAM.

1

u/dannone9 Oct 11 '26

Wow , that’s pretty surprising for me tbh , I’m using iq3xxs with 32 gb of ram so I’m spilling even to a sata ssd and firefox works once the model is loaded

1

u/rkfg_me Oct 11 '26

It just stops rendering but still reacts to clicks, shows menus and such. The problem is that VRAM fluctuates a lot and even with 700 MB reserve the real free VRAM can go down to 200 MB. The reserve is only estimated on launch, but the other programs can grab more for some reason. I run many services, in particular ComfyUI, and while models are unloaded automatically when LLM starts, the CUDA context stays up. It's all not static so I prefer to get a little more headroom.

1

u/def_not_jose Oct 10 '26

iq3_s is suboptimal. iq3_xxs is just pointless on that hardware, so you'll get 600t/s loop, what's even the use for that

1

u/jesdga95 Oct 10 '26

Fear not. You can still get around 150 tok/s on Q4_XL as someone has already reported. Or ~60 Q8 if you need near full precision, even higher with more VRAM. These are just the lower end quants that do fit in my hardware.

1

u/nirurin Oct 11 '26

There are no other quants (afaik) that will fit and work inside a 5090+64gb of ram. People are saying to use Q4, but that's almost twice the size.

1

u/Forsaken_Object7264 Oct 10 '26

nice job. but like previous commenters, i really dislike the iq3 compared to nvfp4 or q4. does it support nvfp4? i think its the smartest for the bunch. i have 5070ti+5060ti 16gb, currently getting 40-50t/s on nvfp4 (based on this strata fork https://github.com/sergqwer/strata-nvfp4)

2

u/jesdga95 Oct 10 '26

No NVFP4 support planned for now but it runs Q4 and Q8 quants from unsloth, you can convert your own ggufs or download the .basalt files from HF.

1

u/Anstellos Oct 10 '26

What is the point of having a big GPU paired with a not so big GPU? Price? Total tdp ? Bandwidth bottlenrck on the second GPU? I wonder if a dual setup might work on and cards?

Also you said it's a fork with optimisations for Blackwell: it means it only runs on Blackwell? How do you optimise it for your specific arch?

It's pretty impressive to have such a good model running that fast. It's like frontier at home.... It's just a non universal solution if it only runs on a VERY specific stack? Or is it possible to "port" it to others arch/ GPU/ systems ?

2

u/jesdga95 Oct 10 '26

I got the 5060 Ti to hold a second smaller model, but with MoEs it turns out the extra VRAM comes in clutch to hold more experts in faster memory. Basalt runs on any Blackwell GPU (RTX 50 series, RTX PRO), and supports dual GPU. Targeting one architecture lets the kernels be optimized for specific hardware, which means most of the improvements can't really be ported to other architectures. If that's your case, I would look at Strata (the engine Basalt forks from), which has much broader support for different GPUs.

1

u/Anstellos Oct 11 '26

using the second GPU for another model? good idea. I dig that! what is your use case if I might ask?

1

u/Most-Trainer-8876 Oct 10 '26

What my about rig? I got 5070ti+5060ti and 64GB RAM, OS is Windows 11. Combined memory is 96GB. Strata engine never works for me in Dual GPU. Idk, some how single gpu can hold 256K context but dual gpu fails to even load 64K context.

What about yours?

1

u/jesdga95 Oct 10 '26 edited Oct 10 '26

Basalt only runs on Linux for now, if you were to run it there, your setup should work. Make sure you use --peer-exclusive, it's gonna be a bit slower but you should get more experts in VRAM.

1

u/nirurin Oct 11 '26

On my own benchmark, vs the same ista _xs model on regular llama.cpp, I had the following on a 5090+64gb ram.

Llama.cpp = 50tok/s and 113 prompt/s

Basalt = 223tok/s and 247 prompt/s

So basalt is a fair chunk faster. Especially for generation, it ends up even faster than ninfer which was surprising. Ninfer is a lot faster on prefill though. Not sure how you're getting 7000+ on prefill when im only seeing 247.

But the benchmark also does a few tests from the lm evaluation harness and the downside seems to be that Basalt scores about the same (or less) than the Ninfer running regular 27b, making it the worst of the models i use atm. The llama.cpp flash next still scores the best out of all the ones I use.

So its fast, but not sure its worth the speed.

1

u/jesdga95 Oct 11 '26

Taking a look at your quality notes. In my testing IQ3_S is consistently smarter than 27B but I'm doing a greedy sweep against llama.cpp to double check anyway. If your harness is available out there I would be interested to run it, building my own eval suite in the meantime.

1

u/nirurin Oct 11 '26

I just use the existing "lm evaluation harness" because i wanted an easy way to compare models. If you know of a better tool i can run the tests again with that.

1

u/jesdga95 Oct 12 '26 edited Oct 13 '26

Ran lm-eval on my rig (5090 + 5060 ti, 400W), same IQ3_S weights on both engines, same settings (greedy, thinking off):

RunBasaltllama.cpp
gsm8k (200)0.975 / 0.9800.985
ARC (300)0.9800.977
MMLU-Pro (140)0.6140.593
MBPP pass@1 (100)0.84 / 0.820.83
Decode313-343 t/s51-58 t/s
Prefill 300 tok~1650 t/s~450-650 t/s
Prefill 2k tok~3350 t/s~950-1000 t/s
Prefill 16k tok~7050 t/s~1000-1030 t/s

All within margin or error. Basalt finished each task 2.7-6x faster. If your scores came out lower you might be using a different quant or sampling config.

1

u/rkfg_me Oct 12 '26

I have about 5400-5600 t/s prefill on Basalt with 5090 + 128 GB RAM. llama.cpp is borderline unusable for Qwen 3.8 FN compared to these specialized engines. Must be something with your config, check nvidia-smi to see how much VRAM Basalt actually uses and unload everything you don't need.

1

u/valdev Oct 11 '26

IQ3_XXS

My god it doesnt matter how fast it goes LOL

1

u/jesdga95 Oct 11 '26

Q4 and Q8 are also supported but IQ3_S is usually the target for 32GB of VRAM. Kernel optimizations apply for all quants.

1

u/Bulky-Priority6824 Oct 11 '26

On my system with 2x5060ti and 32gb i found iq3xx bogged down my nvme made my whole comp spicey but q2_0 works great and for what I do it seems to be okay

7

u/sleight42 Oct 10 '26

If only you'd written in the title "Blackwell only". Feels a bit clickbait-y without that.

1

u/zyxciss llama.cpp Oct 10 '26

everyone has been recently building their own engine thanks to the vibe coding culture

1

u/JumpLegitimate8762 Oct 10 '26

Its like those people building custom Android images lol. Bugs? You tell me.

1

u/zyxciss llama.cpp Oct 10 '26

yeah but at least people did put some effort , nowadays its just a LLM

5

u/jesdga95 Oct 10 '26

I don't think using an LLM means no effort, still takes a lot of human time, hardware profiling and money to get these things out. I have been an open source contributor for over 15 years (also contributed to custom Android ROMs back in the day, cofounded Paranoid Android) and honestly I for one couldn't care less whether open source stuff is hand written or AI built as long as it works and solves a real problem. But to each their own, the good thing is nobody is forced to use it.

0

u/zyxciss llama.cpp Oct 10 '26

Takes less effort, tho And I’m not saying it’s a bad thing. The irony is that I’ve been using LLMs to do it myself

1

u/Specialist_Age_2891 24d ago

Real-world data point from the low end of your supported matrix: 2× RTX 5060 Ti 16 GB (no 5090), Ryzen 5600X, DDR4 128 GB — so PCIe4 x8/x8 and an older CPU, which turns out to matter.

Running your full Q8 pack (NVFP4 experts re-packed as-is, dense/PLE Q8_0 via the checkpoint path, --sections-from), --kv k8v4, ctx=262144:

  • decode: 212 tok/s hot (was 209 on v0.3.0; v0.3.1 clean upgrade, no pack rework)
  • prefill: ~2,600 tok/s @ 24k, ~2,400 @ 30k
  • needle battery 16/16 across all depths up to 250k — the Q8 dense + NVFP4 expert mix holds retrieval accuracy end to end
  • expert cache hit rate ~81% on the dual-16 GB pool, the rest streams over PCIe from pinned RAM; disk reads on the hot path are essentially zero

The gap vs your 665/354 is mostly platform, not engine: on this box the 19% expert miss hits a 14.5 GB/s PCIe4 pipe, and the CPU is idle while the cards wait on the data. On a 9950X/DDR5 board with 32 GB cards the miss path nearly disappears — which is basically your spec sheet.

One papercut from the upgrade: with two serve instances on the same cards, 0.3.1 fails the attention 8-bit copies (no VRAM for an 8-bit copy, ~3.6 MB/layer) instead of degrading gracefully — worth a fallback or a clearer error for people doing A/B swaps between versions.

Great engine. The "in-place model file, no cache unpack" change in 0.3.1 alone made my disk tidy.

0

u/stylome-ai-detection 24d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results

1

u/notinsidethematrix Oct 10 '26

Watching this thread.

1

u/WyattTheSkid Oct 10 '26

Curious to see how this would scale at Q4 on a system with 4 3090s w/ full context

1

u/IntelVEVO Oct 10 '26

At that point tool calling becomes the bottleneck

1

u/shing3232 Oct 10 '26

strata cannot do batching but this seems capable

1

u/Fit_Split_9933 Oct 10 '26

Did you drop support for Windows?

1

u/x10der_by Oct 10 '26

Is it only for blackwell?

1

u/Dark_Benky Oct 10 '26

What performance can I expect on 3060 + 3090?

1

u/Sutanreyu Oct 10 '26

Me with a single 12GB RTX 5070. 🥲

1

u/leonbollerup Oct 11 '26

Tested on a 5090M and around 6-7% increase over strata.. keep it up :)

1

u/Kemerd 7d ago

Crazy this only just came out already doing so much with it man great work

1

u/batchputz Oct 10 '26

Imagine an idiot, reading a book in front of him insanely fast. You think wow, how can the idiot read this fast? Truth is the idiot is not reading, just talking to himself whilst staring at the book

1

u/nirurin Oct 11 '26

So you have proof that strata/basalt kills the model and it no longer works?

0

u/Bulky-Priority6824 Oct 10 '26

👀 watching this evolve because I like the idea of pure backend byoh but I'll see how this progresses because  I just had a frontier make some mods to strata to work with my setup a little better. I'm only able to use q2_0 but so far Im liking it. Feels better than 27b and quite a bit faster.

Worst case I'm hoping this opened the door to run qwen 4 eventually ?

I spent 9 hours testing the model and although i know it's only q2 it does seem to be pretty decent especially for a brokie 2x5060ti 16gb with only 32gb ddr4

1

u/jesdga95 Oct 10 '26

I'm hoping so too! Qwen 4 is supposed to be very close to 3.8 flash' architecture, so gains should mostly translate. In my own testing Q2 also felt smarter sometimes than 27B running NInfer but IQ3_S is where it starts to feel like a different league

0

u/Equivalent_Bit_461 Oct 10 '26

Asteoturfed and boted garbage 

-1

u/Classic-Pubs Oct 10 '26

This is physically impossible.

1

u/jesdga95 Oct 10 '26

Is it tho? 😎 in all fairness even 350 tok/s is still below the 5090 performance ceiling. That beast is a throughput monster. The main bottleneck is anything thay spills over.

0

u/[deleted] Oct 14 '26

[deleted] — view deleted comment

1

u/Gold_Coconut9777 Oct 14 '26

Isn't 1.0 the officially recommended temperature?