Exa boosts embedding throughput by 50% to index billions of documents on AWS AI chips
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.
First seen by Oriel on .
AI summary
Exa optimized large-scale document embedding on AWS Inferentia2 and Trainium2, achieving a 47% improvement in performance and cost per million documents.
- Exa selected 30 billion high-priority documents for re-embedding after introducing a superior document model, temporarily doubling embedding load.
- Weight layout optimization, autocast, NKI kernels, and a custom fused SwiGLU MLP kernel progressively increased throughput and eliminated HBM stalls.
- Custom attention kernels reduced padding-related FLOPS and instruction steps by matching the model’s exact tensor shapes.
- An agentic Flyte harness compiled NEFF executables, checked 0.999 cosine similarity, profiled workloads, and ran 30-minute saturation benchmarks.
- Exa schedules Kubernetes workloads across Regions and instance types, comparing performance per dollar and packing pods onto cheaper available nodes.
#aws neuron #embeddings #nki #kubernetes
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| AWS Machine Learning Blog | 7561fc3d330a372ef121d07f7930d0f64fd7d3eb | https://aws.amazon.com/blogs/machine-learning/exa-boosts-embedding-throughput-by-50-to-index-billions-of-documents-on-aws-ai-chips/ Read discussion |