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

size mismatch for transformer.text_embed.text_embed.weight: copying a param with shape torch.Size([2546, 100]) from checkpoint, the shape in current model is torch.Size([2546, 512]) #740

Closed
4 tasks done
T-When opened this issue Jan 21, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@T-When
Copy link

T-When commented Jan 21, 2025

Checks

  • This template is only for bug reports, usage problems go with 'Help Wanted'.
  • I have thoroughly reviewed the project documentation but couldn't find information to solve my problem.
  • I have searched for existing issues, including closed ones, and couldn't find a solution.
  • I confirm that I am using English to submit this report in order to facilitate communication.

Environment Details

widow's10 , python 3.9.5 ,

Steps to Reproduce

size mismatch for transformer.text_embed.text_embed.weight: copying a param with shape torch.Size([2546, 100]) from checkpoint, the shape in current model is torch.Size([2546, 512]).
size mismatch for transformer.input_embed.proj.weight: copying a param with shape torch.Size([1024, 300]) from checkpoint, the shape in current model is torch.Size([1024, 712]).

✔️ Expected Behavior

training must be started

❌ Actual Behavior

size mismatch for transformer.text_embed.text_embed.weight: copying a param with shape torch.Size([2546, 100]) from checkpoint, the shape in current model is torch.Size([2546, 512])

@T-When T-When added the bug Something isn't working label Jan 21, 2025
@ZhikangNiu
Copy link
Collaborator

You need to change the text dim from 512 to 100 to load this checkpoint

@SWivid
Copy link
Owner

SWivid commented Jan 27, 2025

Hi @T-When make sure you are using checkpoint of F5 (instead of E2)

@SWivid SWivid closed this as completed Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants