In the DEV Community article “Gemma 4 E2B on a Laptop's Integrated Radeon GPU with llama.cpp Vulkan and a Speculative Drafter,” xbill measures local inference on a Lenovo Yoga 6 with a Ryzen 5 7530U and integrated Radeon graphics. The case is useful for understanding two separate constraints on a small machine: getting the model into the available memory and making each generation step spend less time waiting for the larger model. Original article
A model file and a GPU memory reading answer different questions
The laptop has 8 GiB of RAM, with 2 GiB carved out for the integrated GPU. The author uses a Q4_0 GGUF whose per-layer embedding table is read through a memory mapping. The table makes up about half the model file and stays on the host side. During serving at an 8,192-token context, the graphics driver's dedicated memory counter showed 1,616 MiB in use. That figure describes the carve-out. The driver also reported mapped system memory separately, so the figure gives an incomplete picture of pressure on the laptop's RAM.
In a synthetic benchmark on the same llama.cpp commit, Vulkan generated 32.37 tokens per second versus 25.68 for the six-thread CPU build. The gap for processing the input prompt was larger. A workload that spends much of its time processing input can therefore show a different GPU benefit from a workload dominated by output generation.
How many guesses are worth checking?
In a separate six-prompt comparison on the Vulkan server, the mean decode rate rose from 30.8 to 40.6 tokens per second with a small model proposing up to two tokens ahead. The full model checks those proposals. Trying a third token reduced the gain in that sweep, and the best setting varied by prompt. The benchmark results also give a limited quality check: both settings got 369 of 400 BFCL simple cases correct, and the GSM8K counts were close.
Those measurements used one request at a time. Someone repeating the experiment could keep the same model file and context limit while measuring prompt processing, decode speed, and memory separately. That would make it easier to tell whether a change helped the actual workload or only one part of the benchmark.