Skip to content

Commit 5b45869

Browse files
committed
Fixes
2 parents 83795a6 + 894857e commit 5b45869

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

torchao/dtypes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
)
1515
from .nf4tensor import NF4Tensor, to_nf4
1616
from .uintx import (
17-
BlockSparseLayout,
1817
CutlassInt4PackedLayout,
1918
Int4CPULayout,
2019
Int4XPULayout,
@@ -29,6 +28,7 @@
2928
UintxLayout,
3029
to_marlinqqq_quantized_intx,
3130
)
31+
from .uintx.block_sparse_layout import BlockSparseLayout
3232
from .utils import (
3333
Layout,
3434
PlainLayout,

torchao/dtypes/affine_quantized_tensor_ops.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
_linear_f16_bf16_act_floatx_weight_check,
2626
_linear_f16_bf16_act_floatx_weight_impl,
2727
)
28+
from torchao.prototype.dtypes.uintx.cutlass_int4_packed_layout import (
29+
_linear_int4_act_int4_weight_cutlass_check,
30+
_linear_int4_act_int4_weight_cutlass_impl,
31+
_linear_int8_act_int4_weight_cutlass_check,
32+
_linear_int8_act_int4_weight_cutlass_impl,
33+
)
2834
from torchao.dtypes.uintx.dyn_int8_act_int4_wei_cpu_layout import (
2935
_linear_int8_act_int4_weight_cpu_check,
3036
_linear_int8_act_int4_weight_cpu_impl,
@@ -84,13 +90,7 @@
8490
_linear_bf16_act_uint4_weight_check,
8591
_linear_bf16_act_uint4_weight_impl,
8692
)
87-
from torchao.prototype.dtypes.uintx.cutlass_int4_packed_layout import (
88-
_linear_int4_act_int4_weight_cutlass_check,
89-
_linear_int4_act_int4_weight_cutlass_impl,
90-
_linear_int8_act_int4_weight_cutlass_check,
91-
_linear_int8_act_int4_weight_cutlass_impl,
92-
)
93-
from torchao.prototype.sparsity.block_sparse_layout import (
93+
from torchao.prototype.dtypes.uintx.block_sparse_layout import (
9494
_linear_int8_act_int8_weight_block_sparse_check,
9595
_linear_int8_act_int8_weight_block_sparse_impl,
9696
)

torchao/dtypes/uintx/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
from .block_sparse_layout import (
2-
BlockSparseLayout,
3-
)
41
from .cutlass_int4_packed_layout import (
52
CutlassInt4PackedLayout,
63
)
@@ -39,7 +36,6 @@
3936

4037
__all__ = [
4138
"UintxLayout",
42-
"BlockSparseLayout",
4339
"MarlinSparseLayout",
4440
"SemiSparseLayout",
4541
"TensorCoreTiledLayout",

0 commit comments

Comments
 (0)