Skip to content

Commit 5902c24

Browse files
Merge pull request #77 from iqbal-saraf/main
test: int8 unit tests for aiu add-ons
2 parents e9bc8d6 + 1dfe13a commit 5902c24

7 files changed

+25
-5
lines changed

tests/aiu_addons/conftest.py

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,31 @@ def get_gptq_gemm_inputs(request) -> tuple[torch.Tensor, ...]:
7474
"atype": "per_tensor_symm", # per_tensor_asymm, per_token
7575
"smoothquant": False,
7676
},
77-
# {
78-
# "wtype": "per_channel", # per_channel
79-
# "atype": "per_tensor_symm", # per_tensor_asymm, per_token
80-
# "smoothquant": False,
81-
# },
77+
{
78+
"wtype": "per_tensor", # per_channel
79+
"atype": "per_tensor_asymm", # per_tensor_asymm, per_token
80+
"smoothquant": False,
81+
},
82+
{
83+
"wtype": "per_channel", # per_channel
84+
"atype": "per_tensor_symm", # per_tensor_asymm, per_token
85+
"smoothquant": False,
86+
},
87+
{
88+
"wtype": "per_tensor", # per_channel
89+
"atype": "per_token", # per_tensor_asymm, per_token
90+
"smoothquant": False,
91+
},
92+
{
93+
"wtype": "per_channel", # per_channel
94+
"atype": "per_tensor_asymm", # per_tensor_asymm, per_token
95+
"smoothquant": False,
96+
},
97+
{
98+
"wtype": "per_channel", # per_channel
99+
"atype": "per_token", # per_tensor_asymm, per_token
100+
"smoothquant": False,
101+
},
82102
]
83103

84104

Binary file not shown.
Binary file not shown.
3.06 KB
Binary file not shown.
Binary file not shown.
-192 Bytes
Binary file not shown.
2.99 KB
Binary file not shown.

0 commit comments

Comments
 (0)