Home / Knowledge Center / Articles / AI Compute Hosting Guide

AI Compute Hosting: Colocation for Training and Inference Workloads

GPU colocation infrastructure for AI compute training and inference workloads

What Is AI Compute Hosting

AI compute hosting provides the physical infrastructure -- GPU servers, networking, power, and cooling -- that AI workloads require to run at production scale. Where traditional hosting is measured in CPU cores and RAM, AI compute hosting is measured in GPU-hours, interconnect bandwidth, and per-rack power density. The infrastructure is fundamentally different, and so are the decisions that determine whether a deployment succeeds or fails.

The market for AI compute hosting has grown because cloud GPU instances, while convenient, become prohibitively expensive for sustained workloads. Organizations running AI training jobs that consume hundreds or thousands of GPU-hours per week find that colocating dedicated hardware reduces costs by 50-75% compared to on-demand cloud pricing over a 12-month period. The trade-off is operational responsibility: you manage the hardware, the provider manages the facility.

For a foundational overview of AI hosting models, start with our complete guide to AI hosting.

Training vs Inference: Infrastructure Differences

AI training and inference are fundamentally different workloads with distinct infrastructure requirements. Understanding these differences is essential for right-sizing your compute hosting deployment.

Training Infrastructure

Training builds the model. It processes massive datasets through neural network architectures, iteratively adjusting billions of parameters to minimize error. Training is compute-bound, memory-bandwidth-bound, and network-bound simultaneously.

  • GPU compute: Training demands maximum FLOPS. GPUs run at sustained 90-100% utilization for hours or weeks at a time.
  • GPU memory: Model parameters, gradients, and optimizer states must fit in GPU memory. A 70B parameter model in mixed precision requires approximately 140 GB of GPU memory just for the model weights, before accounting for activations and optimizer state.
  • Inter-node networking: Distributed training across multiple servers requires all-reduce operations that synchronize gradients between GPUs. This demands high-bandwidth, low-latency interconnect -- typically InfiniBand at 400 Gb/s per GPU. Network bottlenecks directly extend training time.
  • Storage throughput: Training datasets can reach tens of terabytes. Data loading must saturate GPU compute; if GPUs wait for data, expensive hardware sits idle.

For a detailed comparison of how these requirements differ by workload type, see our training vs inference infrastructure guide.

Inference Infrastructure

Inference uses the trained model to generate predictions or outputs in response to individual requests. The requirements shift from raw throughput to latency and availability.

  • Latency sensitivity: End users expect sub-second responses. Inference infrastructure must minimize time-to-first-token for generative models and total response time for classification or embedding workloads.
  • Availability requirements: Production inference services need 99.9%+ uptime. This demands redundant GPU instances, load balancing, and health-check automation.
  • Horizontal scaling: Inference traffic is variable. The infrastructure must scale GPU instances up and down based on request volume without overprovisioning expensive hardware during low-traffic periods.
  • Geographic distribution: Latency-sensitive inference benefits from proximity to end users. Multi-region deployment may be necessary for global applications. Our Middle East inference hosting guide covers regional deployment considerations.

Cluster Architecture for AI Compute

An AI compute cluster is not simply a collection of GPU servers. The architecture of how those servers connect determines the cluster's effective performance, often more than the GPU hardware itself.

Compute Nodes

Each compute node is a GPU server containing 4-8 GPUs connected via NVLink or NVSwitch for intra-node communication. NVLink provides 900 GB/s of bidirectional bandwidth between GPUs within the same server -- roughly 7x faster than PCIe Gen 5. For workloads that fit within a single node's GPU memory, this intra-node bandwidth is the primary performance determinant.

Interconnect Fabric

For multi-node training, the network fabric connecting compute nodes becomes the critical infrastructure layer. The standard architecture uses a fat-tree or Clos topology with InfiniBand switches, providing non-blocking bandwidth between any pair of nodes in the cluster. Each GPU connects to the fabric via a dedicated network adapter (NVIDIA ConnectX-7 at 400 Gb/s), and RDMA enables direct GPU-to-GPU data transfer across servers without CPU involvement.

