r/Qwen_AI • • 20h ago

News Who needs a 5090? Qwen3.8 27B at 264 tok/s and 176K context on 24GB VRAM

Post image
34 Upvotes

Hey everyone,

I've been working on an RTX 4090-focused fork of NInfer, mainly targeting long-context inference, local coding agents, and native Windows support.

NInfer is already an impressive inference engine, but I wanted to see how much performance could be extracted from Ada Lovelace without upgrading to a 5090.

Here are some results from my recent benchmark runs.

## Test setup

- NVIDIA RTX 4090 – 24 GB VRAM

- AMD Ryzen 9 9950X3D

- 64 GB DDR5 RAM

- Windows 11

- Native SM89 / CUDA 13.4

- Huihui Qwen3.8-27B GSQ-RCO IQ3_S Vision

- DFlash2 speculative decoding

- RK4V4 KV cache

- NInfer RTX 4090 v0.1.4

## Long-context DFlash2 benchmarks

All values are decode tokens per second.

| Draft tokens | 64K context | 128K context | 176K context |

|---|---:|---:|---:|

| K5 | 242.75 | 206.39 | 214.87 |

| K7 | **272.74** | **240.60** | **263.93** |

| K9 | 247.57 | 202.86 | 241.25 |

| K11 | 258.70 | 215.03 | 228.06 |

| K15 | 242.20 | 189.58 | 229.13 |

Interestingly, K15 performed best in the separate 32K sweep, reaching 313.16 tok/s, but K7 consistently performed better at longer contexts.

At 176K context, K7 improved decode throughput by approximately 22.8% over K5.

These are controlled engine benchmarks using a fixed corpus, 512 measured decode tokens and two runs per configuration.

## N-gram speculation for coding workloads

I also tested N-gram speculation on copy-heavy C++ refactoring tasks with approximately 21K input tokens.

| Metric | N-gram OFF | N-gram 15 |

|---|---:|---:|

| Decode tok/s | 256.68 | **568.08** |

| Average wall time | 14.83s | **9.16s** |

| Exact outputs | 4/6 | 4/6 |

The outputs were identical between both configurations.

Obviously, 568 tok/s is not general-purpose generation speed, but for copy-heavy code editing, the improvement is pretty interesting.

## Long-context prefix caching

Another interesting result at approximately 175K input tokens:

- Cold request: 72.68 seconds

- Repeated request: 0.441 seconds

- Continued request: 0.399 seconds

- Reused prompt tokens: 175,103

This is particularly useful for local coding agents that repeatedly send large conversation histories.

These are warm-prefix results, not cold inference throughput.

## Concurrent prefill

With a short request arriving while a 64K request was being processed:

- Concurrent prefill disabled: 21.28s TTFT

- Concurrent prefill enabled: 1.16s TTFT

Overall completion time for the request pair remained approximately the same.

## Other features

- Native Ada Lovelace SM89 CUDA builds

- Portable Windows binaries without local CUDA compilation

- OpenAI and Anthropic-compatible APIs

- DFlash2 and MTP speculative decoding

- Quantized KV cache

- Hybrid prefix caching

- Built-in browser monitoring dashboard

- Live GPU utilization, VRAM, temperature and power monitoring

- Draft acceptance and token throughput monitoring

- Experimental CUDA Graph optimizations

- Model-specific launch profiles

## Real-world serving

Across 1,831 completed requests with DFlash2 K5:

- Median decode: 146.6 tok/s

- P90 decode: 215.5 tok/s

- Median long-prompt prefill: 2,345 tok/s

The controlled benchmark results are significantly higher than these real-world serving numbers, so I wanted to include both.

I'm still experimenting with longer contexts, speculative decoding configurations, CUDA Graphs and coding-agent reliability.

The benchmark campaign includes 143 completed measurements, with raw numerical results and reproduction scripts available in the repository. Long-context retrieval accuracy and broader coding quality still need further validation.

Would be interested to see what other RTX 4090 users are getting with NInfer, llama.cpp or ExLlama under comparable conditions.

Fork: https://github.com/spk-c/ninfer-all-rtx4090

Benchmark report: https://github.com/spk-c/ninfer-all-rtx4090/blob/master/docs/performance/rtx4090-v014-long-context-2026-11-26.md

Coding benchmarks: https://github.com/spk-c/ninfer-all-rtx4090/blob/master/docs/performance/rtx4090-v014-coding-2026-11-26.md

Full credit to the upstream NInfer developers and contributors who made this possible.

Hey everyone,

I've been working on an RTX 4090-focused fork of NInfer, mainly targeting long-context inference, local coding agents, and native Windows support.

NInfer is already an impressive inference engine, but I wanted to see how much performance could be extracted from Ada Lovelace without upgrading to a 5090.

Here are some results from my recent benchmark runs.

