Skip to content

[ROCm] Support mxfp8 on gfx950. - #2222

Merged
tianyu-l merged 3 commits into
pytorch:mainfrom
RuibinCheung:rocm/support_mxfp8
Jan 20, 2026
Merged

tianyu-l merged 3 commits into
pytorch:mainfrom
RuibinCheung:rocm/support_mxfp8

Conversation

@RuibinCheung

Copy link
Copy Markdown
Contributor
  • Support mxfp8 on gfx950.

It depends on TorchAO (pytorch/ao#3620).

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 13, 2026
@RuibinCheung
RuibinCheung marked this pull request as draft January 13, 2026 06:40
@RuibinCheung RuibinCheung changed the title [ROCm] Support mxfp8 on gfx950. [ROCm] Support mxfp8 on gfx950. (WIP) Jan 13, 2026
@RuibinCheung RuibinCheung changed the title [ROCm] Support mxfp8 on gfx950. (WIP) [ROCm] Support mxfp8 on gfx950. Jan 16, 2026
@RuibinCheung
RuibinCheung marked this pull request as ready for review January 16, 2026 03:13
@RuibinCheung

Copy link
Copy Markdown
Contributor Author

Ready review because the depend PR is merged into TorchAO.

@tianyu-l tianyu-l left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. One nit comment.

Comment thread torchtitan/tools/utils.py Outdated
)


def is_rocm() -> bool:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's only used in the function below, can we merge the code into it, instead of making it standalone? We can revisit this later when things change.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK. Thx.

), "MXFP8 is only supported on SM100 or architectures"
assert has_cuda_capability(10, 0) or has_rocm_capability(
9, 5
), "MXFP8 is only supported on SM100 or later or ROCm gfx950 or later"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please mention counterpart of ROCm, e.g.

Suggested change
), "MXFP8 is only supported on SM100 or later or ROCm gfx950 or later"
), "MXFP8 is only supported on CUDA SM100 or later, or ROCm gfx950 or later"

or Blackwell

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK. Thx.

@RuibinCheung
RuibinCheung requested a review from tianyu-l January 19, 2026 07:56
@RuibinCheung

Copy link
Copy Markdown
Contributor Author

Seems the Pyrefly check failed but I don't think my change affect these code. Could you help me take a look? @tianyu-l

@tianyu-l
tianyu-l merged commit a25dd8f into pytorch:main Jan 20, 2026
@RuibinCheung
RuibinCheung deleted the rocm/support_mxfp8 branch January 20, 2026 06:21
wwwjn pushed a commit to wwwjn/torchtitan that referenced this pull request Jan 30, 2026
* Support mxfp8 on gfx950.

It depends on TorchAO (pytorch/ao#3620).
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 13, 2026
* Support mxfp8 on gfx950.

It depends on TorchAO (pytorch/ao#3620).
TXacs pushed a commit to McmillanTAC/torchtitan that referenced this pull request Apr 13, 2026
* Support mxfp8 on gfx950.

It depends on TorchAO (pytorch/ao#3620).
ACharacterInASimulation pushed a commit to ACharacterInASimulation/torchtitan that referenced this pull request Apr 21, 2026
* Support mxfp8 on gfx950.

It depends on TorchAO (pytorch/ao#3620).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. module: rocm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants