Skip to content

Commit

Permalink
adds missing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jun 17, 2024
1 parent b54e8f9 commit 610a87b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm/model_executor/layers/tuned_gemm.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def mm(self, inp, weights):
]).drop_duplicates()
self.tuned_df.to_csv(self.untune_path, index=False)

if ((n == 4 or n == 3 or n== 2 or n == 1)
if ((n == 4 or n == 3 or n == 2 or n == 1)
and k % 8 == 0
and inp_view.dtype == torch.float16):
out = torch.empty(inp_view.shape[0],
weights.shape[0],
Expand Down

0 comments on commit 610a87b

Please sign in to comment.