Skip to content

[feature]: support FP8 communication in pipeline parallelism#5885

Merged
BurkeHulk merged 9 commits intohpcaitech:feature/fp8_commfrom
BurkeHulk:feature/fp8_comm
Jul 16, 2024
Merged

[feature]: support FP8 communication in pipeline parallelism#5885
BurkeHulk merged 9 commits intohpcaitech:feature/fp8_commfrom
BurkeHulk:feature/fp8_comm

Conversation

@BurkeHulk
Copy link
Copy Markdown
Contributor

@BurkeHulk BurkeHulk commented Jul 4, 2024

📌 Checklist before creating the PR

  • I have created an issue for this PR for traceability
  • The title follows the standard format: [doc/gemini/tensor/...]: A concise description
  • I have added relevant tags if possible for us to better distinguish different PRs
  • I have installed pre-commit: pip install pre-commit && pre-commit install

🚨 Issue number

close #5873, close #5886, close #5915

📝 What does this PR do?

Implement per-channel scaling (in PyTorch) for FP8 quantization.
Support PyTorch native FP8 formats.
Refer to:
https://pytorch.org/docs/stable/tensors.html#id7
https://arxiv.org/pdf/2209.05433

Finetuning task accuracy:

Pipeline P. BERT - 4 GPUs GPT2 - 4 GPUs
FP16 0.8418 0.7039
FP8-auto 0.8435 0.7016

@BurkeHulk BurkeHulk requested a review from a team as a code owner July 4, 2024 12:46
Comment thread colossalai/quantization/fp8.py Outdated
Comment thread colossalai/quantization/fp8.py Outdated
Comment thread colossalai/quantization/fp8.py Outdated
Comment thread colossalai/quantization/fp8.py Outdated
@BurkeHulk BurkeHulk enabled auto-merge July 16, 2024 03:21
@BurkeHulk BurkeHulk changed the title Feature/fp8 comm [feature]: support FP8 communication in pipeline parallelism Jul 16, 2024
@BurkeHulk BurkeHulk merged commit 9470701 into hpcaitech:feature/fp8_comm Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: [PyTorch] FP8 all-reduce using all-to-all and all-gather [FEATURE]: [PyTorch] per-channel FP8 quantization

3 participants