You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I'm encountering an issue when trying to run training on multiple GPUs using DJL. I'm using the following code: DefaultTrainingConfig config = new DefaultTrainingConfig(loss); config.optExecutorService(Executors.newFixedThreadPool(16));
... EasyTrain.trainBatch(trainer, batch); trainer.step();
However, I'm getting the following error: "Gradient values are all zeros, please call gradientCollector.backward() on your target NDArray (usually loss), before calling step(). "
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
I'm encountering an issue when trying to run training on multiple GPUs using DJL. I'm using the following code:
DefaultTrainingConfig config = new DefaultTrainingConfig(loss);
config.optExecutorService(Executors.newFixedThreadPool(16));
...
EasyTrain.trainBatch(trainer, batch);
trainer.step();
However, I'm getting the following error: "Gradient values are all zeros, please call gradientCollector.backward() on your target NDArray (usually loss), before calling step(). "
using dependencies:
compile "ai.djl:api:0.19.0"
compile "ai.djl.mxnet:mxnet-engine:0.19.0"
runtimeOnly "ai.djl.mxnet:mxnet-native-auto:1.8.0"
Beta Was this translation helpful? Give feedback.
All reactions