🛰️ Daily AI Frontier
‹ back to 2026-11-21

八路并发读提示词等一分钟?降到8.5秒

Anaxagore Efficiency & Systems Anaxagore 2026-11-21
Representative image for 八路并发读提示词等一分钟?降到8.5秒

TL;DR - llama.cpp PR 32342 optimizes prompt prefill for parallel Gemma 4 requests with shared KV layers. It cut eight-way prefill time on an M3 MacBook Air from 63.753 to 8.494 seconds.

  • The patch prunes unnecessary prompt rows per sequence before shared layers instead of processing every row when -np enables multiple slots.
  • On an M3 Air running Gemma 4 E2B Q4_0 with Metal, prefill throughput improved about 7.5×; CUDA testing on an RTX PRO 6000 showed about 2.09×.
  • Validation produced identical argmax results for all 23 tested rows and no scheduler reallocations during speculative decoding tests.
  • Benefits are limited to prompt prefill for compatible KV-sharing models and exclude certain embedding configurations.

view merged work →