PulseAugur
EN
LIVE 14:33:08

llama.cpp PR boosts inference speed by moving sampling to GPU

A new pull request for llama.cpp aims to improve inference speed by moving sampling operations from the CPU to the GPU. This change resulted in an approximate 8% increase in tokens per second for the Qwen3.6:35b model on an RTX 5090, and a 4% boost on a Tesla P40. The performance gains are attributed to reducing the overhead of CPU-GPU data transfer, which is more pronounced on higher-end GPUs with greater memory bandwidth. AI

IMPACT This optimization could lead to faster local inference for users of llama.cpp, especially on consumer hardware.

RANK_REASON This is a code optimization for an open-source project, not a new model release or significant industry event.

Read on r/LocalLLaMA →

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

llama.cpp PR boosts inference speed by moving sampling to GPU

COVERAGE [1]

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

    Llama.cpp PR 8% speed boost

    <!-- SC_OFF --><div class="md"><p>Llama.cpp currently uses cpu based sampling for user with mtp enabled. The PR moves sampling to the gpu, which on a 5090 boasts an 8% increase in tok/s for qwen3.6:35b. I tested it on my P40 and observed a 4% increase inference speed boost.</p> <…