Closed batuhan3526 closed 6 months ago
Hey @batuhan3526, sorry for the late reply. The default for strategy
in the Trainer is auto
, which will try to use both of your GPUs. If you want to use only one you can try:
devices
argument in the model's constructor, which will then be passed to the Trainer, e.g. NBEATS(input_size=2 * horizon, h=horizon, max_epochs=50, accelerator='gpu', devices=0)
.os.environ['CUDA_VISIBLE_DEVICES'] = '0'
What happened + What you expected to happen
I has discovered this library. I wanted to give a try. I just copied overview page's code then got this error. I have 2 GPU. I think it's a problem with Multi-GPU as it gives DDP error. I guess the library automatically selects cuda:0 and I'm skeptical about Multi-GPU compatibility. There isn't enough throughput to use a multi-GPU. But I think I should be able to pick a single GPU and continue.
Code:
Versions / Dependencies
py: 3.9 os: win 11 pro neuralforecast : 1.5.0 pandas: 1.5.3 numpy: 1.24.3
Issue Severity
High: It blocks me from completing my task.