Skip to content

Commit 53240c6

Browse files
committed
up
1 parent 1e4cb0b commit 53240c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/quantizers/torchao/torchao_quantizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def get_cuda_warm_up_factor(self):
295295
- Use a division factor of 4 for int8 weights
296296
"""
297297
# Original mapping for non-AOBaseConfig types
298-
map_to_target_dtype = {"int4_*": 8, "int8_*": 4, "float8*": 4}
298+
map_to_target_dtype = {"int4_*": 8, "int8_*": 4, "uint*": 8, "float8*": 4}
299299
quant_type = self.quantization_config.quant_type
300300
for pattern, target_dtype in map_to_target_dtype.items():
301301
if fnmatch(quant_type, pattern):

0 commit comments

Comments
 (0)