-
Couldn't load subscription status.
- Fork 115
Open
Description
Since you are using
Line 182 in 1a8ecce
| model, opt, loader = accelerator.prepare(model, opt, loader) |
do we really need the following,
Line 152 in 1a8ecce
| model = model.to(device) |
Line 196 in 1a8ecce
| x = x.to(device) |
Line 197 in 1a8ecce
| y = y.to(device) |
According to official documentation
https://huggingface.co/docs/accelerate/en/basic_tutorials/migration#training-loop
these appear to be redundant.
Metadata
Metadata
Assignees
Labels
No labels