Giter Site home page Giter Site logo

wangzhi723 / smart-infinity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ais-snu/smart-infinity

0.0 0.0 0.0 5.29 MB

[HPCA'24] Smart-Infinity: Fast Large Language Model Training using Near-Storage Processing on a Real System

License: GNU General Public License v3.0

Shell 0.97% C++ 16.54% Python 73.20% C 0.14% TeX 0.03% Cuda 9.02% Makefile 0.09%

smart-infinity's Introduction

[HPCA'24] Smart-Infinity: Fast Large Language Model Training using Near-Storage Processing on a Real System

We identify that moving parameter updates to the storage side removes most of the storage traffic. In addition, we propose an efficient data transfer handler structure to address the system integration issues for Smart-Infinity. The handler allows overlapping data transfers with fixed memory consumption by reusing the device buffer. Lastly, we propose accelerator-assisted gradient compression/decompression to enhance the scalability of Smart-Infinity. As a result, Smart-Infinity achieves a significant speedup compared to the baseline.

Motivation

The Large Language Models (LLMs) is mainly driven by the increase in the number of parameters. This has led to substantial memory capacity requirements, necessitating the use of dozens of GPUs just to meet the capacity. One popular solution to this is storage-offloaded training, which uses host memory and storage as an extended memory hierarchy. However, this obviously comes at the cost of storage bandwidth bottleneck because storage devices have orders of magnitude lower bandwidth compared to that of GPU device memories. Our work, Smart-Infinity, addresses the storage bandwidth bottleneck of storage-offloaded LLM training using near-storage processing devices on a real system.


Content

Codebases

Setups

Hardware

NVIDIA RTX A100-GPU (40GB) server with 2x 48-core Intel Xeon(R) Gold 6342 CPU and 32*32GB of DDR4 RAM, Samsung SmartSSD.

Operating System

Ubutun 20.04 with Linux kernel 5.4.0-156

Software

CUDA 11.6, PyTorch 1.12.1

Overall Steps

1. See setup

The setup folder contains how to install mandatory libararies and configurations of our work. The setup can be changed when the experimental setup is different.

2. See hls_smartInfinity

Our main contribution is performing parameter update in CSD, so device binary file for FPGA is needed. hls_smartInfinity folder contains how to make binary file for parameter update, the result of the process is single binary file in the designated folder.

3. Run training

After all the setups are prepared, you can get started with run_smartinfinity.sh as a entry file of our work.

Some Tips

We recommend not to use docker because P2P direct communication feature of Xilinx FPGA seems to not properly work in container.

See DeepSpeedExample/example/ds_zero_stage_infinity-nvme.json for important hyperparameters for using SmartInfinity.

Roadmap

We plan to work on the following features.

  • Conda or Docker package release for reproducibility
  • Various data types support for host and hls codes
  • Host memory optimization

smart-infinity's People

Contributors

hongsunjang avatar iamjinholee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.