Merge commit from fork

This commit is contained in:
Yaowei Zheng
2025-06-26 13:55:42 +08:00
committed by GitHub
parent abc6ce6168
commit 2c26ce6ac4
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ def load_valuehead_params(path_or_repo_id: str, model_args: "ModelArguments") ->
try:
vhead_file = cached_file(filename=V_HEAD_WEIGHTS_NAME, **kwargs)
return torch.load(vhead_file, map_location="cpu")
return torch.load(vhead_file, map_location="cpu", weights_only=True)
except Exception as err:
err_text = str(err)