-
Notifications
You must be signed in to change notification settings - Fork 87
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
ImportError: cannot import name 'checkpoint' from 'transformers.models.t5.modeling_t5' #47
Comments
I did check the source code and document of Transformers modeling_t5 but I could not find checkpoint definition. |
same question +1 @yunfanjiang |
Thanks for contributing such inspiring work. I guess this problem might also related to HF version. |
Yes, I think the problem should lay in the version conflict of transformers. Maybe '''checkpoint''' is removed after a certain update so that I cannot find it in my installed transformers 4.36.1. Unfortunately I spot that there are no detailed versions of packages in requirement and it is hard to find supports from the community. Hope there could be more explanations and discussions. |
Yeah, the transformers version seems to be the issue. Version 4.20.0 worked for me.
|
Thanks for your information, it's helpful. |
Thanks, |
#20 (comment) |
Hello, thanks for your information. |
I just follow the instruction of #20 (comment) and load the tokenizer from local directory. It works fine for me totally. I guess the assertion is caused by the miss of VIMA model checkpoint. Did you ever download the checkpoint file 200M.ckpt from HF and place it into your code directory? I cannot find it from the file structure you posted. |
Many thanks, it's working after following your suggestion. 🙂🌱 |
Downgrading to version |
Thanks for your great work. I successfully install vima and vima_bench. However, when I try to run the example by '''python3 scripts/example.py --ckpt=../VimaBench/ckpts/200M.ckpt --partition=placement_generalization --task=follow_order''', I face the problem of failure to import checkpoint when import modeling_t5 at vima/nn/prompt_encoder/prompt_encoder.py. Did I miss some requirements and how can I fix this?
The text was updated successfully, but these errors were encountered: