MLS-C01 • Practice Test 47
Free MLS-C01 practice test — 15 questions with explanations. Set 47. No signup required.
Refer to the exhibit. A data scientist is training a PyTorch model on a SageMaker ml.p3.2xlarge instance (16 GB GPU memory). The training fails with the shown error. Which change should the scientist make to resolve the error?
2023-01-15 10:30:45,123 INFO - Training job started 2023-01-15 10:30:50,567 INFO - Epoch 1/10: loss=2.345, accuracy=0.45 2023-01-15 10:31:00,789 INFO - Epoch 2/10: loss=2.123, accuracy=0.52 2023-01-15 10:31:10,012 INFO - Epoch 3/10: loss=1.987, accuracy=0.58 ... 2023-01-15 10:32:30,456 ERROR - OutOfMemoryError: CUDA out of memory. Tried to allocate 2.00 GiB (GPU 0; 15.90 GiB total capacity; 14.00 GiB already allocated; 1.50 GiB free; 14.10 GiB reserved in total by PyTorch) 2023-01-15 10:32:30,457 ERROR - Training terminated