PulseAugur
EN
LIVE 11:44:03

llama.cpp patch boosts Qwen context length on AMD GPUs to 149K

A user on Reddit has developed a patch for llama.cpp that significantly increases the context length for models running on AMD GPUs. By optimizing the Multi Token Prediction (MTP) buffer allocation, the patch allows for context lengths of up to 149K tokens for the Qwen 27B model, a substantial increase from the default 64K. This optimization is particularly beneficial for ROCm configurations with multiple GPUs, offering improved performance and context length compared to Vulkan backends, though Vulkan still offers some VRAM savings. AI

IMPACT Enables longer context windows for local LLM deployments on AMD hardware, potentially improving performance on complex tasks.

RANK_REASON User-developed patch for open-source software improving performance.

Read on r/LocalLLaMA →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

llama.cpp patch boosts Qwen context length on AMD GPUs to 149K

COVERAGE [1]

  1. r/LocalLLaMA TIER_1 English(EN) · /u/ea_man ·

    AMD llama.cpp: reducing MTP buffer overhead gave me 64K → 149K context for Qwen 27B

    <!-- SC_OFF --><div class="md"><p>Available context length with and without the patch:</p> <table><thead> <tr> <th align="left">Model: QWEN 27B</th> <th align="left">ROCm stock</th> <th align="left">patched</th> <th align="left">Vulkan stock</th> <th align="left">patched</th> </t…