Navigation
📐 Foundations· 12 min read

Non-NVIDIA Accelerators Overview

Google TPU, AWS Trainium, Intel Gaudi, Huawei Ascend, and CPU inference — the framework for evaluating alternatives to NVIDIA GPUs.

tputrainiumgaudiascendacceleratorcpu-inference

NVIDIA dominates AI compute today, but the landscape is diversifying. Understanding alternative accelerators helps you evaluate hardware options, avoid vendor lock-in, and understand why certain architectural choices exist. This chapter provides the analysis framework — not a detailed spec sheet for each chip.


1. Why Alternatives Matter

ReasonImpact
Supply constraintsNVIDIA GPU demand exceeds supply; alternatives provide capacity
CostCompetition drives down prices; some workloads are cheaper on alternatives
SpecializationSome chips are optimized for specific workloads (inference-only, training-only)
SovereigntySome regions/companies need non-US hardware options
Architecture diversityDifferent designs reveal different tradeoffs — learning from them improves your understanding of GPU design choices

2. Google TPU

Architecture

TPUs use a systolic array design — a 2D grid of processing elements where data flows through the grid, performing multiply-accumulate at each step. This is fundamentally different from NVIDIA’s SIMT model.

ComponentTPUNVIDIA GPU
Compute unitSystolic array (128×128 or 256×256)Tensor Cores + CUDA Cores
Programming modelXLA (graph compilation)CUDA (kernel-based)
InterconnectICI (Inter-Chip Interconnect)NVLink
MemoryHBMHBM
SoftwareJAX, TensorFlowPyTorch, TensorFlow

TPU Generations

GenerationYearBF16 TFLOPSHBMNotable
TPU v4202227532 GB HBM2e4096-chip pods
TPU v5e202319716 GB HBM2eCost-optimized for inference
TPU v5p202445995 GB HBM2eTraining-focused
TPU v6e (Trillium)202591832 GB HBM4× v5e performance

Strengths and Limitations

StrengthsLimitations
Excellent for JAX/XLA workloadsPoor PyTorch support (improving but still friction)
Large-scale pods (4096+ chips) with fast ICILimited to Google Cloud
Cost-competitive for training at scaleSmaller ecosystem than CUDA
Optimized for Transformer workloads specificallyCustom ops require XLA-compatible implementations

When to Use TPU

  • Training large models if your team uses JAX
  • Google Cloud-native workloads
  • Cost-sensitive large-scale training (TPU pods can be cheaper than equivalent GPU clusters)

3. AWS Trainium / Inferentia

Architecture

AWS designed Trainium (training) and Inferentia (inference) as purpose-built AI chips with the Neuron SDK.

ChipFocusComputeMemoryInstance
Trainium 1Training~190 TFLOPS BF1632 GB HBM2etrn1
Trainium 2Training~380 TFLOPS BF1696 GB HBM2etrn2
Inferentia 2Inference~190 TFLOPS BF1632 GB HBM2einf2

Strengths and Limitations

StrengthsLimitations
Deeply integrated with AWS ecosystemAWS-only
Competitive pricing (often 30-50% cheaper than P5 instances)Neuron SDK is less mature than CUDA
NeuronLink for multi-chip communicationNot all model architectures supported
Growing PyTorch support via torch-neuronxCustom kernel development is harder

When to Use Trainium

  • AWS-native workloads where cost matters
  • Standard Transformer training (well-supported models)
  • Teams willing to invest in Neuron SDK learning curve

4. Intel Gaudi

Architecture

Intel Gaudi uses a Matrix Math Engine (MME) for matrix operations and Tensor Processing Cores (TPC) for general compute, with integrated RoCE v2 networking on-chip.

ChipComputeMemoryNotable
Gaudi 2~430 TFLOPS BF1696 GB HBM2eIntegrated 24× 100GbE RoCE
Gaudi 3~900 TFLOPS BF16128 GB HBM2eFP8 support

Strengths and Limitations

StrengthsLimitations
Integrated networking (no separate NICs needed)Smaller ecosystem
Competitive performance on supported modelsLimited custom kernel tooling
PyTorch support via Habana SynapseAI SDKFewer reference implementations
Available on AWS (DL1 instances)Smaller community

5. Huawei Ascend

Architecture

Huawei’s Ascend processors use the Da Vinci architecture with the CANN (Compute Architecture for Neural Networks) software stack and MindSpore framework.

