Skip to content

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

fix eval trust_remote_code (#424)

Heng Guo5c075a9f7c0d
diff --git a/auto_round/script/llm.py b/auto_round/script/llm.py
index 2779a229f..f6b6e1b4d 100644
--- a/auto_round/script/llm.py
+++ b/auto_round/script/llm.py
@@ -567,7 +567,7 @@ def tune(args):
def _eval_init(tasks, model_path, device, disable_trust_remote_code=False):
device_str, parallelism = set_cuda_visible_devices(device)
- model_args = f"pretrained={model_path},trust_remote_code={disable_trust_remote_code}"
+ model_args = f"pretrained={model_path},trust_remote_code={not disable_trust_remote_code}"
if parallelism:
model_args += ",parallelize=True"
if isinstance(tasks, str):