Skip to content

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

fix low_gpu default value, refine doc (#1520)

Weiwei279637de61c9
diff --git a/auto_round/compressors/diffusion/compressor.py b/auto_round/compressors/diffusion/compressor.py
index 6d9580e4f..50e807320 100644
--- a/auto_round/compressors/diffusion/compressor.py
+++ b/auto_round/compressors/diffusion/compressor.py
@@ -94,7 +94,7 @@ class DiffusionCompressor(BaseCompressor):
nsamples: int = 128,
batch_size: int = 8,
gradient_accumulate_steps: int = 1,
- low_gpu_mem_usage: bool = True,
+ low_gpu_mem_usage: bool = False,
device_map: Union[str, torch.device, int, dict] = 0,
enable_torch_compile: bool = False,
seed: int = 42,
diff --git a/auto_round/compressors/mllm/compressor.py b/auto_round/compressors/mllm/compressor.py
index 4dcd35670..e3842768c 100644
--- a/auto_round/compressors/mllm/compressor.py
+++ b/auto_round/compressors/mllm/compressor.py
@@ -135,7 +135,7 @@ class MLLMCompressor(BaseCompressor):
enable_minmax_tuning (bool): Whether to enable min-max tuning (default is True).
lr (float): The learning rate (default is 0.005).
minmax_lr (float): The learning rate for min-max tuning (default is None).
- low_gpu_mem_usage (bool): Whether to use low GPU memory (default is True).
+ low_gpu_mem_usage (bool): Whether to use low GPU memory (default is False).
iters (int): Number of iterations (default is 200).
seqlen (int): Length of the sequence.
nsamples (int): Number of samples (default is 128).
@@ -186,7 +186,7 @@ class MLLMCompressor(BaseCompressor):
nsamples: int = 128,
batch_size: int = 8,
gradient_accumulate_steps: int = 1,
- low_gpu_mem_usage: bool = True,
+ low_gpu_mem_usage: bool = False,
device_map: Union[str, torch.device, int, dict] = 0,
enable_torch_compile: bool = False,
seed: int = 42,