Close Menu
    Trending
    • Credit Risk Scoring for BNPL Customers at Bati Bank | by Sumeya sirmula | Jul, 2025
    • The New Career Crisis: AI Is Breaking the Entry-Level Path for Gen Z
    • Musk’s X appoints ‘king of virality’ in bid to boost growth
    • Why Entrepreneurs Should Stop Obsessing Over Growth
    • Implementing IBCS rules in Power BI
    • What comes next for AI copyright lawsuits?
    • Why PDF Extraction Still Feels LikeHack
    • GenAI Will Fuel People’s Jobs, Not Replace Them. Here’s Why
    AIBS News
    • Home
    • Artificial Intelligence
    • Machine Learning
    • AI Technology
    • Data Science
    • More
      • Technology
      • Business
    AIBS News
    Home»Machine Learning»Intro to NCCL: Efficient Multi-GPU Communication for Distributed Training | by Huayu Zhang | May, 2025
    Machine Learning

    Intro to NCCL: Efficient Multi-GPU Communication for Distributed Training | by Huayu Zhang | May, 2025

    Team_AIBS NewsBy Team_AIBS NewsMay 24, 2025No Comments2 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    NVSwitch connects all GPUs in a node by way of a swap cloth, preserving NVLink’s point-to-point nature whereas providing uniform all-to-all communication

    all-2-all connection primarily based on NVSwitch

    NVSwitch Execs & cons

    Execs:

    • Full bandwidth, all-to-all connections
    • Uniform latency and no routing complexity
    • Simplifies NCCL collective operations
    • Permits environment friendly tensor-parallel/model-parallel coaching
    • Important for DGX, HGX, and NVIDIA SuperPOD deployments

    Cons:

    • Costly and power-hungry
    • Requires specialised {hardware}/chassis (e.g., DGX — NVIDIA’s high-end server with 8 GPUs related by way of NVSwitch, optimized for large-scale deep studying)

    Multi-Host Setup with InfiniBand + NVLink

    In a multi-host NVSwitch-based GPU system, GPUs and the NVSwitch don’t immediately connect with the community interface. As a substitute, GPUs entry the NIC (e.g., ConnectX-7) by way of the host’s PCIe subsystem. For inter-node communication, every NIC is related by way of InfiniBand, forming a high-speed cluster cloth. GPUDirect RDMA permits the NIC to carry out direct reminiscence entry (DMA) to and from GPU reminiscence over PCIe, fully bypassing the CPU and system reminiscence. This zero-copy switch path considerably reduces communication latency and CPU overhead, enabling environment friendly, large-scale distributed coaching throughout a number of GPU servers. The mixture of NVSwitch (for intra-node) and GPUDirect RDMA (for inter-node) gives a seamless and high-performance information path for collective operations like NCCL’s all_reduce.

    We show the all_reduce operation on 4 GPUs, every holding the vector [x0–x7], break up into 4 chunks.

    Every GPU begins with the total tensor of 8 components, divided into 4 chunks:

    • chunk0: indices [0,1]
    • chunk1: indices [2,3]
    • chunk2: indices [4,5]
    • chunk3: indices [6,7]

    Every GPU will cut back one distinctive chunk by summing that chunk from all GPUs.

    Every GPU now owns one totally diminished chunk. These are shared to all different GPUs in a hoop sample over 3 steps.

    All GPUs now maintain the whole diminished tensor.



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleHow To Optimize Solar BOS For Value and Efficiency
    Next Article Why Every Company Should Have a 90-Day Cash Flow Buffer
    Team_AIBS News
    • Website

    Related Posts

    Machine Learning

    Credit Risk Scoring for BNPL Customers at Bati Bank | by Sumeya sirmula | Jul, 2025

    July 1, 2025
    Machine Learning

    Why PDF Extraction Still Feels LikeHack

    July 1, 2025
    Machine Learning

    🚗 Predicting Car Purchase Amounts with Neural Networks in Keras (with Code & Dataset) | by Smruti Ranjan Nayak | Jul, 2025

    July 1, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Credit Risk Scoring for BNPL Customers at Bati Bank | by Sumeya sirmula | Jul, 2025

    July 1, 2025

    I Tried Buying a Car Through Amazon: Here Are the Pros, Cons

    December 10, 2024

    Amazon and eBay to pay ‘fair share’ for e-waste recycling

    December 10, 2024

    Artificial Intelligence Concerns & Predictions For 2025

    December 10, 2024

    Barbara Corcoran: Entrepreneurs Must ‘Embrace Change’

    December 10, 2024
    Categories
    • AI Technology
    • Artificial Intelligence
    • Business
    • Data Science
    • Machine Learning
    • Technology
    Most Popular

    Jshsh

    January 25, 2025

    Stop Creating Bad DAGs — Optimize Your Airflow Environment By Improving Your Python Code | by Alvaro Leandro Cavalcante Carneiro | Jan, 2025

    January 30, 2025

    A Guide to Model Serving for Data Scientists and ML Practitioners | by harshit sundriyal | Apr, 2025

    April 10, 2025
    Our Picks

    Credit Risk Scoring for BNPL Customers at Bati Bank | by Sumeya sirmula | Jul, 2025

    July 1, 2025

    The New Career Crisis: AI Is Breaking the Entry-Level Path for Gen Z

    July 1, 2025

    Musk’s X appoints ‘king of virality’ in bid to boost growth

    July 1, 2025
    Categories
    • AI Technology
    • Artificial Intelligence
    • Business
    • Data Science
    • Machine Learning
    • Technology
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us
    Copyright © 2024 Aibsnews.comAll Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.