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]: schedule-free needs version upgrade #645

Open
dxqbYD opened this issue Jan 16, 2025 · 0 comments
Open

[Bug]: schedule-free needs version upgrade #645

dxqbYD opened this issue Jan 16, 2025 · 0 comments
Labels
bug Something isn't working P1 Major feature in OT malfunctioning. >=collaborators only.

Comments

@dxqbYD
Copy link
Collaborator

dxqbYD commented Jan 16, 2025

What happened?

Discord user report:

Traceback (most recent call last):
  File "C:\Users\rolan\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "C:\Users\rolan\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\rolan\Desktop\OneTrainer-master\modules\ui\TrainUI.py", line 566, in training_thread_function
    trainer.end()
  File "C:\Users\rolan\Desktop\OneTrainer-master\modules\trainer\GenericTrainer.py", line 754, in end
    self.backup(self.model.train_progress)
  File "C:\Users\rolan\Desktop\OneTrainer-master\modules\trainer\GenericTrainer.py", line 424, in backup
    self.model.optimizer.eval()
  File "C:\Users\rolan\Desktop\OneTrainer-master\venv\lib\site-packages\schedulefree\adamwschedulefree.py", line 85, in eval
    p.data.lerp(end=state['z'], weight=1-1/beta1)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

What did you expect would happen?

schedule-free seems to need an upgrade, because they have changed this line since 1.3:
facebookresearch/schedule_free@5225d9b

latest version is 1.4

Relevant log output

Output of pip freeze

No response

@dxqbYD dxqbYD added the bug Something isn't working label Jan 16, 2025
@dxqbYD dxqbYD changed the title [Bug]: p.data.lerp_(end=state['z'], weight=1-1/beta1) RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! [Bug]: schedule-free needs version upgrade Jan 18, 2025
@O-J1 O-J1 added the P1 Major feature in OT malfunctioning. >=collaborators only. label Feb 3, 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 P1 Major feature in OT malfunctioning. >=collaborators only.
Projects
None yet
Development

No branches or pull requests

2 participants