PTQ-Level Efficiency, QAT-Level Accuracy | 训练后量化的效率,量化感知训练的精度
fix hpu typo (#30)
WeiweiZhang16815f8b66be4
diff --git a/auto_round/utils.py b/auto_round/utils.pyindex 2356214eb..fec585402 100644--- a/auto_round/utils.py+++ b/auto_round/utils.py@@ -514,7 +514,7 @@ def detect_device(device=None):if torch.cuda.is_available():device = torch.device("cuda:0")logger.info("Using GPU device")- elif torch.hpu.is_available():+ elif is_hpu_available:device = torch.device("hpu")logger.info("Using HPU device")# Use CPU as a fallback