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

MoRA, type:6 / RuntimeError: mat1 and mat2 shapes cannot be multiplied #14

Open
daebum1994 opened this issue Jul 27, 2024 · 1 comment

Comments

@daebum1994
Copy link

Please tell me the solution
I'm using a gemma-2-9b-it, meta-llama-2-7b-hf
And My custom dataset.

Version

  • torch 2.4.0
  • bitsandbytes 0.43.2
  • accelerate 0.33.0

Error Message

[rank0]:     return self._call_impl(*args, **kwargs)
[rank0]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/root/anaconda3/envs/mora/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1603, in _call_impl
[rank0]:     result = forward_call(*args, **kwargs)
[rank0]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/root/anaconda3/envs/mora/lib/python3.11/site-packages/torch/nn/modules/linear.py", line 117, in forward
[rank0]:     return F.linear(input, self.weight, self.bias)
[rank0]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]: RuntimeError: mat1 and mat2 shapes cannot be multiplied (13920x3584 and 248x248)
  0%|                                                                                  | 0/76 [00:00<?, ?it/s
@kongds
Copy link
Owner

kongds commented Jul 27, 2024

Hello, Can you provide the full traceback of error message?

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

2 participants