Accelerating Embedding Lookups with cuEmbed

AI-generated summary of reporting by NVIDIA Developer Blog. Read the original for the full story.

Why it matters

NVIDIA's open-source cuEmbed library more than doubles peak HBM bandwidth on embedding lookups, and Pinterest already saw 15-30% training throughput gains, so GPU-based recommender engineers can cut a common bottleneck today.

Read this as

NVIDIA released cuEmbed, a free, open-source library that speeds up one specific step inside recommendation systems: 'embedding lookups', where the system converts categories like products or genres into number lists a neural network can process. By reorganising how GPU memory is accessed, it processes these rows faster than the GPU's memory itself can technically supply them, thanks to caching. Pinterest's engineers tried it and reported 15-30% faster training. It works with C++ and PyTorch with minimal code changes.

NVIDIA has open-sourced cuEmbed, a header-only CUDA library that removes a known bottleneck in GPU-based recommenders. Pinterest reported 15-30% GPU-roofline training throughput improvements across production ranking and recommendation workloads after minimal code changes. Because it is free, open source, and integrable via CMake or PyTorch extensions, teams running recommender training on NVIDIA hardware can adopt it now at no licensing cost. No competitor hardware is discussed.

cuEmbed is a header-only CUDA library accelerating embedding lookup forward and backward passes on H100. For power-law (PSX, alpha=1.05) distributed indices with hotness 64 and float32 embeddings, it exceeds 8 TB/s row throughput on H100 SXM, over 2x peak HBM bandwidth, exploiting L1/L2 cache reuse of hot rows. Techniques include 128-bit vector loads, loop unrolling, shared-memory index pre-loading, and fewer threads with more registers to maximise loads-in-flight per Little's law. Limitation: only a subset of torch.nn.EmbeddingBag functionality is supported.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

cuEmbed NVIDIA Pinterest PyTorch H100 SXM GitHub

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.4a0

Datasette now lets developers add custom chart types more easily, expanding visualisation options for data projects.