Skip to content

Commit

Permalink
update format script
Browse files Browse the repository at this point in the history
  • Loading branch information
YangWang92 committed Oct 28, 2024
1 parent 517ecb8 commit 8e3c9ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

# Format Python files using yapf
echo "Running yapf..."
yapf --recursive . --in-place
find . -type f -name "*.py" \
! -path "./build/*" \
! -path "./.git/*" \
! -path "*.egg-info/*" \
-print0 | xargs -0 yapf --in-place

# Format Python imports using isort
echo "Running isort..."
Expand Down
4 changes: 1 addition & 3 deletions vptq/layers/vqlinear.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,9 +640,7 @@ def dequant(self):
if self.vector_quant_dim == "in":
assert True, "Not implemented"
else:
qweight_outlier = qweight_outlier[
:-self.outlier_padding,
]
qweight_outlier = qweight_outlier[:-self.outlier_padding,]
# print('qweight: ', qweight.shape)
# print('qweight_outlier: ', qweight_outlier.shape)
qweight = torch.cat([qweight_outlier, qweight], dim=1)
Expand Down

0 comments on commit 8e3c9ec

Please sign in to comment.