Add accelerate to poetry dependencies
liutianlin0121 opened this issue · 2 comments
Hey Costa,
It seems that the 'accelerate' package isn't part of the poetry dependencies, although we're currently using it. I can submit a PR to update the pyproject.toml
and poetry.lock
files to include accelerate.
(I see! reward_model.module
is needed when using multiple GPUs with accelerate.)
Tianlin
Hi @liutianlin0121, thanks for this issue. I can't believe that I didn't add accelerate
to poetry. Could you make a PR? You can probably run poetry add accelerate@latest
.
(I see! reward_model.module is needed when using multiple GPUs with accelerate.)
Yeah, so this is an unfortunate limitation of torch: for some reason under the distributed mode, the module is no longer directly accessible. Torch also kind of forces you to use exclusively forward
function. In comparison, jax doesn't have these two issues.
I see, thank you!