Skip to content

Commit

Permalink
Apply automatic Ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and yanbing-j committed Nov 21, 2024
1 parent aa7bac0 commit b9d87f5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion torchao/dtypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
from .nf4tensor import NF4Tensor, to_nf4
from .uintx import (
BlockSparseLayout,
Int4CPULayout,
MarlinQQQLayout,
MarlinSparseLayout,
SemiSparseLayout,
TensorCoreTiledLayout,
UintxLayout,
Int4CPULayout,
)
from .utils import (
Layout,
Expand Down
2 changes: 1 addition & 1 deletion torchao/dtypes/uintx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
SemiSparseLayout,
)
from .tensor_core_tiled_layout import (
TensorCoreTiledLayout,
Int4CPULayout,
TensorCoreTiledLayout,
)
from .uintx_layout import (
UintxLayout,
Expand Down
7 changes: 6 additions & 1 deletion torchao/dtypes/uintx/tensor_core_tiled_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
)
from torchao.dtypes.utils import AQTTensorImpl, Layout, is_device
from torchao.quantization.quant_primitives import ZeroPointDomain, _get_reduction_params
from torchao.utils import TORCH_VERSION_AT_LEAST_2_5, TORCH_VERSION_AT_LEAST_2_6, fill_defaults, find_multiple
from torchao.utils import (
TORCH_VERSION_AT_LEAST_2_5,
TORCH_VERSION_AT_LEAST_2_6,
fill_defaults,
find_multiple,
)

aten = torch.ops.aten

Expand Down
4 changes: 2 additions & 2 deletions torchao/quantization/GPTQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,8 @@ def __init__(
),
dtype=torch.uint8,
device=device,
),
)
),
)
else:
self.register_buffer(
"weight",
Expand Down

0 comments on commit b9d87f5

Please sign in to comment.