Test setup

  • NVIDIA RTX 4090 – 24 GB VRAM
  • AMD Ryzen 9 9950X3D
  • 64 GB DDR5 RAM
  • Windows 11
  • Native SM89 / CUDA 13.4
  • Huihui Qwen3.8-27B GSQ-RCO IQ3_S Vision
  • DFlash2 speculative decoding
  • RK4V4 KV cache
  • NInfer RTX 4090 v0.1.4

Long-context DFlash2 benchmarks

All values are decode tokens per second.

Draft tokens64K context128K context176K context
K5242.75206.39214.87
K7272.74240.60263.93
K9247.57202.86241.25
K11258.70215.03228.06
K15242.20189.58229.13

Interestingly, K15 performed best in the separate 32K sweep, reaching 313.16 tok/s, but K7 consistently performed better at longer contexts.

At 176K context, K7 improved decode throughput by approximately 22.8% over K5.

These are controlled engine benchmarks using a fixed corpus, 512 measured decode tokens and two runs per configuration.

N-gram speculation for coding workloads

I also tested N-gram speculation on copy-heavy C++ refactoring tasks with approximately 21K input tokens.

MetricN-gram OFFN-gram 15
Decode tok/s256.68568.08
Average wall time14.83s9.16s
Exact outputs4/64/6

The outputs were identical between both configurations.

Obviously, 568 tok/s is not general-purpose generation speed, but for copy-heavy code editing, the improvement is pretty interesting.

Long-context prefix caching

Another interesting result at approximately 175K input tokens:

  • Cold request: 72.68 seconds
  • Repeated request: 0.441 seconds
  • Continued request: 0.399 seconds
  • Reused prompt tokens: 175,103

This is particularly useful for local coding agents that repeatedly send large conversation histories.

These are warm-prefix results, not cold inference throughput.

Concurrent prefill

With a short request arriving while a 64K request was being processed:

  • Concurrent prefill disabled: 21.28s TTFT
  • Concurrent prefill enabled: 1.16s TTFT

Overall completion time for the request pair remained approximately the same.

Other features

  • Native Ada Lovelace SM89 CUDA builds
  • Portable Windows binaries without local CUDA compilation
  • OpenAI and Anthropic-compatible APIs
  • DFlash2 and MTP speculative decoding
  • Quantized KV cache
  • Hybrid prefix caching
  • Built-in browser monitoring dashboard
  • Live GPU utilization, VRAM, temperature and power monitoring
  • Draft acceptance and token throughput monitoring
  • Experimental CUDA Graph optimizations
  • Model-specific launch profiles

Real-world serving

Across 1,831 completed requests with DFlash2 K5:

  • Median decode: 146.6 tok/s
  • P90 decode: 215.5 tok/s
  • Median long-prompt prefill: 2,345 tok/s

The controlled benchmark results are significantly higher than these real-world serving numbers, so I wanted to include both.

I'm still experimenting with longer contexts, speculative decoding configurations, CUDA Graphs and coding-agent reliability.

The benchmark campaign includes 143 completed measurements, with raw numerical results and reproduction scripts available in the repository. Long-context retrieval accuracy and broader coding quality still need further validation.

Would be interested to see what other RTX 4090 users are getting with NInfer, llama.cpp or ExLlama under comparable conditions.

Fork: https://github.com/spk-c/ninfer-all-rtx4090

Benchmark report: https://github.com/spk-c/ninfer-all-rtx4090/blob/master/docs/performance/rtx4090-v014-long-context-2026-11-26.md

Coding benchmarks: https://github.com/spk-c/ninfer-all-rtx4090/blob/master/docs/performance/rtx4090-v014-coding-2026-11-26.md

Full credit to the upstream NInfer developers and contributors who made this possible.


r/Qwen_AI • • 3h ago

Agent First Impression, not great :/

0 Upvotes

Not sure if this is where this belongs, but I'm a daily local qwen user, great stuff, I use Pi and a gguf. But today I got a month of qwen plus, and in much less than an hour I managed to use 15% of my week. Qwen4 max medium.

My task is not heavy, just installing some mods for a game. At this rate I don't think I'll resubscribe at the end of the month.

At this rate my week would be gone at the end of the day.


r/Qwen_AI • • 7h ago

Funny Qwen Model Glitch

Thumbnail
gallery
0 Upvotes

r/Qwen_AI • • 16h ago

Funny Qwen38 27b hallucinating everything other than coding

Post image
18 Upvotes

Qwen38 27b is unusually bad at anything other than coding and the hallucination rate is just through the ceiling. Just ask it the melody of ANY child song, and it will get it wrong. Never once correct.

I was initially worried it was because that the cluster we used got some bad quant (no it’s q8). Turned out the open router served model is even worse. QFN on the contrary never had such hallucination.

(The melody this qwen replied is nothing like Frere Jacques, rather resembling Yankee Doodle lol)

