llama.cpp v1 on an Integrated GPU: Long Prompts Read About 2x Faster, and the MoE Cache Lost to Full Offload
Before/after llama.cpp 1.0 on an Intel Arc 140V (Vulkan): a 4,096-token prompt was read about 2x faster, but only with flash attention on. The MoE cache was slower than putting the whole model on the GPU. Plus a CUDA machine for comparison. This is an English adaptation of an article I originally published in Japanese on Zenn: llama.cpp v1 を内蔵 GPU で試したら、長い入力の読み込みは約 2 倍、MoE キャッシュは遅くなった . It…
In a comparison of llama.cpp v1.0 on an Intel Arc 140V integrated GPU, reading a 4,096-token prompt was about twice as fast compared to the previous version. However, this improvement occurred only when using flash attention. The model's memory offload cache (Moe cache) performed slower when the entire model was placed on the GPU compared to using the full cache.
When comparing a CUDA machine with full GPU offload, the model processed the prompt 1.4-1.6 times faster while using the least memory. The findings were based on tests conducted on two PCs with shared CPU and GPU memory, and the results were averaged over multiple rounds. The primary difference between the two builds was the implementation of flash attention, which significantly impacted the speed of prompt processing on Intel GPUs.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to