The practical impact: a well-designed 64-node cluster with proper InfiniBand fabric achieves near-linear scaling -- doubling the nodes roughly doubles the training throughput. A poorly designed network with oversubscription or inadequate switch capacity creates bottlenecks that cap effective scaling far below the theoretical GPU compute capacity.

Management and Control Plane

Separate from the compute and data networks, the management plane handles out-of-band server management (BMC/IPMI), monitoring, alerting, and orchestration. This network should be physically or logically isolated from the compute fabric to prevent management traffic from competing with training data transfers.

GPU Provisioning and Scaling

Right-sizing GPU provisioning avoids two expensive mistakes: underprovisioning (which extends training time and delays time-to-market) and overprovisioning (which wastes capital on idle hardware).

Start with Benchmarks

Before committing to a cluster size, benchmark your workload on a single node to establish baseline throughput. Measure tokens per second for language models, images per second for vision models, or the relevant throughput metric for your domain. Then estimate the cluster size needed to meet your time-to-result target.

Scaling Efficiency

Distributed training does not scale perfectly. Communication overhead increases with the number of nodes. Typical scaling efficiency is 85-95% for well-optimized workloads on 8-16 nodes, dropping to 70-85% at 64+ nodes depending on model architecture and communication pattern. Factor this efficiency loss into your provisioning estimates.

Multi-Tenancy with GPU Virtualization

For inference workloads or development clusters, NVIDIA MIG (Multi-Instance GPU) partitions a single physical GPU into up to seven isolated instances, each with dedicated compute, memory, and cache. This allows multiple smaller workloads to share GPU hardware without performance interference, improving utilization rates from the typical 30-40% for dedicated inference GPUs to 70-80%.

Job Scheduling and Orchestration

When multiple teams or workloads share a GPU cluster, a job scheduler allocates GPU resources, manages queues, and ensures fair access. The two dominant approaches are Slurm and Kubernetes.

Slurm

Slurm is the standard scheduler for HPC and AI training clusters. It excels at batch job scheduling: users submit training jobs with resource requirements (number of GPUs, memory, time limit), and Slurm allocates nodes, manages job queues with priority policies, and handles job accounting. Slurm integrates natively with MPI and NCCL, the communication libraries used by distributed training frameworks.

Kubernetes with GPU Operators

Kubernetes, extended with NVIDIA's GPU Operator and device plugin, provides container-based GPU scheduling. It is better suited to inference workloads that benefit from auto-scaling, rolling deployments, and service mesh networking. For training workloads, Kubernetes adds container orchestration overhead that Slurm avoids, though frameworks like Kubeflow and the Training Operator are closing this gap.

Hybrid Scheduling

Many production environments run both: Slurm for training clusters where bare-metal performance matters, and Kubernetes for inference services where container orchestration and auto-scaling are priorities. The GPU pool may be physically separate or logically partitioned using network segmentation and resource quotas.

Storage Architecture for AI Workloads

AI compute is only as fast as its data pipeline. A GPU cluster that can process 10 GB/s of training data is wasted if the storage system delivers only 2 GB/s.

Parallel File Systems

Lustre, GPFS (IBM Spectrum Scale), and BeeGFS distribute data across multiple storage servers and deliver aggregate throughput that scales with the number of servers. A properly sized Lustre deployment can deliver tens of GB/s of sequential read throughput to feed a multi-node training cluster without bottlenecking the GPUs.

Object Storage for Datasets

Large training datasets (terabytes to petabytes) are often stored in S3-compatible object storage for durability and cost efficiency. The data is then staged to high-performance parallel storage or local NVMe drives before training begins. This tiered approach balances cost with performance.

Checkpoint Storage

Training jobs periodically save model checkpoints so that a failure does not lose all progress. Checkpoint writes can be large (a 70B model checkpoint is roughly 140 GB) and must complete quickly to minimize GPU idle time. Local NVMe drives or a dedicated high-IOPS storage tier are typically used for checkpoint writes, with asynchronous replication to durable storage.

Colocation vs Cloud for AI Compute

The colocation-vs-cloud decision for AI compute differs from the general IT version of this question because of the extreme cost of GPU hardware and the sustained utilization patterns of AI workloads.

