Skip to content

[config] tune gemm and moe for qwen3 480b ptpc model on MI308 - #1084

Closed
gbyu-amd wants to merge 4 commits into
mainfrom
guanbao/tune_gemm_moe_for_qwen3_480b
Closed

gbyu-amd wants to merge 4 commits into
mainfrom
guanbao/tune_gemm_moe_for_qwen3_480b

Conversation

@gbyu-amd

Copy link
Copy Markdown
Contributor

Motivation

Tune PTPC FP8 GEMM with preshuffle weight & MoE for Qwen3-Coder-480b-PTPC model.

@gbyu-amd gbyu-amd changed the title [config] tune gemm and moe for qwen3 480b ptpc model [config] tune gemm and moe for qwen3 480b ptpc model on MI308 Sep 25, 2025
@gbyu-amd

Copy link
Copy Markdown
Contributor Author

@valarLip @yzhou103 Is it possible to merge this pr? or any concern?

@valarLip

Copy link
Copy Markdown
Collaborator

could you move these configs for specific model to https://github.com/ROCm/aiter/tree/main/aiter/configs/model_configs,
this PR #1102 will allow user specified config path

80,4096,6144,2560,20,8,ActivationType.Silu,torch.bfloat16,torch.float8_e4m3fnuz,torch.float8_e4m3fnuz,QuantType.per_Token,1,0,128,0,5613.8608,_ZN5aiter45fmoe_stage1_bf16_pertokenFp8_g1u1_128x128_pf3E,0.0%,3986.8927,moe_ck2stages_gemm2_256x128x128x128_1x4_MulABScaleExpertWeight_v3_Nswizzle0_Quant2_MulRoutedWeight1_F8_F8_B16,0.0%,9600.7535,0,322.1,106.16
80,8192,6144,2560,20,8,ActivationType.Silu,torch.bfloat16,torch.float8_e4m3fnuz,torch.float8_e4m3fnuz,QuantType.per_Token,1,0,128,0,11029.4064,_ZN5aiter45fmoe_stage1_bf16_pertokenFp8_g1u1_128x128_pf3E,0.0%,7854.5058,moe_ck2stages_gemm2_256x128x128x128_1x4_MulABScaleExpertWeight_v3_Nswizzle0_Quant2_MulRoutedWeight1_F8_F8_B16,0.0%,18883.9122,0,327.51,57.97
80,16384,6144,2560,20,8,ActivationType.Silu,torch.bfloat16,torch.float8_e4m3fnuz,torch.float8_e4m3fnuz,QuantType.per_Token,1,0,128,0,21710.7521,_ZN5aiter45fmoe_stage1_bf16_pertokenFp8_g1u1_128x128_pf3E,0.0%,15630.6253,moe_ck2stages_gemm2_256x128x128x128_1x4_MulABScaleExpertWeight_v3_Nswizzle0_Quant2_MulRoutedWeight1_F8_F8_B16,0.0%,37341.3774,0,331.25,33.36
80,32768,6144,2560,20,8,ActivationType.Silu,torch.bfloat16,torch.float8_e4m3fnuz,torch.float8_e4m3fnuz,QuantType.per_Token,1,0,128,0,43290.1287,_ZN5aiter45fmoe_stage1_bf16_pertokenFp8_g1u1_128x128_pf3E,0.0%,31423.8942,moe_ck2stages_gemm2_256x128x128x128_1x4_MulABScaleExpertWeight_v3_Nswizzle0_Quant2_MulRoutedWeight1_F8_F8_B16,0.0%,74714.0229,0,331.12,20.71

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.

there is no need to tune token >1024, it will choose the token==1024 item

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.

Got it. Will remove redundant configs.

@gbyu-amd

Copy link
Copy Markdown
Contributor Author

could you move these configs for specific model to https://github.com/ROCm/aiter/tree/main/aiter/configs/model_configs, this PR #1102 will allow user specified config path

sure, will move to right place.

@zufayu

zufayu commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Hi, thank you for your contribution!

Over the past six months, ROCm/aiter has undergone significant updates and improvements. We're closing this PR for now to keep the backlog manageable — if you're still able to reproduce the issue or the feature is still relevant, we'd love to hear from you! Please give the latest version of the repo a try and feel free to reopen this PR or submit a new one if the problem persists. Looking forward to your continued contributions!

@zufayu zufayu closed this Jun 26, 2026
@zufayu
zufayu deleted the guanbao/tune_gemm_moe_for_qwen3_480b branch August 11, 2026 06:29
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.

5 participants