We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fe2747 commit fa79639Copy full SHA for fa79639
src/sagemaker/remote_function/runtime_environment/bootstrap_runtime_environment.py
@@ -444,8 +444,10 @@ def set_env(
444
445
if int(env_vars["SM_NUM_GPUS"]) > 0:
446
env_vars["SM_NPROC_PER_NODE"] = int(env_vars["SM_NUM_GPUS"])
447
- else:
+ elif int(env_vars["SM_NUM_NEURONS"]) > 0:
448
env_vars["SM_NPROC_PER_NODE"] = int(env_vars["SM_NUM_NEURONS"])
449
+ else:
450
+ env_vars["SM_NPROC_PER_NODE"] = int(env_vars["SM_NUM_CPUS"])
451
452
# All Training Environment Variables
453
env_vars["SM_TRAINING_ENV"] = {
0 commit comments