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

Unsuccessfully concatenating prefix__projection and text embedding #90

Open
qsuzer opened this issue Dec 15, 2024 · 0 comments
Open

Unsuccessfully concatenating prefix__projection and text embedding #90

qsuzer opened this issue Dec 15, 2024 · 0 comments

Comments

@qsuzer
Copy link

qsuzer commented Dec 15, 2024

I have successed running the parse_coco.py file and the output of clip was stored in my data files. Then I tried to run the gpt2 fine-tune program. An error was reported as below:
image
It seemed that the error happened in the 234th line when I concatenated the prefix projection and the embedding text.
image
I printed the shape of those tensors below:
prefix-----------------(40,1,512,512)
self.clip_project(prefix)-------------------(40,1,512,7680)
prefix_projection-----------(20480,10,768)
embedding_text---------------------(40,41,768)
I thought the error was that the shape of prefix_projection should be (batch_size,prefix_length,embedding_size).
I wondered what shape of prefix should be.
Thanks

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