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

[BUG] Error in train.py #289

Open
erlebach opened this issue Oct 12, 2024 · 1 comment
Open

[BUG] Error in train.py #289

erlebach opened this issue Oct 12, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@erlebach
Copy link

erlebach commented Oct 12, 2024

In train.py, I see the lines:

    model = model().to(accelerator.device) 

This did not work on my mac, because model() requires an argument since it calls the forward method.
The following line works correctly on the mac:

    model = model.to(accelerator.device)

I do not understand why the code worked at all. Thanks.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@erlebach erlebach added the bug Something isn't working label Oct 12, 2024
@kyegomez
Copy link
Owner

@erlebach i don't know what code you're running?

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

2 participants