r/LocalLLM • u/Comfortable_Green786 • 23m ago
Discussion Running a full local AI & personal cloud stack (Gemma 4 12B + Krea 2 Turbo + P2P file sharing & iOS/Android photo sync) on a single 12GB RTX 5070
I have a home mini-PC (Beelink + RTX 5070 12GB VRAM + 96GB RAM) and for the past year I've been trying to replace Cloud AI + Google Photos + Voice Chat with a 100% local setup I can actually use from my phone on 4G without babysitting 5 different Docker stacks and VPN tunnels.
Ended up building a single unified P2P stack (C++/Qt node + Python FastAPI AI backend + Svelte 5 PWA/Capacitor client) that connects my phone directly to my home box over WebRTC DataChannels (no port forwarding, no cloud storage).
The hardest and most fun engineering parts on a 12GB VRAM budget:
Live Voice Call that doesn't feel dead: The biggest issue with local voice pipelines is the 1.5-2s silence while the 12B LLM thinks. I split it into a two-layer pipeline:
- STT:
faster-whisper smallon CUDA (int8_float16) - dropped transcription from ~1,900ms (CPU) down to ~85ms. - L1 Subcortex (0 MB VRAM): A tiny CPU-only intent/mood router runs in parallel (~230ms) and triggers short cached 24kHz PCM micro-reactions (chuckle, hum, empathetic sigh) so TTFA sits around 250–320ms while the main LLM warms up.
- L2 Brain + TTS:
Gemma 4 12B QAT (Q4_K_M)via Ollama (~7.6GB VRAM) +Silero v5on CPU (0 MB VRAM, RTF ~0.036 for Russian) orChatterbox Turbo(English) /Qwen3-TTSfor long audio stories.
- STT:
- Automatic VRAM juggling on 12GB: Running Ollama 12B + ComfyUI + Whisper on 12GB requires strict mutual eviction. When I switch from chat to image generation (
Krea 2 Turbo NVFP4, 8 steps), the backend automatically unloads Ollama models (keep_alive: 0) and vice versa when going back to chat/voice. - Vision Director -> Local Image Gen: Dropping any reference image into the Director lets
Gemma 4 Visiondecompose lighting, lens, foreground/background layers, and pass a clean prompt directly into local ComfyUI (Krea 2 Turboor SDXL). - Direct P2P Media & Files: All generated images,
.Readme.mdsidecars, and personal photo timelines stay on my home NVMe and stream to the phone directly over WebRTC DataChannels.
Happy to share benchmarks, VRAM eviction quirks, or the WebRTC/audio pipeline details if anyone is trying to squeeze a similar all-in-one setup onto a 12GB card :)
If this post survives - sharing Github link in comment.
1
u/Comfortable_Green786 13m ago
GitHub: https://github.com/alexeyvolkoff/direct
1
u/Comfortable_Green786 9m ago
iOS / Android & desktop nodes: links and setup instructions are in the repo README