I guess music recall should be the ultimate benchmark


r/Qwen_AI • • 1h ago

News Lapilli v0.7 (open source): switch between seven models from the page on NVIDIA V100, now in English or French

Post image
0 Upvotes

Lapilli is a port of Basalt to NVIDIA V100 (Volta, sm_70): one binary, seven models, a chat page, and an Images tab for pictures and videos with sound.

New in v0.7:

- A Models card in the page. Start the server with a config file that lists several packs, and the page shows them all: Use switches to one (the server unloads the running model, then loads the other, and requests wait meanwhile), Unload frees the GPUs, Load brings it back. Switching from Qwen3.8-Flash-Next (two V100s) to Qwen3.8-27B (one V100) took 10 s.

- The whole page in English or French: English by default, French in About.

- A long conversation keeps its text: "Longest response, text only" is now the default room kept for the next response.

- A Dockerfile that builds for the V100 on CUDA 12.6.

The engine is the same as in v0.6, byte for byte, so its figures hold:

- Qwen3.8-27B on ONE V100: 86 tok/s writing, 994 tok/s reading a 16K prompt

- Inkling 2 Mini on ONE V100: 121 tok/s

- Qwen3.8-Flash-Next on two V100s: 137 tok/s on long answers

- Images: a 1024x1024 picture in 11.4 s (Qwen Image 2.1 Turbo), a 5 s video with its sound in 59 s (LTX-2.3)

Windows build included, MIT license. Measured on 2x V100-SXM2 32 GB. The README has every figure, the packs and their download links.

Thanks to wzcl1 for the Dockerfile, to Igorxp5, whose fork loaded and unloaded the model from the page first, and to nebod99, ildargiv, Csavoldi, koldfrontier and nkhaooat, who tested Lapilli on their own machines.

Repo: https://github.com/chris83-dev/lapilli-v100

Release: https://github.com/chris83-dev/lapilli-v100/releases/tag/v0.7.0-v100.1


r/Qwen_AI • • 8h ago

Help 🙋‍♂️ Is it possible to make Qwen Abliterated send requests to Claude to handle the the forbidden stuff?

0 Upvotes

The idea is to have Qwen act as the orchestrator and Claude do the actual work.

If Claude refuses, Qwen could rephrase the context, split the task into smaller parts that are less likely to trigger a refusal, and adapt its prompts until Claude accepts.

Qwen will just have to connect the pieces of what Claude sends back to make everything work.


r/Qwen_AI • • 8h ago

News Qoder: 10 new friends on December 2nd

Post image
21 Upvotes

Could it be the open-source model from qwen4?


r/Qwen_AI • • 8h ago

News Taking free 5 customers for 24hours Qwen 3.8 GPU Inference

Thumbnail reddit.com
0 Upvotes

r/Qwen_AI • • 8h ago

Funny bruh

Post image
24 Upvotes

btw is anyone else getting these kind of errors? Or is it just lucky me?


r/Qwen_AI • • 19h ago

Experiment A 52 KB WebAssembly engine that runs Qwen3.5-2B in a browser tab

5 Upvotes

r/Qwen_AI • • 11h ago

LLM Using Qwen2.5 0.5B on Jetson Orin NX with SHAPE visual blocks

3 Upvotes

I teach AI and IoT to students with different backgrounds and levels of programming experience. I needed a way to teach AI, IoT, ROS 2 and programming logic while keeping practical activities accessible to students still learning to code. That need helped shape SHAPE, the visual programming environment I help develop.

This video shows a simple starting point: calling Qwen2.5 0.5B through Ollama on a Jetson Orin NX 16GB, using visual blocks to build the application logic.

The workflow:

  • Records the start time.
  • Sends a prompt to the local model.
  • Waits for the complete response.
  • Displays the answer and records the end time.

For our test prompt—a pizza recipe in three lines—we measured 89.44 tokens/s and 1.80 seconds to the complete response. We used one warm-up followed by two warm runs. These are preliminary measurements for this prompt, not a general assessment of model quality.

The idea is to make model requests part of a wider visual workflow. SHAPE also provides MQTT, REST API and ROS 2 blocks, so this example is a first step toward connecting local AI to device data and robotics applications.

Setup, workflow and results — including separate tests with Ministral and Mistral Nemo:
https://thetactigon.com/docs/ollama-on-jetson-orin-nx-local-llm-benchmark-with-shape/

SHAPE repository and installation instructions:
https://github.com/TactigonTeam/Tactigon-Shape

Have you used a small Qwen model in an MQTT or ROS 2 application? What task did you give it?


r/Qwen_AI • • 2h ago

Discussion dear qwen4

Thumbnail reddit.com
6 Upvotes

r/Qwen_AI • • 10h ago

Training Trained Qwen 3 4b for legel statute identification

Thumbnail
huggingface.co
2 Upvotes