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.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too