Urgent.News

What's breaking now, across thousands of outlets.

AI

My local LLM kept thinking in circles, and the fix was downloading a different version of the same model

The wrong quantization turned my local LLM into a circular thinker

My local LLM kept thinking in circles, and the fix was downloading a different version of the same model

During recent months, I have experimented with various locally-hosted language model setups on budget GPUs, mini-PCs, and Raspberry Pi devices. While optimizing token generation rates without compromising reasoning capabilities has been challenging, sometimes these modifications caused my models to enter endless loops and generate incorrect information.

Among the potential culprits are the wrong quantization settings and chat templates. For example, using Q2 or Q3 quantization for models like Gemma-4-12B can significantly enhance performance, but may lead to reasoning penalties and potential loops. My solution was straightforward: download a different version of the same model with appropriate quantization and template configurations.

Quantized model variants, such as Q2, Q3, or Q4, have lighter VRAM requirements (4.2-4.5GB) compared to the unquantized BF16 variant (26.7GB). However, lower quantization rates might reduce accuracy. When using LLMs for productivity tasks, such as tagging notes or generating coding prompts, selecting the right chat template is crucial.

The chat template formats prompts that the LLM understands, and using the wrong template or mixing templates across different models can drastically lower accuracy. Switching to models with mixture-of-experts (MoE) capabilities has further improved my inference tasks. MoE models use a routing mechanism to activate a small subset of parameters, reducing VRAM usage by offloading inactive parameters to system memory via flags like --n-cpu-moe on llama.cpp.

This approach allows for efficient performance even on lower VRAM-capable GPUs, like my RTX 3080 Ti for Qwen3.6-35B-A3B (Q4_K_M) at 24 tokens/second and my GTX 1080 for Gemma-4-26B-A4B (Q4_K_M) at 14+ tokens/second.

Written by urgent.news from XDA Developers's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at xda-developers.com →

More in AI

The hottest AI wearables and gadgets you should know about

We compiled a list of all the hottest AI wearables, including Muse Charm, Bee, Friend, Plaud, and more.

  • Bee pendant records conversations and routines for $49.99 with iOS app subscription
  • Friend pendant serves as emotional support companion for $129 with tone recognition
  • Muse AI wearable from Meta released September with digital avatar Jolly

LazyDesk AI: Let AI Handle the Little Tasks You Keep Postponing

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady We all have those small tasks that we keep postponing: organizing files, reading lengthy documents…

  • LazyDesk AI automates repetitive digital tasks
  • Processes text locally on users' machines
  • Provides control over tools and data

More from Sunday 25 October →