AI Cloud Architect

Exa boosts embedding throughput by 50% to index billions of documents on AWS AI chips

AWSHow-to by Summer Devlin, Venu Geddam, Jim Burtoft and Pinak PanigrahiAWS Artificial Intelligence Blog

Exa’s neural search engine is backed by an in-house vector database, so the unit economics of embedding tens of billions of web documents drive the business. This post shares how Exa optimized embedding inference on AWS Neuron hardware (Inferentia2 and Trainium2) with custom NKI kernels, reaching a 47% gain in performance and cost per million documents.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Exa reports a 47% gain in performance and cost per million documents embedded on Inferentia2 and Trainium2, using custom NKI kernels, an optimized attention kernel and autocast.

Who it is for

Teams running embedding inference at very large scale on AWS Neuron who want per-document cost gains from custom kernels.

Key points

  • Baseline was data-parallel FP16 on inf2.xlarge; autocast and weight layout changes gave roughly 1.5x throughput.
  • Correctness gate was 0.999 cosine similarity against the reference model.
  • Inferentia2 optimizations were run in us-west-2; Exa schedules across multiple Regions from one Kubernetes control plane.

Timeline

Posts about AWS Inferentia, oldest first.

  1. Customer storyMetagenomi generates millions of novel enzymes cost-effectively using AWS Inferentia · AWS · Customer story
  2. This postExa boosts embedding throughput by 50% to index billions of documents on AWS AI chips