this-word-does-not-exist
this-word-does-not-exist copied to clipboard
Blacklist Pickle Error (Invalid load key)
Hi friends,
When executing it in my Anaconda prompt I got this error:
I tried:
- redownloading the blacklist.pickle.gz
- try with just "blacklist.pickle"
- uncompress it
- changing the path of the file
- dive in stackoverflow for three days for a solution
- using double slashes in the filepath
- double slash + different filename
Finally I guess '\x1f' refers to an error reading '\b' in the blacklist_path but I don't really know how to solve it.
Any help please? 😕
@desegura what version of Python are you using? For reference, I pickled the file on Python 3.7
(and for reference, you do need to un-gzip before trying to load it in)
Hi @turtlesoupy I'm using python 3.7.6 and I already un-gzip the blacklist with GNUWin32 / gzip obtaining a .pickle of 90.310 KB but I get a similar error:
I'm on windows 10 v.2004 + every deps installed on my miniconda3 title_maker_pro environment 🤔
Even on mac I'm having this issue with the blacklist running Python 3.7 as you mention
Okay I think I solved it (using the full path of the file) but:
Now looks like there is other problem with the configuration_utils.py and huggingface json server
@desegura I think this has to do with your network set-up on that machine, I'm able to access that URL without any issue: https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-config.json
Thank you @turtlesoupy idk why but python is giving me some random errors:
Can you please indicate the exact configuration you used to run the scripts?
Thanks!
@desegura that error is in the transformers library, it looks like the GPT-2 base model archive it is trying to load is corrupt in some way; perhaps the download was broken?
Anyway, here's a dump of my conda environment: https://gist.github.com/turtlesoupy/aae757ec70f2efd2cc71083255adf4e2. It's running on Ubuntu 20.04 and Python 3.7.6
@desegura I notice that your forward and inverse models still have .tar
suffix. You need to use tar xvzf
to unzip the both .tar.gz
model files.