Topic

Machine Learning Infrastructure

All digests tagged Machine Learning Infrastructure

Lecture 113: Every Microsecond Matters: Achieving Near Speed-of-Light Latency in GPU Collectives thumbnail

· 52:53

Lecture 113: Every Microsecond Matters: Achieving Near Speed-of-Light Latency in GPU Collectives

The lecture details advanced low-latency collective communication algorithms for GPU clusters, crucial for accelerating large language model (LLM) inference. The core challenge addressed is that traditional global memory synchronization barriers are significant bottlenecks in auto-regressive decoding phases. Solutions involve novel techniques—such as Low Latency (LL) protocols, Sentinel synchronization, and Double Buffering—that replace explicit barriers by using data arrival itself as the synchronization signal. Furthermore, a new `LL128 atomic` algorithm is introduced to achieve highly scalable, low-overhead reduction operations.

Key takeaways

  1. Latency Bottleneck in LLM Inference 0:53

    During auto-regressive decoding (the decode phase), message sizes are small, and the collective operation is executed repeatedly on the critical path. Saving microseconds per AllReduce can lead to substantial end-to-end speedups [0:53].

  2. Symmetric Memory for Remote Access 1:40

    Symmetric memory allows a GPU kernel to directly calculate and address the corresponding location of an object on another participating GPU, simplifying remote device memory access within kernels [1:40].

  3. Eliminating Global Barriers 2:30

    The primary bottleneck in traditional AllReduce algorithms (like OneShot or TwoShot) is the expensive global memory barrier. New techniques replace these barriers by using data arrival as an implicit synchronization signal, trading space for latency [2:36].

  4. The LL128 Atomic Algorithm 2:55

    A novel approach utilizes atomic additions over MVLink to perform reductions directly into a shared destination buffer. This significantly reduces required scratch buffer space and improves scalability for larger numbers of ranks compared to previous methods [4:30].

Watch on YouTube Full article

Generative Video at the Speed of Light — Keegan McCallum, uRun thumbnail

· 8:43

Generative Video at the Speed of Light — Keegan McCallum, uRun

The presentation shifts the focus of generative video from improving quality (e.g., Sora) to maximizing efficiency and enabling long-horizon, real-time interaction. The core argument is that the limiting factor is no longer model fidelity but the serving infrastructure required for continuous, synchronized streaming. Key technical requirements include global GPU distribution, WebRTC/ICE/TURN setup, and complex pipelines capable of integrating multiple models (e.g., video-to-video transformation) in real time.

Key takeaways

  1. Shift from Quality to Efficiency 3:55

    The most significant axis of improvement is efficiency and long horizon generation, allowing for continuous streaming at a fraction of the cost compared to slower, high-quality generations. For example, real-time generation can be produced at about 1/100th the cost of minutes-long clips.

  2. Cost and Accessibility 6:24

    Generative video is becoming highly accessible: $10 can now buy roughly three hours of continuous generated video, while $50 could provide up to 15 hours of interaction.

  3. New Interaction Paradigms 7:18

    The technology enables new use cases beyond simple content creation, such as 'magic mirrors' (transforming a webcam feed in real time) and providing visual mediums for users who do not think primarily in text.

Watch on YouTube Full article