ChipTargetComputeMemory
Ascend 910BTraining~320 TFLOPS BF1664 GB HBM2e
Ascend 910CTraining~640 TFLOPS BF1680 GB HBM2e

Context

Ascend is primarily relevant in the Chinese market where US export restrictions limit access to NVIDIA’s latest GPUs. DeepSeek, Baidu, and other Chinese AI labs use Ascend alongside (or instead of) NVIDIA hardware.



5.5. Groq LPU

Groq’s Language Processing Unit (LPU) takes a radically different approach: deterministic execution with SRAM-only memory (no HBM). All model weights are stored in on-chip SRAM across many chips.

PropertyGroq LPUNVIDIA GPU
Memory typeSRAM (on-chip, deterministic latency)HBM (off-chip, variable latency)
Decode bottleneckNone (no HBM bandwidth wall)Memory-BW-bound
Decode latencyExtremely low (~100-300 tok/s per user)~30-120 tok/s per user
Model loadingEntire model in SRAM across chip arrayWeights in HBM
FlexibilityInference-only, limited model sizesTraining + inference, any model

Key insight: By eliminating HBM, Groq avoids the memory-bandwidth bottleneck that limits GPU decode. But it requires many chips (each with limited SRAM) to hold a large model.

When to use: Ultra-low-latency inference for supported model sizes.


5.6. Cerebras WSE

Cerebras takes the opposite extreme: one wafer = one chip. The Wafer-Scale Engine (WSE-3) is a single 46,225 mm² chip (vs ~814 mm² for H100) with:

  • 900,000 AI cores
  • 44 GB on-chip SRAM
  • 21 PB/s memory bandwidth (on-chip)

Key insight: By keeping everything on one chip, Cerebras eliminates inter-chip communication — the bottleneck for distributed training. A single WSE can process models that would require dozens of GPUs.

Limitation: Maximum model size is limited by on-chip SRAM (44 GB). For larger models, Cerebras uses “weight streaming” from external memory, which partially negates the single-chip advantage.

6. CPU Inference

For certain workloads, CPUs are a viable — and cost-effective — alternative:

When CPUs Make Sense

ScenarioWhy CPU works
Small models (< 3B parameters)Fits in DDR memory, quantized INT4 runs fast
Low QPS (< 10 requests/second)Don’t need GPU throughput
No GPU availableEdge devices, laptops, some cloud instances
Batch embeddingCPU can handle bulk encoding with good throughput

CPU Inference Engines

EngineHardwareKey feature
llama.cppAny CPU (AVX2/AVX512, ARM NEON)GGUF quantization, runs everywhere
Intel AMXSapphire Rapids+ XeonHardware BF16/INT8 matrix acceleration
ARM SVEGraviton, Apple SiliconScalable vector extension for matrix ops

llama.cpp deserves special mention — it enables running 7B models on a laptop at ~10 tokens/second with INT4 quantization. This isn’t fast enough for production serving but is transformative for development, testing, and edge deployment.


Accelerator Landscape


7. Evaluation Framework

When comparing accelerators, look beyond headline TFLOPS:

DimensionWhat to evaluateWhy
Effective throughputTokens/second for YOUR modelTFLOPS ≠ real performance
Software maturityCan you run your training code?CUDA ecosystem is years ahead
Memory capacityDoes your model + KV cache fit?The hard constraint
Memory bandwidthDecode is memory-BW-boundOften more important than compute
InterconnectMulti-chip communication speedDetermines parallelism efficiency
Cost per token$/token at production throughputThe ultimate metric
AvailabilityCan you actually get the hardware?Supply constraints are real
EcosystemLibraries, tools, communityDebugging an unsupported model on new hardware is painful

Rule of thumb: Unless you have a specific reason (cost, availability, cloud lock-in), NVIDIA GPUs with CUDA remain the default choice. The ecosystem advantage compounds — every new optimization (FlashAttention, vLLM, etc.) ships on CUDA first.


Self-Check

  • Explain the fundamental architectural difference between TPU systolic arrays and GPU Tensor Cores
  • Name a scenario where TPU is a better choice than NVIDIA GPU
  • Explain why Trainium can be 30-50% cheaper than equivalent NVIDIA instances
  • Explain when CPU inference is a viable option
  • Name 4 dimensions to evaluate when comparing accelerators
  • Explain why CUDA’s ecosystem advantage matters in practice

References