I turned my 8GB laptop into an AI server, and my data doesn't leave my home network

I turned my 8GB laptop into an AI server, and my data doesn't leave my home network

Published Nov 30, 2026, 10:30 AM EST Abhinav pivoted from a career in banking to pursue his first love in writing. Even while working full-time, he continued contributing as an editor-at-large, a role he has held for more than 7 years. A lifelong tech enthusiast who has built three gaming and productivity powerhouse PCs since 2018, his passion for technology keeps him closely following the semiconductor industry, from NVIDIA and AMD to ARM. His MSc dissertation explored how artificial intelligence will reshape the future of work, reflecting his curiosity about the wider social impact of emerging technologies. Last year, Sam Altman admitted that nothing you tell ChatGPT is legally privileged. Over the past few months, OpenAI has since started choosing the ads it shows free and Go users based on what they discuss with it. That makes this a bad time to start trusting cloud AI with personal, identifiable data that will sooner or later feed a ginormous ad machine. I didn't need new hardware or a subscription to another AI giant to opt out, though. My Lenovo Legion 5 Pro already hosts my Jellyfin and Immich servers, and its RTX 3070 has 8GB of VRAM, which, thanks to quantization-aware builds of Gemma 4 E4B and a quantized KV cache, is enough to run it through llama.cpp at faster than reading speed. The model runs quite well on my laptop, but I decided to take it a step further and make it an AI server that any device on my Wi-Fi can use, without my data ever leaving my home network. Gemma 4 E4B fits on the RTX 3070 with room to spare The bigger 12B model was my first pick, but the E4B is five times as fast Turning my 4-year-old laptop into an AI inference server took an open-source runtime known as llama.cpp, and the actual model weights themselves. Its llama-server tool runs the model and serves a web UI that any browser can open. If you have ever hosted a local model via llama.cpp yourself, you're halfway there already. I started with Gemma 4 12B, whose 6.72GB QAT build looked like a good fit for 8GB of VRAM. Unfortunately, it wasn't, and part of it was because I forgot to account for the VRAM that Chrome and other applications were using in the background. The vision encoder as well as the context cache also needed room on top of the model, so the 3070's VRAM filled up to 7.6GB, and the 12B managed a measly 13.4 tokens per second. That's too slow for a shared server and no good for anyone. Then, I moved down to Gemma 4 E4B using Unsloth's QAT UD-Q4_K_XL build and its 992MB vision encoder, so that the model can parse photos, along with the PDFs that I sent its way. That leaves enough room for an 8K token context with a Q8_0 KV cache, and it runs blazing fast at 73.12 tokens per second. To make it accessible to any device on my home network, I used the following command: llama-server.exe --model gemma-4-E4B-it-qat-UD-Q4_K_XL.gguf --mmproj mmproj-BF16.gguf --host 0.0.0.0 --port 8080 --ctx-size 8192 -ngl 99 -ctk q8_0 -ctv q8_0 --jinja --temp 1.0 --top-p 0.95 --top-k 64 Every device on my Wi-Fi now has a private AI My iPhone only needs a Safari tab to use it As you may have already noticed, the trick involved in doing this is quite simple indeed. The --host 0.0.0.0 flag I use during launch on PowerShell launch command turns the laptop into a server by letting other devices connect, so any other device like my iPhone, a MacBook, or another PC on Wi-Fi can open the laptop's IP address on port 8080 and start chatting with the model, with no app or account needed. Because the vision encoder is also loaded, the chat page can also send PDFs to the model as images rather than plain text, which keeps tables and layouts intact. I sent it an old paystub I had from my iPhone and asked how much National Insurance had been deducted, and it found the figure under the Deductions section quite effortlessly. To save myself from looking up the laptop's address every time, I gave it a static IP in Windows' Wi-Fi settings. The router can no longer assign it a new address after a restart, so every device I have can keep a single bookmark that opens the chat page whenever llama-server is running. Only devices on my home network can reach it And it can keep answering with the internet unplugged Now, you might reasonably think that serving a model to every device on my home Wi-Fi sounds like a privacy risk on its own. I had the same concern, which is why I locked it down. The first time I opened the chat page on my iPhone, nothing loaded, because Windows Firewall was blocking llama-server. Turning the firewall off fixed the problem, but rather than keeping it left off permanently, I added an inbound rule for llama-server.exe in the Windows Defender Firewall with Advanced Security, limited to Private networks and scoped to the local subnet. Devices on my Wi-Fi can get in, and nothing outside my home network can. The model also remains reachable even when the internet is gone. I set the laptop's static IP without a gateway, which cuts it off from the internet but keeps it on my Wi-Fi, and then sent the model a prompt from my iPhone, to which it responded to at 89.07 tokens per second. There are simpler ways to do it, but I still prefer llama.cpp For those who are interested in hosting their local models this way but are finding themselves put off by the complexity of this setup, there are simpler ways to use the local models on your PC and access them on mobile devices on your network. A friendlier way is through LM Studio's LM Link feature, which I have tried as well. It does, however, need an LM Studio account, and every device has to have the app installed. For this reason, I prefer llama.cpp, because it asks for nothing more than a command on my laptop and one bookmark per device. llama.cpp Llama.cpp is an open-source framework that runs large language models locally on your computer.

Original Source

Read the full article at Xda-developers →

KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.