Tech & AIThe StackYou Can Run A 27B AI On A 16GB GPU At 100K Tokens/S [NInfer]

You Can Run A 27B AI On A 16GB GPU At 100K Tokens/S [NInfer]

Long-form15:27Science & Technology

Published Oct 6, 2026, 9:16 PM · 1w ago

The Stack
The Stack
14.6K subscribers · median 8K views
Views
6,354
+2 views/hour
Likes
80
1.3% of views
Comments
9
0.14% of views

Checked every 12 h while the video is this age · last check 7h ago · next in 242 min. YouTube itself updates public counts with a short delay.

Open on YouTube
Views / hour now
2
measured 7h ago
Peak views / hour
2
7h ago
Avg views / day
652
since upload
First 24 hours
—
not tracked from upload
vs channel median
0.8×
Rank in channel
#12
of 21 tracked
Engagement
1.4%
likes + comments / views
Est. ad revenue
$44–$102
lifetime, $7–16 RPM

Views over time

2 readings · line: total views · bars: views gained per hour

Description

Run Qwen 3.8 27B with a 100K-token context on one 16 GB RTX 4080: NInfer's 3-bit GSQ model, compressed conversation memory and custom CUDA engine explained. Yes, a 27-billion-parameter model with 100,000-token context fits on a single 16GB RTX 4080. Developer roofkid published NInfer-4080, a specialized CUDA inference engine running Qwen 3.8 27B compressed to 3 bits using GSQ quantization from ISTA-DASLab. The reported speeds: about 2,720 tokens/second reading short prompts and about 1,970 at the full 100K (under a minute for a 100K prompt), and about 150 to 200 tokens/second writing code (around 100 on prose) in daily use. The 262 tokens/second headline came from benchmark text that repeats itself; a real coding prompt measured 136. On the same card it reads nearly twice as fast as llama.cpp, and the developer reports it ahead on writing at every length, by a smaller margin. This breakdown covers how 27 billion weights plus 100K tokens actually fit into 16GB (model compression to 3 bits, KV cache compression to ~2GB), what those speed claims really mean (prefill vs. generation, speculative decoding, benchmark text), and what it costs: the engine rejects other GPU architectures at compile time, requires 64-bit Linux + CUDA 13.1+, runs one request at a time, and reserves 5.5GB of pinned system memory. One developer's transparent measurements on one card, with no independent reproduction yet, but honest about where test numbers don't match real use. For builders working with massive documents on an RTX 4080, and anyone curious how modern coding agents (this one was built by directing DeepSeek V4.1 Flash inside the Pi agent tool, for about $13 of API spend) can beat general-purpose inference software. Chapters: 0:00 Intro 1:27 Memory 3:40 Speed 6:15 Comparison 8:43 Builder 10:01 Your card 12:13 Setup 13:59 Conclusion Tools & resources mentioned: - NInfer-4080: https://github.com/roofkid/ninfer-4080 - Qwen 3.8 27B GSQ (ISTA-DASLab): https://huggingface.co/ISTA-DASLab/Qwen3.8-27B-3Bit-GSQ - Qwen 3.8 27B NInfer (roofkid): https://huggingface.co/roofkid/Qwen3.8-27B-GSQ3-NInfer - llama.cpp: https://github.com/ggml-org/llama.cpp - NInfer-4090 (upstream fork): https://github.com/sergiuszm/ninfer-4090 - NInfer-5060 Ti (community fork): https://github.com/freedomNTD/ninfer-5060ti About The Stack The Stack helps you build with AI. Each video takes one tool, model, or workflow and shows how it works in a few focused minutes, with the real benchmarks and real costs. We go deep on Claude Code and Cursor for AI coding, AI agents and MCP servers, the open-source AI tools and GitHub repos most people miss, RAG and vector search, fine-tuning, and running local LLMs on your own machine with Ollama and LM Studio. We compare models like ChatGPT and Claude, test AI automation with Zapier, Make, and n8n, and flag the tools that actually ship. Subscribe for new breakdowns: https://www.youtube.com/@the-stack-ai?sub_confirmation=1 #quantization #local llm #qwen
Tags
aiai codingai for developersai toolsbuilding with aikv cachellmllm quantizationlocal ailocal llmquantizationqwenqwen 27bqwen 3.8qwen 3.8 27brun ai locallythe stackagentic aiqwen3.8 27bai agentNinferself hosted aiclaude code alternativebest local llmqwen aiqwen3.8-27bqwen 3.8 maxllm testbest local llm for coding

Statistics from the YouTube Data API, tracked by FameX. Views per hour, revenue and comparisons are FameX estimates.