ColossalAI/colossalai
Hanks b480eec738
[Feature]: support FP8 communication in DDP, FSDP, Gemini (#5928)
* support fp8_communication in the Torch DDP grad comm, FSDP grad comm, and FSDP params comm

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* implement communication hook for FSDP params all-gather

* added unit test for fp8 operators

* support fp8 communication in GeminiPlugin

* update training scripts to support fsdp and fp8 communication

* fixed some minor bugs observed in unit test

* add all_gather_into_tensor_flat_fp8

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add skip the test if torch < 2.2.0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add skip the test if torch < 2.2.0

* add skip the test if torch < 2.2.0

* add fp8_comm flag

* rebase latest fp8 operators

* rebase latest fp8 operators

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-08 15:55:01 +08:00
..
_C Clean up 2024-06-07 09:09:29 +00:00
_analyzer [test] Fix/fix testcase (#5770) 2024-06-03 15:26:01 +08:00
accelerator [hotfix] fix typo change MoECheckpintIO to MoECheckpointIO (#5335) 2024-03-05 21:52:30 +08:00
amp [npu] change device to accelerator api (#5239) 2024-01-09 10:20:05 +08:00
auto_parallel [pre-commit.ci] pre-commit autoupdate (#5572) 2024-07-01 17:16:41 +08:00
autochunk [hotfix] Fix examples no pad token & auto parallel codegen bug; (#5606) 2024-04-18 18:15:50 +08:00
booster [Feature]: support FP8 communication in DDP, FSDP, Gemini (#5928) 2024-08-08 15:55:01 +08:00
checkpoint_io [FP8] rebase main (#5963) 2024-08-06 16:29:37 +08:00
cli [devops] fix extention building (#5427) 2024-03-05 15:35:54 +08:00
cluster [FP8] rebase main (#5963) 2024-08-06 16:29:37 +08:00
context [Fix]: implement thread-safety singleton to avoid deadlock for very large-scale training scenarios (#5625) 2024-04-25 14:45:52 +08:00
device [Feature] Distributed optimizers: Lamb, Galore, CAME and Adafactor (#5694) 2024-05-14 13:52:45 +08:00
fx [test] Fix/fix testcase (#5770) 2024-06-03 15:26:01 +08:00
inference [FP8] rebase main (#5963) 2024-08-06 16:29:37 +08:00
interface [Feature] Distributed optimizers: Lamb, Galore, CAME and Adafactor (#5694) 2024-05-14 13:52:45 +08:00
kernel [NFC] Fix code factors on inference triton kernels (#5743) 2024-05-21 22:12:15 +08:00
lazy [lazy] fix lazy cls init (#5720) 2024-05-17 18:18:59 +08:00
legacy [FP8] rebase main (#5963) 2024-08-06 16:29:37 +08:00
logging [misc] update pre-commit and run all files (#4752) 2023-09-19 14:20:26 +08:00
moe [FP8] rebase main (#5963) 2024-08-06 16:29:37 +08:00
nn [misc] fix dist logger (#5782) 2024-06-05 15:04:22 +08:00
pipeline [FP8] rebase main (#5963) 2024-08-06 16:29:37 +08:00
quantization [Feature]: support FP8 communication in DDP, FSDP, Gemini (#5928) 2024-08-08 15:55:01 +08:00
shardformer [FP8] rebase main (#5963) 2024-08-06 16:29:37 +08:00
tensor [fp8] support fp8 amp for hybrid parallel plugin (#5975) 2024-08-07 18:21:08 +08:00
testing [misc] Accelerate CI for zero and dist optim (#5758) 2024-06-05 11:25:19 +08:00
utils Merge pull request #5310 from hpcaitech/feature/npu 2024-01-29 13:49:39 +08:00
zero [Feature]: support FP8 communication in DDP, FSDP, Gemini (#5928) 2024-08-08 15:55:01 +08:00
__init__.py [devops] remove post commit ci (#5566) 2024-04-08 15:09:40 +08:00
initialize.py [FP8] rebase main (#5963) 2024-08-06 16:29:37 +08:00