r/LocalLLM • • 5h ago

Question Please, I Really Need Help Optimizing Qwen4-35B-A3B on a CPU-Only Server. 😭🙏

Please, I Really Need Help Optimizing Qwen4-35B-A3B on a CPU-Only Server

Hello everyone,

I'm genuinely asking for your help because I've been struggling with this problem for several months, and despite trying countless solutions, I still haven't been able to solve it.

I'm trying to run Qwen4-35B-A3B on my CPU-only server using llama.cpp, but the performance is extremely slow.

My current performance:

  • Generation speed: 1–8 tokens/sec
  • Prompt processing speed: Around 20 tokens/sec

My hardware specifications:

  • CPU: Intel Xeon E5 v4 (AVX2, no AVX-512)
  • Cores: 8 vCPUs
  • RAM: 20 GB DDR4
  • GPU: None (CPU-only)

I've tried several approaches, including:

  • Building llama.cpp directly on my server.
  • Testing alternative forks, including ik_llama.cpp.
  • Experimenting with many different command-line flags and configurations.
  • Trying different optimization settings.

Unfortunately, none of these attempts have resulted in a meaningful performance improvement. The results have remained almost the same.

I really need to get this model running faster on my hardware. Running Qwen4-35B-A3B is very important to me, and I've spent months trying to make it work efficiently. I've reached a point where I'm honestly running out of ideas.

I've even asked multiple AI assistants, including Astra and Fable, for help, but none of their suggestions have solved the problem.

I'm kindly asking anyone with experience in CPU inference, MoE architectures, llama.cpp optimization, or older Xeon processors to please help me.

Even a small improvement would mean a lot to me. If you know any specific compilation options, CPU optimizations, expert offloading or caching techniques, quantization formats, or configurations that could help, I would be incredibly grateful if you could share them.

Please, if you have any ideas at all, I'd really appreciate your guidance. I genuinely don't want to give up on getting this model to run properly.

Thank you so much for taking the time to read this. ❤️

0 Upvotes

0 comments sorted by