Skip to content
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

Blacklist Pickle Error (Invalid load key) #36

Open
desegura opened this issue Jun 23, 2020 · 9 comments
Open

Blacklist Pickle Error (Invalid load key) #36

desegura opened this issue Jun 23, 2020 · 9 comments

Comments

@desegura
Copy link

Hi friends,

When executing it in my Anaconda prompt I got this error:
image

I tried:

  1. redownloading the blacklist.pickle.gz
  2. try with just "blacklist.pickle"
  3. uncompress it
  4. changing the path of the file
  5. dive in stackoverflow for three days for a solution
  6. using double slashes in the filepath
  7. 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? 😕

@turtlesoupy
Copy link
Owner

@desegura what version of Python are you using? For reference, I pickled the file on Python 3.7

@turtlesoupy
Copy link
Owner

(and for reference, you do need to un-gzip before trying to load it in)

@desegura
Copy link
Author

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:

image

I'm on windows 10 v.2004 + every deps installed on my miniconda3 title_maker_pro environment 🤔

@desegura
Copy link
Author

Even on mac I'm having this issue with the blacklist running Python 3.7 as you mention

image

@desegura
Copy link
Author

desegura commented Jun 24, 2020

Okay I think I solved it (using the full path of the file) but:

image

Now looks like there is other problem with the configuration_utils.py and huggingface json server

@turtlesoupy
Copy link
Owner

@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

@desegura
Copy link
Author

Thank you @turtlesoupy idk why but python is giving me some random errors:

image

Can you please indicate the exact configuration you used to run the scripts?

Thanks!

@turtlesoupy
Copy link
Owner

@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

@yongzx
Copy link

yongzx commented Jul 7, 2020

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants