Skip to content

Commit

Permalink
use_safetensors not always expressed in params observable in inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
leondz committed Dec 16, 2024
1 parent b04818c commit 58e54c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garak/resources/api/huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _gather_hf_params(self, hf_constructor: Callable):
):
args["trust_remote_code"] = False

if "use_safetensors" in params_to_process and "use_safetensors" not in params:
if "use_safetensors" not in params:
args["use_safetensors"] = True

return args
Expand Down

0 comments on commit 58e54c4

Please sign in to comment.