Skip to content

Commit

Permalink
fix eval trust_remote_code (#424)
Browse files Browse the repository at this point in the history
Signed-off-by: n1ck-guo <[email protected]>
  • Loading branch information
n1ck-guo authored Jan 26, 2025
1 parent db8088b commit 5c075a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_round/script/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5c075a9

Please sign in to comment.