Update generation.py - #653
ahmetozer27 wants to merge 1 commit into
Conversation
Fix torch checkpoint loading: set weights_only=False to avoid AttributeError
|
_pickle.UnpicklingError: Weights only load failed. (1) In PyTorch 2.6, we changed the default value of the (2) Alternatively, to load with Check the documentation of torch.load to learn more about types accepted by default with weights_only |
Fix torch checkpoint loading: set weights_only=False to avoid AttributeError