LocalTPS

Can NVIDIA RTX 4090 (24GB) Run Qwen3.8 27B?

Quick Verdict:Partially (with RAM offload) — at 64K context (Q8_0), Qwen3.8 27B requires 32.6 GB vs 24 GB VRAM, offloading 32% of weights to system RAM at ~4.8 tok/s.

Hardware

GB
Memory Type

Model & Context

Dense · 27.3B
HF config.json
16/64 KV · Hybrid Stateunsloth/Qwen3.8-27B-GGUF
Coding Agent Context Presets
65,536 tokens · KV: FP16
Context Window64K / 256K
KV Cache Quant
MTP Speculative Decoding
Painful (Too Slow)

Offloading 32% of weights to RAM (4.8 tok/s). Switch to Q4_0 KV Cache or use Cloud API.

Generation Speed
4.8 tok/s
Offload Penalty Applied
Time to First Token (TTFT)
400.6 sec
32,000 prompt tokens
VRAM Status
RAM Offload
32.6 / 24 GB
68% GPU · 32% RAM
VRAM Allocation BreakdownTotal Required: 32.56 GB / 24 GB VRAM
VRAM Limit (24 GB)
Model Weights (GGUF):27.05 GB
KV Cache:4.22 GB
Runtime Overhead:1.29 GB
Offloaded to System RAM (+8.56 GB)

Technical FAQ

How much VRAM does Qwen3.8 27B need at 64K context?

With Q8_0 GGUF weights (27.05 GB), FP16 KV Cache (4.22 GB), and runtime overhead (1.29 GB), total VRAM required at 65,536 tokens is 32.56 GB.

Is NVIDIA RTX 4090 (24GB) fast enough for Cline or OpenCode with Qwen3.8 27B?

Rated "Painful (Too Slow)" at 64K context: 4.8 tok/s decode and 400.6s TTFT for 32,000 prompt tokens. Offloading 32% of weights to RAM (4.8 tok/s). Switch to Q4_0 KV Cache or use Cloud API.

How much VRAM does Q4_0 KV Cache save on Qwen3.8 27B?

Switching KV Cache from FP16 to Q4_0 at 64K context cuts KV memory from 4.22 GB down to 1.34 GB, lowering total memory to 29.68 GB (6.6 tok/s).

Is it cheaper to run Qwen3.8 27B locally or via Cloud API / RunPod?

For full-time coding agent usage (5M input + 1M output tokens/day), OpenRouter costs ~$49.72/mo, while renting NVIDIA L40S 48GB on Vast.ai costs ~$119.68/mo. Upgrading to NVIDIA H100 GPU accelerator (SXM card) (64GB) ($2,240 MSRP) pays back in ~71.7 months.