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 aa043e1 commit 46fae56Copy full SHA for 46fae56
project/lit_model_predict.py
@@ -280,7 +280,7 @@ def main(args):
280
args.profiler = args.profiler_method
281
args.accelerator = 'dp' # Predict using Data Parallel (DP) and not Distributed Data Parallel (DDP) to avoid errors
282
args.auto_select_gpus = args.auto_choose_gpus
283
- args.gpus = 1 # Enforce predictions to take place on a single GPU
+ args.gpus = args.num_gpus # Allow user to choose how many GPUs to use for inference
284
args.num_nodes = 1 # Enforce predictions to to take place on a single node
285
args.precision = args.gpu_precision
286
args.accumulate_grad_batches = args.accum_grad_batches
0 commit comments