Skip to content

Commit d2066dc

Browse files
committed
skip fbgemm config tests for 2.5 and below
1 parent b8437cc commit d2066dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/quantization/test_config_serialization.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
UIntXWeightOnlyConfig,
3636
)
3737
from torchao.sparsity.sparse_api import BlockSparseWeightConfig, SemiSparseWeightConfig
38+
from torchao.utils import TORCH_VERSION_AT_LEAST_2_6
3839

3940
# Define test configurations as fixtures
4041
configs = [
@@ -78,9 +79,11 @@
7879
"linear2": Int8DynamicActivationInt4WeightConfig(),
7980
}
8081
),
81-
FbgemmConfig(torch.bfloat16, torch.int4, torch.bfloat16, [1, 1, 256]),
8282
]
8383

84+
if TORCH_VERSION_AT_LEAST_2_6:
85+
configs += [FbgemmConfig(torch.bfloat16, torch.int4, torch.bfloat16, [1, 1, 256])]
86+
8487

8588
# Create ids for better test naming
8689
def get_config_ids(configs):

0 commit comments

Comments
 (0)