New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run BertChecker #77
Comments
Same issue as above: grammar_correction.ipynb Cell 3 in <cell line: 6>() File ~/.local/lib/python3.10/site-packages/neuspell/corrector_subwordbert.py:49, in CorrectorSubwordBert.from_pretrained(self, ckpt_path, vocab, weights) File ~/.local/lib/python3.10/site-packages/neuspell/seq_modeling/subwordbert.py:23, in load_pretrained(model, checkpoint_path, optimizer, device) File ~/miniconda3/envs/gnnVD/lib/python3.10/site-packages/torch/serialization.py:713, in load(f, map_location, pickle_module, **pickle_load_args) UnpicklingError: invalid load key, '<'. |
same here |
Was this resolved? I am seeing the same error |
Also experiencing this error. Anyone figure out a workaround? |
@richard-sobey I've found that if you load the model files from somewhere that is not their google drive it works - I uploaded one to huggingface under pszemraj/neuspell-scrnn-probwordnoise Getting LFS to work on Colab can be a bit tricky so I would try from somewhere else, but if I have time later this week or next maybe I can put an example notebook in the model card |
@pszemraj cheers mate this worked for me Did you simply upload the model files from their google drive to HF? Keen to try get the Bert implementation working |
@richard-sobey if I remember correctly: I think so, or a previous version that was not corrupted. Something like that. Also, I uploaded this one which works with The reason why 'if I remember' is because I've been using this workaround since January/February this year but used to have the backups on my dropbox 😂 since it's still not fixed, I figured I would post them |
@pszemraj you're a legend thank you! |
In case other are like me and looking for the checkpoints, the original google drive folder with all models are here. |
Please refer to this comment for solving this issue |
hi, i have the same error how did you fix this error? Can you more understandable please, thank you in advance |
The text was updated successfully, but these errors were encountered: