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
14.6K subscribers · median 8K views
Screen recording · confirmed$Likely
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.
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
Details
- Published
- Oct 6, 2026, 9:16 PM
- Length
- 15:27 (927 s)
- Format
- Long-form
- Category
- Science & Technology
- Audio language
- EN
- Quality
- HD
- Captions
- Yes
- Made for kids
- No
- Licensed content
- Yes
- Video ID
- rBBIIBjK8UU
More from The Stack
Reflection AI's 501B Beam Takes On China's Open Models74 views · 1h ago · +48/h
Used Mac Studio Vs New AI Mini PC: Which Is The Better Buy?3.2K views · 2d ago
I Made a Cinematic Ad in Claude (Higgsfield Katana)605 views · 2d ago · +1/h
Local AI Just Got A 1 Trillion Parameter Upgrade (Mistral 4 Large)7.9K views · 3d ago · +19/h
What Would The Ultimate AI PC Look Like?8.6K views · 4d ago · +2/h
5 Free Tools That Make Local AI Actually Useful10.6K views · 4d ago · +14/h
Microsoft Put A 137B Coding AI On A Laptop10.5K views · 5d ago · +4/h
128GB. CUDA. In A Laptop. This Is Insane8.1K views · 5d ago
Statistics from the YouTube Data API, tracked by FameX. Views per hour, revenue and comparisons are FameX estimates.