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

Runtime error on 2nd epoch, trying lora only #56

Open
wasifferoze opened this issue Oct 3, 2023 · 0 comments
Open

Runtime error on 2nd epoch, trying lora only #56

wasifferoze opened this issue Oct 3, 2023 · 0 comments

Comments

@wasifferoze
Copy link

wasifferoze commented Oct 3, 2023

I ran into this problem, I am playing with multirc data and using lora only. First epoch was successful and also validation epoch, on second epoch this error happened, so I am wondering why on 2nd epoch.

Traceback (most recent call last): File "/root/data1/LOMO/src/train_lomo_lora.py", line 181, in <module> train() File "/root/data1/LOMO/src/train_lomo_lora.py", line 174, in train trainer.train() File "/root/data1/LOMO/src/lomo_lora_trainer.py", line 202, in train loss = get_loss(outs.logits, batch['labels'], self.training_args.clip_loss_value) File "/root/data1/LOMO/src/utils.py", line 381, in get_loss loss = loss_fct(shift_logits.view(shift_labels.shape[0] * shift_labels.shape[1], -1), RuntimeError: shape '[4096, -1]' is invalid for input of size 117504000

@wasifferoze wasifferoze changed the title ModuleNotFoundError: No module named 'log' Runtime error on 2nd epoch, trying lora only Oct 11, 2023
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