Error loading Pytorch model checkpoint: _pickle.UnpicklingError: invalid load key, ‘x1f’
I’m trying to load the weights of a Pytorch model but getting this error: _pickle.UnpicklingError: invalid load key, 'x1f'.
Error loading Pytorch checkpoint: _pickle.UnpicklingError: invalid load key, ‘x1f’
I’m trying to load the weights of a Pytorch model but getting this error: _pickle.UnpicklingError: invalid load key, 'x1f'.
Pickle load to CPU of an internal model
lets state clearly my problem. I have a feature_extractor.pkl file that denotes a FeatureExtractor object which object has inside a BERT model like the following class