Skip to content

Commit

Permalink
[Bugfix] fix for deepseek w4a16 (vllm-project#8906)
Browse files Browse the repository at this point in the history
Co-authored-by: mgoin <[email protected]>
  • Loading branch information
2 people authored and siddharth9820 committed Sep 30, 2024
1 parent e4abebf commit cfd055c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions vllm/model_executor/layers/quantization/kernels/marlin.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ def can_implement(cls,
"Marlin, supported group sizes are: "\
f"{MARLIN_SUPPORTED_GROUP_SIZES}"

return check_marlin_supports_shape(c.partition_weight_shape[0],
c.partition_weight_shape[1],
c.full_weight_shape[1],
c.group_size)
return check_marlin_supports_shape(
c.partition_weight_shape[1], # out_features
c.partition_weight_shape[0], # in_features
c.full_weight_shape[0], # in_features
c.group_size)

# note assumes that
# `weight_packed` is: {input_dim = 0, output_dim = 1, packed_dim = 0}
Expand Down

0 comments on commit cfd055c

Please sign in to comment.