cd /news/large-language-models/ninfer-rtx-4090-native-cuda-llm-infe… · home › topics › large-language-models › article
[ARTICLE · art-176831] src=discuss.huggingface.co ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

NInfer RTX 4090 – Native CUDA LLM inference on Windows, up to 326 tok/s with Qwen 27B and DFlash2 in short benchmarks

An independent maintainer released NInfer-all v0.1.4, a stable, GPU-tested Windows build of native C++/CUDA 13.4 LLM inference optimized for the RTX 4090's SM89 architecture, reporting up to 326.41 tok/s decoding Qwen 27B with DFlash2 K7 speculative decoding on a single 24GB GPU. The benchmarks, run with 2048 prompt tokens and 128 timed decode tokens, show Qwen 27B IQ3_S at 70.38 tok/s without speculation, 242.59 tok/s with MTP K5, and 257.13 tok/s with DFlash2 K5, while Ternary Bonsai 2.5 reached 291.69 tok/s (PTQ1_0, MTP K3) and 323.88 tok/s (PQ2_0, MTP K3); the maintainer cautions these are short synthetic engine benchmarks, not guaranteed real-world serving speeds. The Apache 2.0 build adds quantized KV cache (rk4v4, rk8v4), hybrid prefix caching, and OpenAI- and Anthropic-compatible APIs, and the maintainer is seeking feedback from RTX 4090 owners running local coding agents at 64K–192K contexts.

recommendation

Tune speculative-decoding depth rather than maximizing it: on RTX 4090, DFlash2 K7 hit 326.41 tok/s on Qwen 27B versus 269.33 tok/s at K9, so benchmark each K value before committing.

more in playbook: Inference and self-hosting
read2 min views7 publishedNov 26, 2026

Hey everyone,

I’ve been working on an independently maintained version of NInfer-all, specifically optimized for the RTX 4090 and its SM89 architecture.

The goal is to get as much performance as possible out of a single 24GB GPU while running larger local models, especially for coding and long-context workloads.

I’ve just released v0.1.4 as a stable, GPU-tested Windows build.

Features:

Native C++/CUDA 13.4 inference

RTX 4090 / SM89 optimizations

DFlash2 and MTP speculative decoding

Qwen3.8 27B and Ternary Bonsai 2.5 support

Quantized KV cache (rk4v4, rk8v4, etc.) Hybrid prefix caching

OpenAI- and Anthropic-compatible APIs Portable Windows binaries

Apache 2.0 license

Recent RTX 4090 benchmarks:

Model / Backend Decode
Qwen 27B IQ3_S – No speculation 70.38 tok/s
Qwen 27B – MTP K5 242.59 tok/s
Qwen 27B – DFlash2 K5 257.13 tok/s
Qwen 27B – DFlash2 K7 326.41 tok/s
Qwen 27B – DFlash2 K9 269.33 tok/s
Bonsai 2.5 PTQ1_0 – MTP K3 291.69 tok/s
Bonsai 2.5 PQ2_0 – MTP K3 323.88 tok/s

These are short synthetic engine benchmarks with 2048 prompt tokens and 128 timed decode tokens, not guaranteed real-world serving speeds. The methodology and measurement data are publicly available.

I’ve also built a project website with an interactive VRAM calculator, launch command generator, model downloads, installation guides and benchmark results.

Project website: NInfer-all RTX 4090 | Local LLM inference on Windows & CUDA Credit to the original NInfer and NInfer-all developers. This project builds on their work.

I’d love to hear feedback from other RTX 4090 owners, especially people running local coding agents with 64K–192K contexts.

If you try it, please share your results, even if they’re worse than expected. I’m interested in finding bottlenecks and improving the engine further.

── more in #large-language-models 4 stories · sorted by recency
── more on @ninfer-all 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ninfer-rtx-4090-nati…] indexed:0 read:2min 2026-11-26 · —