Skip to content

PTQ-Level Efficiency, QAT-Level Accuracy | 训练后量化的效率,量化感知训练的精度

FIXBUG: CPU Offloading for Cache Blocks in Low-Memory GPU Systems or Single GPU on ROCM Configs (#703)

JartX6180041241f5
diff --git a/auto_round/utils.py b/auto_round/utils.py
index 24d1b99a3..f7fe856c8 100644
--- a/auto_round/utils.py
+++ b/auto_round/utils.py
@@ -2066,4 +2066,7 @@ def out_of_vram(error_msg):
# XPU
if "UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY" in error_msg:
return True
+ # ROCM
+ if "HIP out of memory. Tried to allocate" in error_msg:
+ return True
return False