Merge commit from fork
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user