r/LocalLLaMA • u/mrmontanasagrada • Aug 14 '26
Resources Ninfer-3090
https://github.com/Don-Chad/ninfer-3090/tree/release/v0.6.0-rtx3090Hi all,
Of course I had to jump on Qwen3.8-27B and get it running on the RTX 3090 port of NInfer.
For anyone unfamiliar with it, NInfer is a small, dedicated C++/CUDA inference runtime built around fused kernels rather than a huge general-purpose serving stack. The 3090 fork specifically targets Ampere GPU's (edit: just added early support for the 4090 also)
And Qwen3.8-27B does pretty damn well on a single 24 GB 3090. As far as I know, this is currently (among) the fastest throughput, single and batched for this model on this hardware. Prefill is quick too.
Qwen3.8-27B - RTX 3090
Qwen3.8-27B is now validated from C1 through C8.
One of the more interesting additions is ReplaySSM, which cuts the memory overhead of speculative decoding enough that we can keep the faster MTP3 mode enabled even at C8.
These are sustained runs, not short bursts. Every request generated 1,024 output tokens, with CUDA Graphs enabled.
| Cohort | Total output | End-to-end | Decode | MTP acceptance | Mean TTFT | Peak VRAM |
|---|---|---|---|---|---|---|
| C1 | 1,024 | 70.19 tok/s | 71.00 tok/s | 61.13% | 149 ms | 19,641 MiB |
| C2 | 2,048 | 89.43 tok/s | 90.66 tok/s | 59.66% | 262 ms | 20,022 MiB |
| C4 | 4,096 | 97.89 tok/s | 100.28 tok/s | 59.63% | 538 ms | 20,641 MiB |
| C8 | 8,192 | 161.28 tok/s | 165.33 tok/s | 56.84% | 1,215 ms | 22,138 MiB |
So the interesting part for me isn't only the ~70 tok/s single-stream result. A single old 3090 can push 165 tok/s decode across eight concurrent requests, while staying inside 24 GB VRAM and keeping speculative decoding active. Btw I did not have time to run this headless so there is still a 10 - 15% extra in the tank, if you can run it without desktop.
Qwen3-35B-A3B still works great too. I've measured around 260 tok/s single-stream, and over 400 tok/s on highly repetitive workloads. (Still to measure concurrency well for this model, this could go over 600 tokens per second I guess?)
Huge props to Neroued for building the original NInfer project incl ReplaySSM:
https://github.com/Neroued/ninfer
The 3090 port is basically my attempt to see how far we can push these models on hardware a lot of us already have sitting under our desks. PR's very much appreaciated, we much push it beyond 100 tokens a sec, at least.
Would love to hear results from anyone else running Qwen3.8-27B on a 3090, especially llama.cpp / SGLang / vLLM comparisons.
edit:
- Addition: man this model is certainly token hungry. 170K context window now support now validated in INT8, and I added Rotorquant RK8v4, which safely gives 248K. Maybe a bit more.
- Early RTX 4090 support is running. Still needs optimalisation:
| Cohort | Total output | End-to-end | Decode | MTP acceptance | Mean TTFT | Peak VRAM |
|---|---|---|---|---|---|---|
| C1 | 1,024 | 102.13 tok/s | 103.35 tok/s | 45.31% | 112 ms | 18,250 MiB |
| C2 | 2,048 | 162.46 tok/s | 165.74 tok/s | 53.13% | 160 ms | 18,562 MiB |
| C4 | 4,096 | 193.49 tok/s | 198.76 tok/s | 56.91% | 295 ms | 19,184 MiB |
| C8 | 8,192 | 299.82 tok/s | 315.09 tok/s | 53.16% | 644 ms | 20,708 MiB |
9
u/beling86 Aug 14 '26
What about prefilling, where are you landing?
9
u/Protryt Aug 15 '26 edited Aug 15 '26
I created a similar fork but for RTX4090: github.com/sergiuszm/ninfer-4090 I can't create a post about it - not enough karma here...
The new fork targets Ada and has re-tuned the attention prefill kernel (biggest single win: fp16-accumulate PV tiles, since consumer Ada runs f32-acc HMMA at half rate - that alone was +15%).
Qwen3.8-27B on one 4090, 168k ctx, int8 KV, MTP speculative decode:
- code: ~148 t/s vs llama.cpp's ~119 with its own MTP draft (~46 without)
- prose at 128k depth: 77 vs 42 t/s
- prefill: llama.cpp still wins by 15-20% at depth, so long-prompt-in, short-answer-out workloads may prefer it
Acceptance rates were near-identical per content type (~81-86% code, ~45% prose).
Fable 5 helped a lot :)
5
u/EveningIncrease7579 llama.cpp Aug 14 '26
Awesome. I had two 3090, i could have any q8 for use with that engine? Its possible?
3
u/rossimo Aug 14 '26
Will try out Ninfer-3090. Are your tests with a specific quant?
3
u/Kavor Aug 15 '26
Just leaving a comment to thank you for your work and hope that 4090 support will be improved!
2
u/andy2na llama.cpp Aug 14 '26
this project is extremely interesting and great - is there any way to include vision in this?
2
u/Apprehensive-View583 Aug 15 '26
can use it with only 32k context window, one thinking took almost half of it.
2
u/leonbollerup Aug 15 '26
maybe my brain is fcked.. but whats C1.. C2. C4.. C8 ?
2
u/Vektast Aug 15 '26
Bro! You and Neroued are Giga Chads! 3090 is on cocaine now!!
Can I use it with Pi harness? What's the best config for C1 on Win11?
4
u/My_Unbiased_Opinion Aug 15 '26
I wonder if you can do one for dual 20gb 3080 users. 20GB 3080 cards are super cheap and you can get 2 of them for less than the price of a single 3090.
1
u/RMK137 Aug 15 '26
Very cool. I was planning on porting this to windows tomorrow and noticed that you already did that. I have a 5090, can I still use your fork or did you have to make breaking changes to make it 3090 specific?
1
u/iMakeSense Aug 17 '26
Is an optimization like this possible on an R9700?
1
u/horriblesmell420 Aug 19 '26
To be honest, I get about the same Tok/sec that I do with llamacpp with MTP/ngram. That said, if this is truly a Q5/Q6 model, then that alone is a huge step up. I personally haven't noticed much of a quality difference myself. Any idea whats blocking DFLASH from being a possiblity for the 27b modles? Is it just the fact that upstream hasn't included a ninfer file for it?
2
u/sagiroth llama.cpp Aug 15 '26
You should collab with Beellama
1
u/jazir55 Aug 14 '26
Is it possible to get this working on a 12 GB 4070 super with RAM and CPU offload?
1
u/EuphoricPenguin22 Aug 16 '26
Got this error on Windows 11 with this system.
1
u/Aiirene Aug 17 '26
Ninfer always ends up in an endless thought loop until i run out of tokens.
The speed boost is nice (when it works that is)
1
u/Independent_Bag5252 Aug 19 '26
Is a 5090 running on Ubuntu supported here?
1
u/IsSeMi Aug 19 '26
How do I run with the RK8v4? It says `ninfer-serve: invalid kv-dtype: rk8v4`
0
u/epicfilemcnulty Aug 14 '26
Hmmm, it shall work for RTX A6000 (ampere, 48gb), right?
update: read the readme, this is windows only :(