Open
Description
Is your feature request related to a problem? Please describe.
When I run model.deploy()
, there is no information on the console log so it's hard to debug.
Describe the solution you'd like
But usually fit()
show a huge amount of useful information for debugging. For example,
estimator = PyTorch(...)
estimator.fit(...)
This will show:
WARNING:sagemaker:'create_image_uri' will be deprecated in favor of 'ImageURIProvider' class in SageMaker Python SDK v2.
WARNING:sagemaker:'s3_input' class will be renamed to 'TrainingInput' in SageMaker Python SDK v2.
WARNING:sagemaker:'create_image_uri' will be deprecated in favor of 'ImageURIProvider' class in SageMaker Python SDK v2.
2020-06-15 00:00:35 Starting - Starting the training job...
2020-06-15 00:00:37 Starting - Launching requested ML instances............
2020-06-15 00:02:46 Starting - Preparing the instances for training...
2020-06-15 00:03:42 Downloading - Downloading input data
2020-06-15 00:03:42 Training - Downloading the training image........bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
2020-06-15 00:05:05,529 sagemaker-containers INFO Imported framework sagemaker_pytorch_container.training
2020-06-15 00:05:05,551 sagemaker_pytorch_container.training INFO Block until all host DNS lookups succeed.
2020-06-15 00:05:05,555 sagemaker_pytorch_container.training INFO Invoking user training script.
2020-06-15 00:05:05,822 sagemaker-containers INFO Module default_user_module_name does not provide a setup.py.
Generating setup.py
2020-06-15 00:05:05,823 sagemaker-containers INFO Generating setup.cfg
2020-06-15 00:05:05,823 sagemaker-containers INFO Generating MANIFEST.in
2020-06-15 00:05:05,823 sagemaker-containers INFO Installing module with the following command:
/opt/conda/bin/python -m pip install . -r requirements.txt
Processing /tmp/tmp6g33gs58/module_dir
Collecting tqdm==4.46.0
...
However,
model = PyTorchModel(..)
model.deploy(...)
This will show only '-' and '!' when it's done.
WARNING:sagemaker:'create_image_uri' will be deprecated in favor of 'ImageURIProvider' class in SageMaker Python SDK v2.
---------------!
It would be really helpful if we can see more logs when we deeply. Of cause, we can see the logs in the cloud watch, but it will be much more convenient if we can see it on console.