FireRedASR icon indicating copy to clipboard operation
FireRedASR copied to clipboard

fix torch error

Open eschmidbauer opened this issue 8 months ago • 1 comments

fixes error:

torch/serialization.py", line 1470, in load
    raise pickle.UnpicklingError(_get_wo_message(str(e))) from None
_pickle.UnpicklingError: Weights only load failed. This file can still be loaded, to do so you have two options, do those steps only if you trust the source of the checkpoint. 
	(1) In PyTorch 2.6, we changed the default value of the `weights_only` argument in `torch.load` from `False` to `True`. Re-running `torch.load` with `weights_only` set to `False` will likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source.

eschmidbauer avatar Apr 17 '25 13:04 eschmidbauer

Thanks for your pull request! We'll review the code.

FireRedTeam avatar Apr 18 '25 03:04 FireRedTeam