[Quantization] Support Quark Dense + MoE FP8 & FP8 PTPC (#10485)

Co-authored-by: HAI <hixiao@gmail.com>
Co-authored-by: kk <43161300+kkHuang-amd@users.noreply.github.com>
This commit is contained in:
Bowen Bao
2025-11-13 08:16:00 -08:00
committed by GitHub
co-authored by HAI kk
parent e7e89349c9
commit 67e9d287ee
10 changed files with 666 additions and 243 deletions
@@ -84,7 +84,7 @@ class CompressedTensorsW8A8Fp8(CompressedTensorsScheme):
if _use_aiter:
layer.weight = Parameter(
shuffle_weight(weight, (16, 16)), requires_grad=False
shuffle_weight(weight, (16, 16)).t(), requires_grad=False
)
else:
layer.weight = Parameter(weight.t(), requires_grad=False)