mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-09 18:17:10 +08:00
Update vllm/model_executor/layers/quantization/kernels/scaled_mm/cutlass.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com> Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
parent
ae36150ec2
commit
abb448b457
@ -89,7 +89,7 @@ class CutlassScaledMMLinearKernel(ScaledMMLinearKernel):
|
|||||||
# It does not depend on scales or azp, so it is the same for
|
# It does not depend on scales or azp, so it is the same for
|
||||||
# static and dynamic quantization.
|
# static and dynamic quantization.
|
||||||
# For more details, see csrc/quantization/w8a8/cutlass/Epilogues.md
|
# For more details, see csrc/quantization/w8a8/cutlass/Epilogues.md
|
||||||
# https://github.com/vllm-project/vllm/blob/8d59dbb00044a588cab96bcdc028006ed922eb06/csrc/quantization/w8a8/cutlass/Epilogues.md
|
# https://github.com/vllm-project/vllm/blob/main/csrc/quantization/w8a8/cutlass/Epilogues.md
|
||||||
if not self.config.input_symmetric:
|
if not self.config.input_symmetric:
|
||||||
weight = getattr(layer, self.w_q_name)
|
weight = getattr(layer, self.w_q_name)
|
||||||
azp_adj = weight.sum(dim=0, keepdim=True, dtype=torch.int32)
|
azp_adj = weight.sum(dim=0, keepdim=True, dtype=torch.int32)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user