[DeepEP] support MXFP4 quant#566
Merged
Merged
Conversation
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
added 2 commits
July 8, 2026 21:16
iforgetmyname
approved these changes
Jul 13, 2026
kaniel-outis
approved these changes
Jul 13, 2026
kaniel-outis
approved these changes
Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DeepEP supports MXFP4 quantization (for 910D)
Test Results
================ test_low_latency.py ================
[rank 0] raw_num_tokens: 16, aligned_num_tokens: 16
[rank 1] raw_num_tokens: 16, aligned_num_tokens: 16
[testing] Running with quant_type='mxfp4', data=rand ...
[test] rank=0, low_latency_dispatch, simulated_gemm_x.shape=torch.Size([256, 7168]), simulated_gemm_x.dtype=torch.bfloat16
[test] rank=1, low_latency_dispatch, simulated_gemm_x.shape=torch.Size([256, 7168]), simulated_gemm_x.dtype=torch.bfloat16
[test] rank=0, low_latency_dispatch, packed_recv_count.shape=torch.Size([8]), packed_recv_count=tensor([15, 15, 20, 16, 15, 15, 18, 9], device='npu:0')
[test] rank=0, low_latency_dispatch, packed_recv_x[0].dtype=torch.float4_e2m1fn_x2, packed_recv_x[0].shape=torch.Size([256, 3584])
[test] rank=0, low_latency_dispatch, packed_recv_x[1].dtype=torch.float8_e8m0fnu, packed_recv_x[1].shape=torch.Size([57344])
[test] rank=1, low_latency_dispatch, packed_recv_count.shape=torch.Size([8]), packed_recv_count=tensor([22, 16, 18, 15, 16, 11, 16, 19], device='npu:1')
[test] rank=1, low_latency_dispatch, packed_recv_x[0].dtype=torch.float4_e2m1fn_x2, packed_recv_x[0].shape=torch.Size([256, 3584])
[test] rank=1, low_latency_dispatch, packed_recv_x[1].dtype=torch.float8_e8m0fnu, packed_recv_x[1].shape=torch.Size([57344])
[rank1]:[W623 05:25:23.427888390 compiler_depend.ts:41] Warning: Device do not support double dtype now, dtype cast replace with float. (function operator())
[rank0]:[W623 05:25:23.428825150 compiler_depend.ts:41] Warning: Device do not support double dtype now, dtype cast replace with float. (function operator())
rank 0 PASSED [quant_type='mxfp4'] avg_diff=0.00004, max_diff=1.98265, cosine_diff=0.00775
rank 1 PASSED [quant_type='mxfp4'] avg_diff=-0.00031, max_diff=1.98790, cosine_diff=0.00768
passed