Local AI without the cloud on a PC with 8 GB RAM: a DevOps engineer runs llama3.2 at 4 tokens/s
A DevOps engineer from Yekaterinburg has spent six months running AI on an old PC with 8 GB of RAM so that contracts never leave the premises. The phone serves only as a screen. The GTX 650 cannot run modern CUDA, so llama3.2 computes on the CPU at about 4 tokens (word fragments) per second. For weak hardware, a small model with RAG works better than trying to squeeze in a 14B model. Phone-to-PC traffic goes through Tailscale, and 0 ports are open to the outside. phi4:14b does not fit in 8 GB, while tinyllama delivers about 8 tokens/s. A used RTX 3060 12 GB for 25–30k rubles would deliver 20+ tokens/s, according to the author's estimate.
AI-processed from Habr AI; edited by Hamidun News
Imagine you need to run a contract or a dataset containing personal data through a neural network, and you cannot hand it over to someone else's server. A DevOps/SRE engineer from Yekaterinburg has spent six months solving this problem: he built a setup where AI runs on his own old computer, while an Android phone acts as a thin client. The computer is modest: 8 GB of RAM and a GTX 650 graphics card, which does not accelerate modern neural networks.
So the llama3.2 model, with 3 billion parameters, computes on the CPU and produces about 4 tokens per second. A token is a fragment of a word, so responses appear slowly, but a request such as "Highlight the risky terms in the contract text" completes without a single byte leaving the machine.
The author immediately cautions that this is a working open-source prototype, not a ChatGPT killer and not a commercial product.
Where everything is computed
The author's first honest correction: the language model does not run on the phone. The Redmi A2+ with Android 10 Go is 32-bit and has 2–3 GB of memory. Even the vendor's native app crashes there with a black screen. The author checked this via ADB rather than assuming: the logs contained errors loading native libraries that are incompatible with a 32-bit processor. Lesson: check the ABI and logcat first, and only then build hypotheses about DNS and proxies.
Therefore the phone serves as the interface and local storage, while all the heavy work runs on a PC with Ubuntu 24.04. That is where Ollama, a Flask orchestrator, PostgreSQL, Valkey, monitoring with Prometheus and Grafana, and CrowdSec, Suricata and Wazuh live. The phone and PC are connected via Tailscale (WireGuard), and no service listens on 0.0.0.0: everything is bound to 127.0.0.1, and network_mode: host is prohibited in Docker. After every reboot, the author checks open ports with the ss command. A separate warning: uvicorn and node bind to all interfaces by default, and without an explicit --host 127.0.0.1 the service is visible from the internet.
What fits in 8 GB and why the GPU does not help
The GTX 650 is based on the Kepler architecture, and NVIDIA's drivers for it ended with branch 470, so modern CUDA is unavailable. Ollama runs on the CPU via llama.cpp, while the graphics card sits idle. From the author's table:
- llama3.2:3b (Q4_K_M) occupies about 3 GB of RAM and delivers about 4 tokens per second;
- tinyllama 1.1b takes about 1.5 GB and roughly 8 tokens per second;
- nomic-embed-text takes about 1 GB and is used for vector search in RAG;
- phi4:14b requires about 10 GB and does not fit.
The text contains a contradiction regarding qwen3:8b: in one section it is described as crashing for lack of memory (only swap and degradation), while the table lists it as running at 2 tokens per second with 6 GB. It probably launches, but with great difficulty, so this figure should be treated with caution.
The author's practical conclusion: on weak hardware, the winning combination is "a small model plus good document search," not "a bigger model." If he were to assemble the setup again, he would take a used 12 GB RTX 3060 for 25–30 thousand rubles and expects 20+ tokens per second from it on qwen3:8b. This is his estimate, not a measurement.
Pitfalls and operations
The most useful part of the article is its list of mistakes. Buildozer builds for arm64-v8a by default, and on a 32-bit phone the APK will not install: android.archs = armeabi-v7a must be specified explicitly. Editing Python files with sed breaks indentation, so the author edits them via readlines() and insert(). Before every build, pre_build_check.sh runs so that problems are not discovered after 20 minutes of compilation. If native libraries fail to load, the fallback is a PWA.
For resilience, a cron script checks services every 5 minutes and restarts any that have failed. Based on six months of logs, it handles about 80% of typical failures: a crashed container, a hung worker, a dropped tunnel. It does not fix model degradation, disk shortages or code errors — for those, there are alerts in Grafana.
The author does not claim a 99.9% uptime figure, since there is no external monitoring. Backups are encrypted with GPG using a key, with no passphrases stored in files, and are kept for 7 days on local disk.
For proof of authorship, OpenTimestamps is used: the file's hash is recorded on a blockchain and proves the date, while the GPG signature proves only "who."
Limitations
This is a one-person project. There are no paying users, monetization has not launched, and some PRO modules are still in development. The text shows inconsistencies: it mentions both 34 and 55 modules in different places, and some sections were clearly added on top of the draft. Nevertheless, for SREs and anyone building private AI on weak hardware, this is a concrete checklist: what runs and what doesn't, how to check ports, and where old-Android builds most often break. The code is open, and the author asks for security feedback via issues, especially if a flaw is found in the "zero ports open to the outside" scheme.
- Nov 27, 2026Sber Open-Sources GigaAM v4 Under MIT: Half the Errors of Whisper on Russian
- Nov 27, 2026What AI Does in 8 Task Trackers via MCP: Jira's Catalog Ate 15K Tokens
- Nov 27, 2026Claude Sonnet 5.5 Costs 32% to 304% of the Official Price at Russian Resellers
- Nov 27, 2026deskhatch turns HTML from Claude into a real program: a 5.5 MB runtime instead of 100 MB per app
Key Questions Answered
Where everything is computed?
The author's first honest correction: the language model does not run on the phone. The Redmi A2+ with Android 10 Go is 32-bit and has 2–3 GB of memory. Even the vendor's native app crashes there with a black screen. The author checked this via ADB rather than assuming: the logs contained errors loading native libraries that are incompatible with a 32-bit processor. Lesson: check the ABI and logcat first, and only then build hypotheses about DNS and proxies.
What fits in 8 GB and why the GPU does not help?
The GTX 650 is based on the Kepler architecture, and NVIDIA's drivers for it ended with branch 470, so modern CUDA is unavailable. Ollama runs on the CPU via llama.cpp, while the graphics card sits idle. From the author's table: llama3.2:3b (Q4_K_M) occupies about 3 GB of RAM and delivers about 4 tokens per second; tinyllama 1.1b takes about 1.5 GB and roughly 8 tokens per second; nomic-embed-text takes about 1 GB and is used for vector search in RAG; phi4:14b requires about 10 GB and does not fit.
What are the key details on Pitfalls and operations?
The most useful part of the article is its list of mistakes. Buildozer builds for arm64-v8a by default, and on a 32-bit phone the APK will not install: android.archs = armeabi-v7a must be specified explicitly. Editing Python files with sed breaks indentation, so the author edits them via readlines() and insert(). Before every build, pre_build_check.sh runs so that problems are not discovered after 20 minutes of compilation. If native libraries fail to load, the fallback is a PWA.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
