A Lenovo Legion 5 Pro runs Gemma 4 E4B through llama.cpp, allowing devices on the same Wi-Fi to use the model without sending data outside the home network.
A Lenovo Legion 5 Pro with an RTX 3070 and 8GB of VRAM is being used as a local AI server through the open-source llama.cpp runtime. Devices on the same Wi-Fi network can open its browser interface without a separate app or account.
The larger Gemma 4 12B QAT build used 6.72GB of VRAM but reached only 13.4 tokens per second after accounting for the vision encoder, context cache and other applications. The setup was changed to Gemma 4 E4B with Unsloth’s QAT UD-Q4_K_XL build and a 992MB vision encoder.
With an 8K-token context and a Q8_0 KV cache, Gemma 4 E4B reached 73.12 tokens per second. Its vision capability can process images and PDFs, including documents sent from an iPhone through the local browser interface.
The laptop was exposed only to the private Wi-Fi subnet through a Windows Defender Firewall rule. A static IP provided a persistent bookmark, and removing the network gateway allowed the model to remain reachable over Wi-Fi when the internet was disconnected; a test response reached 89.07 tokens per second.