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.
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
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Samsung is testing a feature that changes the angle of photos you’ve already taken
Samsung’s new Recompose lets users change photo angles after shooting, potentially reducing the need for multiple shots and improving post-capture editing workflows for photographers and casual users alike.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Self-hosted YouTube client that falls back to SABR when side doors close
A self-hosted YouTube client lets users watch videos without Google accounts, ads, or tracking, keeping data local and enabling shared libraries across devices.
datasette-charts 0.4a0
Datasette now lets developers add custom chart types more easily, expanding visualisation options for data projects.
Speculative Decoding Makes Tool Calls Faster. Agents Need a Cache.
Speed improvements in speculative decoding mean agents can execute tool calls faster, reducing latency for real-time applications.