fix: pytorch fixes for pytorch>2.6 blackwell#1313
Open
0xrushi wants to merge 1 commit intom-bain:mainfrom
Open
fix: pytorch fixes for pytorch>2.6 blackwell#13130xrushi wants to merge 1 commit intom-bain:mainfrom
0xrushi wants to merge 1 commit intom-bain:mainfrom
Conversation
|
Hi @Barabazs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves errors like
_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_onlyargument intorch.loadfromFalsetoTrue. Re-runningtorch.loadwithweights_onlyset toFalsewill likely succeed, but it can result in arbitrary code execution. Do it only if you got the file from a trusted source.(2) Alternatively, to load with
weights_only=Trueplease check the recommended steps in the following error message.WeightsUnpickler error: Unsupported global: GLOBAL pyannote.audio.core.task.Resolution was not an allowed global by default. Please use
torch.serialization.add_safe_globals([pyannote.audio.core.task.Resolution])or thetorch.serialization.safe_globals([pyannote.audio.core.task.Resolution])context manager to allowlist this global if you trust this class/function.