Engineered a private inference architecture with resource-aware model selection, loopback-only Ollama infrastructure, system-managed tunneling, and verified GhidraGPT integration.
Role
Category
AI Infrastructure
Engineering discipline
PRODUCTION ENGINEERING
Engineering objective
A Hetzner-hosted AI environment was running Hermes gateway services, Ollama, Docker, communication integrations, scheduled jobs, and a large provider fallback chain. The requirement was to understand why the system could fall back unpredictably while preserving service availability and protecting secrets.
Constraints
Architecture
1. GhidraGPT 1.2.1
Connected via System-Managed SSH Tunnel
2. Hermes Gateway Router
Configured provider chain & drift isolated
Upstream Fallbacks
20-entry chain: Rate & quota limits
Verified Private Path
Loopback-only Ollama
3. Qwen3 4B Profile
8,192 Context · 4,096 Output Limit · Fits 7.6 GiB RAM
Smoke Test: GHIDRAGPT_OK
Resource Capacity Decision
Host memory running Hermes gateway, Ollama, Docker, containerd, and SSH
Rejected during capacity evaluation because the approximately 10.6 GB warm-up requirement exceeded 7.6 GiB total host RAM and introduced an unacceptable memory-exhaustion and stability risk.
Approach
Context and environment mapping: Mapped running services across Hermes gateway, Ollama, Docker, containerd, and SSH to establish a complete operational baseline on the 7.6 GiB VPS.
Infrastructure diagnostics: Mapped provider configuration against active CLI state, analyzed the 20-entry routing chain, identified the canonical Hermes runtime, and documented network-control requirements while preserving live availability and credential confidentiality.
Resource-aware model decision: Evaluated the Qwen3 8B warm-up profile requiring approximately 10.6 GB against 7.6 GiB total host RAM. Rejected the 8B profile because it exceeded host capacity and introduced an unacceptable memory-exhaustion risk, then selected a resource-safe Qwen3 4B profile configured with an 8,192-token context window and 4,096-token output limit.
Controlled private delivery and tunneling: Connected GhidraGPT 1.2.1 (Ghidra 12.1.2) to the private Ollama endpoint through a loopback-only, system-managed SSH tunnel. Executed an end-to-end provider smoke test returning GHIDRAGPT_OK.
Technical validation
Observable engineering evidence. Discipline: PRODUCTION ENGINEERING
Host Memory Limit
7.6 GiB RAM
Capacity Decision
4B profile selected for 7.6 GiB host
Qwen3 4B Profile
8,192 ctx · 4,096 output
Ollama Binding
Loopback-only (127.0.0.1)
SSH Tunnel Path
System-managed loopback
Provider Smoke Test
GHIDRAGPT_OK
GhidraGPT Version
1.2.1
Ghidra Version
12.1.2
Fallback Inspection
20-entry chain audited
Audit Integrity
Zero secret/IP exposure
Outcome
Delivered a stable, resource-aware private inference path running Qwen3 4B that fits within 7.6 GiB host RAM
Isolated and documented configuration drift between Hermes primary provider configuration and active CLI state
Preserved network isolation by maintaining loopback-only Ollama endpoints backed by system-managed SSH tunneling
Verified end-to-end provider response returning GHIDRAGPT_OK for GhidraGPT 1.2.1 and Ghidra 12.1.2
Produced an operational hardening map for provider routing and network controls without disrupting live availability
Technologies
Next engineering system
AI product engineering
Have an ambitious AI system to build?
I work across AI architecture, product engineering, private inference, automation, SaaS infrastructure, and production hardening.