Advisor / Can it run? / Qwen3.5 4B on 8GB VRAM class (RTX 4060 8GB, 32GB RAM)

Can 8GB VRAM class (RTX 4060 8GB, 32GB RAM) run Qwen3.5 4B?

Measured results for Qwen3.5 4B (4.66B dense) on 8GB VRAM class (RTX 4060 8GB, 32GB RAM), plus what fits and the commands to run it.

51.3generation tok/s (Q8_0 on llama.cpp CUDA, 128-token generation)
3948prompt tok/s (pp512)
5.1 GBQ8_0 + 16k f16 KV, fits fully
7 GBusable on this hardware

Short answer

Yes. Qwen3.5 4B Q8_0 fits fully on 8GB VRAM class (RTX 4060 8GB, 32GB RAM) at 16k context, using 5.1 of 7.0 GB usable, and generates about 51.3 tokens/s in our own run. As the context fills it slows down: 46.3 tok/s with 16k tokens already in context (90% of the empty-context speed), measured. For Q8_0, our bandwidth-only estimate was ~33 tok/s against a measured median of ~51 (35% too pessimistic).

Measured generation speed by quantization

QuantGeneration tok/sRangePrompt tok/sRunsOrigin
Q4 class (median)77.477.4–77.436951includes our runs
Q8 class (median)51.351.3–51.339481includes our runs
Q4_K_M (our run, depth 0)77.43 repeats36953own measurement
Q8_0 (our run, depth 0)51.33 repeats39483own measurement

Generation = tg128 (128 generated tokens, short context). Public rows are medians of community llama.cpp results (sources); our own runs use llama-bench b11658 on a rented GPU.

Speed vs context depth measured

Our own llama-bench runs on GeForce RTX 4060 (flash attention on, 3 repeats): generation and prompt speed with the given number of tokens already in the context.

QuantContext depthGeneration tok/svs depth 0Prompt tok/s
Q4_K_M077.4100%3695
Q4_K_M4k74.396%3622
Q4_K_M16k66.486%3071
Q8_0051.3100%3948
Q8_04k5097%3756
Q8_016k46.390%3192

Alternatives

Faster for Qwen3.5 4B

Other models on 8GB VRAM class (RTX 4060 8GB, 32GB RAM), similar size

Memory and context limits

Q8_0 weights are 4.5 GB; the 16k f16 KV cache adds 0.59 GB. Largest context that fits in 7.0 GB usable:

KV cache typeMax context
f1664k
q8_0128k
q4_0256k

Native limit 256k, 1.01M with YaRN. Full KV cache table for Qwen3.5 4B.

Copy-paste commands

The advisor's pick for this hardware: Q8_0, 16k context.

llama.cpp
llama-server -hf unsloth/Qwen3.5-4B-GGUF:Q8_0 -c 16384 -fa on --jinja -ngl 99
ollama
OLLAMA_CONTEXT_LENGTH=16384 ollama serve
ollama run hf.co/unsloth/Qwen3.5-4B-GGUF:Q8_0

FAQ

How fast is Qwen3.5 4B on 8GB VRAM class (RTX 4060 8GB, 32GB RAM)?

About 51.3 tokens/s for generation (Q8_0 on llama.cpp CUDA, 128-token generation), 3948 tokens/s for prompt processing. Speed drops as the context fills; see the depth table.

How much memory does Qwen3.5 4B need on 8GB VRAM class (RTX 4060 8GB, 32GB RAM)?

The advisor's pick, Q8_0, is 4.5 GB of weights plus 0.59 GB of KV cache at 16k context (5.1 GB), against 7.0 GB usable.

Is the Qwen3.5 4B speed on 8GB VRAM class (RTX 4060 8GB, 32GB RAM) measured or estimated?

Measured: our own llama-bench run on a rented GeForce RTX 4060, including runs with 4k to 16k tokens already in context.

What can I use instead of 8GB VRAM class (RTX 4060 8GB, 32GB RAM) for Qwen3.5 4B?

Nothing with less memory in our list fits it fully. Faster: RTX 5070 12GB (~116 tok/s), RTX 4070 12GB (~89 tok/s), RTX 3060 12GB (32GB RAM) (~63 tok/s).

What is the maximum context for Qwen3.5 4B on 8GB VRAM class (RTX 4060 8GB, 32GB RAM)?

With an f16 KV cache about 64k tokens, 128k with q8_0 and 256k with q4_0, bounded by the model's own limit.

Related

All models on 8GB VRAM class (RTX 4060 8GB, 32GB RAM) · Qwen3.5 4B on all hardware · VRAM tier · all measured pages · leaderboard

Compare: RTX 3060 12GB (32GB RAM) vs 8GB VRAM class (RTX 4060 8GB, 32GB RAM)