Setting up your own private AI infrastructure: how hard could it be?
AI Generated Summary
AI Generated Content Disclaimer
Note: This summary is AI-generated and may contain inaccuracies, errors, or omissions. If you spot any issues, please contact the site owner for corrections. Errors or omissions are unintended.
Setting up your own private AI infrastructure: how hard could it be? was presented at RootConf 2026 in Bangalore on 20 November 2026. Across 48 slides the deck walks the full path of running AI on hardware you own: the case against rented API access, a working definition of private AI infrastructure, hardware choices between dedicated GPUs and unified memory machines, models and quantization, the software stack from inference gateway to runtime, day-2 operations, and the security work of threat modeling the setup and containing AI coding agents. It closes on the builder’s own hardware, a table of llama.cpp patches, and a public repository of configs.
Summary
The deck opens with credentials: Cyfinoid Research, a research focused security firm working on software supply chain, AI security and cloud security. The SaaS baseline gets three steps: register to a service provider, download an API key, plug it into code. The deck’s label for the arrangement is rented cognition: charge is per token rather than actual work done, rate limits land per 5h, per week, per month and per mood of the CEO, and reliability, performance and cost variance sit outside the user’s control.
Private AI infrastructure is defined as control: what hardware and technology stack to use, which models run and when, who gets access, plus ownership, residency and retention of data. The cost myth gets its own slide: private never means free or low cost or cheap, it is generally more costly than SaaS once hardware, electricity and ownership cost are counted, but it buys control, ownership and certainty. An approaches and responsibilities table splits corporate renting, corporate ownership and personal hardware at home, keeping agent, stack and model with the user in every path while the provider absorbs host, network, power and environment as ownership recedes.
The build equates private AI with LLMs, which need processing power and faster memory. Dedicated GPUs offer larger bandwidth, training and dense models, topped by the 96 GB RTX 6000 Pro; unified memory machines are systems on chips that support larger models and suit Mixture-of-Experts, with Mac Studio and AMD AI Max as ceilings. Models are weights, hyperparameters, a tokenizer and a prompt template in safetensors or GGUF. Quantization stores weights in fewer bits down to 4-bit formats, cutting VRAM needs at an accuracy cost. The KV cache should stay as non-quantized as possible, and the model is quantized before the cache. The VRAM fit formula is weights plus cache plus buffer plus concurrency, and power draw plus cooling are the costs people forget.
The software stack chapter insists on infrastructure as code and tells the operator to consider opensource dead on arrival: own it, maintain it. Inference gateways (Ollama, LM Studio, llama-swap, with a customized fork linked) coordinate runtimes: llama.cpp in C, vLLM in python, MLX on apple hardware. Remote access follows one hard rule, never open the port to internet: Tailscale or headscale, OpenVPN or wireguard, or SSH port forwarding as the poor man’s VPN, with thousands of exposed Ollama instances cited. Model selection prefers dense on dedicated GPUs and MoE on unified memory, official sources and model scanners, while pickle checkpoints, trust_remote_code=True and uncensored models are avoided as lobotomized and hallucination-prone. Performance measurement separates prefill from token generation, and readymade benchmarks are distrusted because models are designed to benchmaxxing.
Maintenance is cron based unattended upgrades, firewall isolation, and stability over the latest feature: make it boring, make it stable. Security opens with the build-it-own-it warning and a threat diagram mapping prompt injection, telemetry leakage, auth bypass, resource exhaustion, supply chain attacks and cross-process disclosure onto the layered stack. An LLM going rogue sequence shows the model box with no egress while the agent or harness reaches tools, APIs, browser, shell and internet, leading to AIDC, a developer containment setup the deck says was built after asking the title question on 12 June 2026, with the answer still being figured out: containers, a package manager gateway, automated SBOMs, forced code review, and session logs pulled back to the base system. A decision flowchart turns data privacy, regulatory compliance and scale into private AI required, preferred or public SaaS preferred. The close shows the builder’s own rig, a table of llama.cpp patches, and the llm-playbooks repository.
Key Themes
- rented cognition: SaaS API access rents the model, the speed and the availability itself, with rate limits, peak pricing and outages all outside the user’s control.
- control, never cheapness: private AI means owning hardware, stack, model choice and data residency, and it is explicitly costlier than SaaS once hardware, electricity and ownership cost are counted.
- responsibility follows the hardware: the three-approach table keeps agent, stack and model with the user in every path while host, network, power and environment migrate to the provider as ownership recedes.
- two hardware paths: dedicated GPUs bring bandwidth, training and dense models, while unified memory machines trade bandwidth for capacity and suit Mixture-of-Experts workloads.
- the vram budget: weights plus KV cache plus buffer plus concurrency decides what fits, so quantize the model first, keep the cache light, and prefer Q8 over Q4.
- own the stack: infrastructure as code, opensource treated as dead on arrival, unattended upgrades, firewall isolation, and stability over the latest feature, summed up as making it boring.
- never an exposed port: access runs through Tailscale, WireGuard or SSH port forwarding, with 14,000 publicly exposed Ollama instances as the cautionary count.
- contain the agent, not the model: the model box has no egress while the agent reaches tools, APIs, browser, shell and internet, so the harness is the boundary AIDC hardens.
Notable Points
- The approaches table prices the three paths differently: monthly for corporate renting (cloud hosting), upfront plus monthly for corporate ownership (hardware at a data center) and for personal hardware at home.
- Hardware ceilings on the comparison slide: 96 GB single card (RTX 6000 Pro), 13 TB clusters (NVL72 GB200), 512 GB Mac Studio, 192 GB AMD 495+ Max.
- The quantization ladder names concrete formats: BF16/FP16/FP32 uncompressed, INT8/FP8/Q8_0 at roughly half size, INT4/Q4_K_M/NVFP4 at four bits per vector.
- VRAM fit is given as a formula, Total VRAM = Weights + KV Cache + Buffer + Concurrency, with Q8 stated to always outperform Q4 and the KV cache kept at F16 or at most Q8.
- Power math: RTX Pro 5000 is 48 GB at 300 watts, RTX 5090 is 32 GB at 575 watts, with 1000 W equated to one unit of electricity; GPUs run above 70 degrees Celsius and fan control repos (zmarty/nvidia-fan-control, exzile/intel-arc-pro-fan-control) are linked.
- The remote access slide cites MalwarePatrol research on over 14,000 Ollama instances exposed to the internet.
- The small model watchlist: MiniCPM5-2b, Spark-X versions 2.5 and 2.6 in 4b and 1.7b sizes, the apple foundation model (trained by google), and Qwen 3.5 / Ornith 9b, screened for agentic capability, tool calling and reasoning.
- Model vetting rules: prefer official publishers, safetensors and GGUF, avoid pickle checkpoints, trust_remote_code=True and abliterated or uncensored models; Palo Alto’s insights-db model scanner is linked for checks.
- The llama.cpp contribution table lists nine PRs, seven merged and two open, with measured gains including a softmax kernel cut from 2407 to 440 ms (5.5x), IQ3 token generation up from 12.30 to 21.59 tok/s, GLM-4.7 Flash MLA prefill up to 5.64x, and MXFP4MoE up 57-62%.
- AIDC’s component list: docker and apple containers, package manager gateway (safedep/pmg), automated SBOM, forced code review, pre-baked RTK tools, session logs pulled to the base system, and a custom ubuntu base with split image layers; the project’s founding question is dated 12 June 2026 on the slide.
Notable Quotes
“SaaS* == Rented Cognition”
“Rate limits are per 5h, per week, per month, per mood of the CEO”
“Private never means free or low cost or cheap”
“Almost all cloud service providers are now GPU service providers.”
“NEVER open the port to internet”
“Own it, maintain it”
“Make it boring : make it stable”
“if you dont secure it: someone else will own it.”
















































