Repository navigation
Conversation
Signed-off-by: Evgeny <etsykunov@nvidia.com>
Signed-off-by: Evgeny <etsykunov@nvidia.com>
Signed-off-by: Evgeny <etsykunov@nvidia.com>
for more information, see https://pre-commit.ci
| native.internal = True | ||
| q = NVFP4QDQQuantizer(native) | ||
| q.amax_reduction_group = dist.group.WORLD | ||
| q.with_amax_reduction = True |
There was a problem hiding this comment.
can it support NVFP4 with per token second scale instead of global amax?
| * ``nvfp4_qdq_weight_fwd_bf16_bwd_factory`` models ``X[BF16] x W[NVFP4]`` | ||
| forward and uses BF16 backward. Backward consumes the original inputs and | ||
| the decoded forward QDQ weights. | ||
| * ``mxfp8_nvfp4_qdq_fwd_mxfp8_bwd_factory`` models ``X[MXFP8] x W[NVFP4]`` |
There was a problem hiding this comment.
X[MXFP8_QDQ] x W[NVFP4_QDQ] ?
the same comment is applied to all QDQ types used in the code and description
also in function name may be it is better to explicitly name it as
mxfp8_qdq_nvfp4_qdq_fwd_mxfp8_bwd_factory
I would suggest to add QDQ to all names of mxfp8 and nvfp4 when qdq is applied
rybakov
left a comment
There was a problem hiding this comment.
looks good, with comment about QDQ naming in the description and function names
Signed-off-by: Evgeny <etsykunov@nvidia.com>
Signed-off-by: Evgeny <etsykunov@nvidia.com>
Signed-off-by: Evgeny <etsykunov@nvidia.com>
|
/te-ci pytorch |
[Medium impact] The PR appears safe to merge; the previous grouped-gradient issue is fixed and no new actionable issue was found. SummaryAdds experimental MXFP8 and NVFP4 QDQ quantizers that store decoded values for high-precision GEMMs.
Review was based on source inspection; GPU tests were not run. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Original input] --> B[QDQ quantizer]
B --> C[Decoded high-precision storage]
C --> D[Forward GEMM]
C --> E[Promoted reconstruction dtype]
E --> F[Columnwise quantizer]
F --> G[Backward GEMM]
Reviews (6) · Last reviewed commit: "Preserve QDQ precision in split and all-..." · Reviewed by Greptile |
Signed-off-by: Evgeny <etsykunov@nvidia.com>
|
/te-ci pytorch |
Signed-off-by: Evgeny <etsykunov@nvidia.com>
|
/te-ci pytorch |
zhongbozhu
left a comment
There was a problem hiding this comment.
Is this PR supposed to work with grouped tensor enabled path or split_quantize only?
| high-precision buffer serves both directions). | ||
| """ | ||
|
|
||
| supports_output_dtype = True |
There was a problem hiding this comment.
It seems we are working around the fact that each quantizer subclass exposes a fake dtype, but not the base quantizer. Somewhere in the QDQ impl we need to programmatically change the fake dtype. Instead of creating the second dtype infrastructure, I think it would be nicer to move the fake dtype logic from the base quantizer to the subclasses.
There was a problem hiding this comment.
Sure, fixed. I removed supports_output_dtype and moved dtype resolution into Identity/Hybrid/QDQ.
Signed-off-by: Evgeny <etsykunov@nvidia.com>
Signed-off-by: Evgeny <etsykunov@nvidia.com>
Signed-off-by: Evgeny <etsykunov@nvidia.com>
Signed-off-by: Evgeny <etsykunov@nvidia.com>
This PR enables The grouped tensor path currently does not support any CustomRecipe, which is too convervative given that e.g. |
Signed-off-by: Evgeny <etsykunov@nvidia.com>
Signed-off-by: Evgeny <etsykunov@nvidia.com>
|
/te-ci pytorch |
Description
Adds experimental MXFP8 and NVFP4 quantize–dequantize (QDQ) quantizers for emulating low-precision rounding using high-precision GEMMs, similar to radixark/miles#2864.
Type of change
Changes
Please list the changes introduced in this PR:
Checklist: