Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 9 commits into from
Jul 16, 2024

Conversation

BurkeHulk
Copy link

@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

📝 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

@BurkeHulk BurkeHulk requested a review from a team as a code owner July 4, 2024 12:46
colossalai/quantization/fp8.py Outdated Show resolved Hide resolved
colossalai/quantization/fp8.py Outdated Show resolved Hide resolved
colossalai/quantization/fp8.py Outdated Show resolved Hide resolved
@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
5 of 6 checks passed
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.

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