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

KeyError: 'state_dict' #2

Open
zhuofengli opened this issue Jan 22, 2023 · 0 comments
Open

KeyError: 'state_dict' #2

zhuofengli opened this issue Jan 22, 2023 · 0 comments

Comments

@zhuofengli
Copy link

I hit the following stack trace
Traceback (most recent call last): File "/Users/zhuofengli/Ckpt2Diff/ckpt2diff.py", line 154, in <module> wizard() File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/Users/zhuofengli/Ckpt2Diff/ckpt2diff.py", line 148, in wizard convert(converter, CKPT_FILE, load_config(CONFIG_FILE, DEFAULT_CONFIG_URL), scheduler, ema, HF_MODEL_DIR) File "/Users/zhuofengli/Ckpt2Diff/ckpt2diff.py", line 89, in convert convert_full_checkpoint( File "<string>", line 806, in convert_full_checkpoint KeyError: 'state_dict'
any way to get around it?

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

1 participant