In short (TL;DR)

GPU vs TPU vs custom accelerators, InfiniBand vs RoCE vs proprietary interconnects, VM vs bare metal - a comprehensive analysis of AI cloud infrastructure architecture with real cost comparisons.

When you click "deploy" on an AI cloud instance, you are renting a slice of an enormously complex hardware stack. Understanding what is underneath - the chips, the network, the storage - helps you make better decisions about where to run AI workloads and what you should actually pay.

1. Evolution and foundation of AI Cloud VMs

AI cloud computing evolved in three waves:

  • Wave 1 (2016-2020): Repurposed infrastructure - standard cloud VMs with GPUs bolted on. Networking and storage were not designed for AI training patterns.
  • Wave 2 (2020-2024): Purpose-built clusters - dedicated AI infrastructure with high-bandwidth interconnects (InfiniBand, NVLink fabric) and parallel storage systems.
  • Wave 3 (2024-present): Full-stack AI factories - rack-scale systems (NVIDIA NVL72, Google TPU v5p pods) where compute, network and storage are designed as one unit.

2. Hardware architecture comparison: GPU, TPU and custom accelerators

AspectNVIDIA GPU (H200/B200)Google TPU (v5p)AWS TrainiumCustom (Cerebras, etc.)
ArchitectureGeneral-purpose SIMTSystolic arraySystolic arrayWafer-scale / dataflow
Best forTraining + inferenceLarge-batch trainingCost-effective trainingSpecialized workloads
FrameworkCUDA (universal)JAX/XLAAWS NeuronProprietary
EcosystemExtensiveGoogle-lockedAWS-lockedEmerging

Key insight: NVIDIA’s dominance is not just hardware performance - it is the CUDA software ecosystem. Every ML framework, research paper and open-source model works on CUDA first. Choosing TPU or Trainium means accepting ecosystem friction for potentially better price-performance.

3. High-speed networking and storage architecture

Interconnect options

  • NVLink/NVSwitch: 900 GB/s per GPU (NVL72). Proprietary to NVIDIA. Best for intra-rack communication during training.
  • InfiniBand: 400 Gbps per node. Industry standard for HPC. Low latency (sub-microsecond). Expensive but proven at scale.
  • RoCE (RDMA over Converged Ethernet): 400 Gbps. Uses standard Ethernet - cheaper than InfiniBand with slightly higher latency.
  • Proprietary fabric (Google ICI, AWS EFA): Cloud-provider-specific. Optimized for their infrastructure but locks you in.

Storage for AI workloads

AI training reads massive datasets sequentially; checkpoints are written in bursts. Storage requirements are fundamentally different from web applications:

  • Parallel filesystems (Lustre, GPFS, WekaIO): aggregate throughput of 100+ GB/s for reading training data
  • Object storage (S3, GCS): cheap for cold data, too slow for hot training loops
  • Local NVMe: fastest for temporary data but not shared across nodes

4. AI Cloud VM vs Bare Metal

DimensionAI Cloud VMBare Metal
Time to provisionMinutesDays to weeks
ElasticityScale up/down on demandFixed capacity
Cost modelPay per hour (expensive at sustained load)CapEx + maintenance (cheaper at high utilization)
Multi-tenancy overhead5-15% performance lossZero - full hardware access
Best forSpiky workloads, experimentation, burst trainingSustained inference, predictable training pipelines

Rule of thumb: if your GPU utilization exceeds 70% for more than 6 months, bare metal is likely cheaper.

5. Provider landscape and cost economics

  • AWS (P5 instances): 8x H100 per instance. Most mature ecosystem. Premium pricing.
  • Google Cloud (TPU): best price-performance for large-batch training if your code works with JAX.
  • Azure (NDv5): strong enterprise integration, InfiniBand-connected.
  • CoreWeave, Lambda Labs: GPU-specialist clouds. 30-50% cheaper than hyperscalers for raw GPU time.
  • Regional providers (Thai clouds): lower latency for Thailand-based inference, but limited GPU availability.

6. Strategic analysis and future trends

  1. Inference shifts to edge - training stays centralized, but inference moves closer to users (on-premise or regional edge)
  2. Sovereign AI clouds - nations building domestic AI infrastructure for data sovereignty (Thailand is investing here)
  3. Interconnect is the new moat - raw FLOPS are commoditizing; the network connecting chips is the differentiator
  4. Energy becomes the constraint - data center power availability, not chip supply, increasingly limits AI capacity

7. Conclusion and procurement recommendations

  1. Start with cloud VMs for experimentation and spiky workloads
  2. Measure utilization after 3 months; if sustained >70%, evaluate bare metal or reserved capacity
  3. Design for portability - use containers and standard frameworks so you can move between providers
  4. Negotiate reserved pricing - 1-year commitments save 30%+, 3-year save 50%+
  5. Consider hybrid - cloud for training, on-premise for inference, with shared data infrastructure

Devsign designs and deploys AI infrastructure - from cloud architecture to on-premise GPU clusters, optimized for your actual workloads.