Bypassing the Cloud: Deploying a Heterogeneous Multi-GPU Private Inference Cluster on Bare-Metal Debian

I have successfully engineered and stabilized a localized, bare-metal multi-GPU AI inference cluster configured to run fully optimized, hardware-accelerated private computing pipelines completely offline. The architecture explicitly targets complete data sovereignty and zero-trust isolation, decoupling tensor tokenization and vector database indexing from public API dependencies.

Hardware Topology & Power Distribution Infrastructure:
The cluster is hosted on a repurposed open-air mining framework and scales horizontally using a segmented multi-power supply configuration:

  • Primary Power Rail: Supplying an MSI z390-a Pro motherboard and a primary MSI GeForce RTX 3060 (12GB VRAM).
  • Secondary/Tertiary Rails: Isolated power delivery infrastructure driving additional graphics lanes, including a PowerColor Red Devil and a Gigabyte Radeon RX 6700 XT, utilizing independent breakout blocks to manage transient voltage spikes under heavy batch inference loads.
  • Host Silicon: Intel Pentium Gold G5400 CPU running a headless, CLI-only base Debian Linux environment.

Compute Stack & Driver Abstraction Overrides:
To force stable text generation and cross-backend execution across a heterogeneous array (mixed NVIDIA/AMD lanes), the pipeline leverages a custom PyTorch multi-backend stack:

  • Driver Layer: Synchronized deployment of nvidia-smi binaries mapped directly alongside AMD’s ROCm parallel runtime framework to ensure proper compute driver mapping to newly active PCIe lanes.
  • Model Optimization: Automated conversion routines translating Hugging Face transformer repositories into unified, single-file GGUF and ONNX formats via convert_hf_to_gguf.py using explicit token/vocabulary overrides (--vocab-type hf) and wildcard matching execution.
  • Vectorization Matrix: Localized database storage driven by an offline ChromaDB persistent client running native sentence-transformers text embedding functions, achieving retrieval latencies of ~0.02s on a 11,504-element dataset.

Automated Ingestion Sentinels & DevSecOps Guards:
System automation is driven by a native Linux systemd watchdog service (va_watchdog.service) running at the multi-user target ring. The sentinel monitors localized dropzone paths via kernel tracking hooks, routes data streams through a custom Regex Data Loss Prevention (DLP) engine for real-time PII scrubbing, and executes a 6-line sliding window tokenizer loop with a 50% overlapping stride before database injection.

I am interested in getting community feedback on automated fan-curve mapping configurations via nvidia-smi binary parameters to manage localized thermal signatures across tightly spaced PCIe lanes during long-context batch operations.


UPDATE: Solved the legacy console mirroring loop and headless multi-GPU display segregation issue without bloating this lean Debian environment with a consumer desktop environment (GNOME/KDE).

For anyone running into headless multi-GPU display mapping bottlenecks where the Linux kernel mode setting (KMS) defaults to cloning or mirroring terminal text across mismatched display outputs:

The issue stems from the proprietary compute drivers dropping legacy fbdev console emulation on secondary cards. If you attempt a raw text-only console split across both integrated and discrete GPUs, the system breaks.

The Architecture-Level Fix:

  1. Purge the legacy console variables (e.g., fbcon=map) from the low-level GRUB bootloader parameters to prevent initial driver cross-wiring loops.
  2. Deploy a stripped-down, ultra-light Xorg and Openbox manager environment to establish clean graphical display server abstraction layers with zero system overhead.
  3. Bridge the graphics layers by running a provider sync pass via xrandr (xrandr --setprovideroutputsource 1 0), forcing the X server to dynamically map the discrete GPU channels.
  4. Correct output interface handles using exact log mappings (in my architecture, mapping the primary motherboard output to DP-1 and the extended touchscreen layout to HDMI-1-0).
  5. Export full 256-color profile parameters (export TERM=xterm-256color) within a customized tmux initialization startup script.

This layout permanently locks an independent, full-color telemetry dashboard (nvidia-smi side-by-side with color-coded htop core tracks) onto the touchscreen panel automatically at system startup, leaving the primary monitor completely open for massive, unhindered model inference.