Bug description In a module that uses a CyclicLR scheduler, training fails with the error TypeError: cannot pickle 'WeakMethod' object. This is not caused by an issue with Lightning, but it took me quite a while to track down the issue, ...
def load_truecasing_model(model_filename): with open(model_filename, 'rb') as bin_file: # from s3://workfit-models/auto-punc/ uni_dist = pickle.load(bin_file) backward_bi_dist = pickle.load(bin_file) forward_bi_dist = pickle.load(bin_file) trigram_dist = pickle.load(bin_file)...
pickle/py37/lib/python3.7/site-packages/cloudpickle/cloudpickle.py", line 482, in dumpreturn Pickler.dump(self, obj)File "/usr/lib/python3.7/pickle.py", line 437, in dumpself.save(obj)File "/usr/lib/python3.7/pickle.py", line 504, in savef(self, obj) # Call unbound method with ...