When Colocation Wins

  • Sustained workloads: If your GPUs run at 50%+ utilization over a 12-month period, colocation typically costs 50-75% less than equivalent cloud instances.
  • Multi-year roadmaps: Organizations with committed AI programs benefit from hardware ownership or lease economics over 2-3 year terms.
  • Performance consistency: Bare-metal GPU access eliminates virtualization overhead and noisy-neighbor effects that can vary GPU performance by 10-20% on shared cloud infrastructure.
  • Data sovereignty: Industries with regulatory requirements for data residency need physical control over where compute and data reside.

When Cloud Wins

  • Experimentation: Early-stage AI projects with uncertain GPU requirements benefit from cloud's flexibility and zero upfront commitment.
  • Burst capacity: If you need 1,000 GPUs for a two-week training sprint but only 64 GPUs for ongoing inference, cloud burst capacity avoids owning hardware that sits idle.
  • Global distribution: Cloud providers offer GPU instances in dozens of regions, enabling low-latency inference serving worldwide without building physical presence in each location.

For a detailed cost analysis, see our bare metal GPU vs cloud comparison. For organizations evaluating the transition from cloud to dedicated infrastructure, our high-density colocation requirements guide covers the facility specifications to evaluate.

Planning Your AI Compute Deployment

A successful AI compute hosting deployment requires planning across four dimensions:

1. Workload Characterization

Define your workloads precisely: training or inference, model sizes, dataset sizes, target throughput, latency requirements, and growth projections. This determines GPU count, memory requirements, networking needs, and storage sizing.

2. Facility Selection

Evaluate hosting facilities against your specific requirements: per-rack power capacity (current and future), cooling architecture (air, liquid, or hybrid), network connectivity (carrier density and IX presence), and physical security. The rack density planning guide covers the technical criteria in detail.

3. Network Design

For training clusters, design the InfiniBand or Ethernet fabric before selecting the facility. The network topology determines the physical rack layout, and the rack layout determines the power and cooling distribution. Getting this sequence wrong leads to expensive recabling or suboptimal GPU placement.

4. Operational Readiness

Plan for hardware failures (GPU replacement SLAs), monitoring (GPU utilization, temperature, memory errors), and workload management (scheduler configuration, fair-share policies, priority queues). AI compute infrastructure requires specialized operations expertise that differs from traditional IT hosting.

Frequently Asked Questions

What is AI compute hosting?

AI compute hosting is a colocation or managed infrastructure service that provides GPU-accelerated compute resources specifically provisioned for machine learning workloads. It includes physical servers, GPU hardware, high-speed interconnect networking, power delivery, and cooling systems needed to run AI training and inference at scale.

How does AI training differ from inference in hosting requirements?

AI training requires maximum GPU compute and memory bandwidth, high-speed inter-node networking for distributed gradient synchronization, and large parallel storage for datasets. Runs last hours to weeks. AI inference requires lower compute per request but demands low latency, high availability, and horizontal scaling with traffic. Training is bandwidth-bound and batch-oriented; inference is latency-sensitive and request-driven.

How many GPUs do I need for AI training?

The number depends on model size and acceptable training time. Fine-tuning a 7-billion parameter model can run on a single 8-GPU server. Training a 70-billion parameter model from scratch typically requires 64-256 GPUs. Frontier models may use thousands of GPUs. Start by benchmarking on a single node, then scale based on measured throughput and time-to-result requirements.

Is colocation cheaper than cloud for AI compute?

For sustained workloads running more than roughly 40-50% utilization over a 12-month period, colocation is typically 2-4x less expensive than equivalent cloud GPU instances. Cloud remains more cost-effective for intermittent or experimental workloads where utilization is low and flexibility matters more than per-hour cost.

AI compute hostingGPU colocationAI trainingAI inferencecluster architecturedistributed training

Scale Your AI Compute Infrastructure

Rax provides purpose-built AI compute hosting with high-density power, liquid cooling, and InfiniBand networking for training and inference workloads. Talk to our team about your GPU requirements.

Get a Quote