Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

How to Run Qwen 3.6 Locally at Maximum Speed Using Llama.cpp

Nichonauta 1 min read

Learn how to set up and run the Qwen 3.6 35B model on your own PC using llama.cpp, optimizing VRAM and RAM usage for surprising performance even on limited hardware.

Key Steps

  • Download and configure llama.cpp – Follow the official documentation to set up the environment.
  • Select the right quantization – Use Q4_K_M or Q5_K_M to balance quality and speed.
  • Offload layers to GPU – For systems with 8GB VRAM, offload 20–30 layers; for 12GB+, offload 40+ layers.
  • Enable KV cache optimizations – Use --cache-type-k q4_0 and --cache-type-v q4_0 to reduce memory usage.
  • Adjust context size – Start with 4096 tokens and increase if memory permits.

Performance Tips

  • Split the model across GPU and RAM using the -ngl and -c flags.
  • For pure CPU inference, use -t (threads) equal to your CPU core count.
  • Monitor token generation speed; expect 2–5 tokens/second on a mid-range GPU.

Note: The Qwen 3.6 35B model performs best with at least 16GB system RAM and 8GB VRAM. With proper tuning, it can run on older hardware.

Troubleshooting

  • If you see a "vision encoder" error, download the correct mmproj file for Qwen 3.6.
  • For slow generation, lower the context size or reduce the number of GPU layers.

Watch the full video for a step-by-step demonstration.

React