skip to Main Content

I am training a model with tqdm in the dataloader, the log prints every update in a seperate line that fills up the entire notebook. Is there a way to reduce the verbosity or remove the logs entirely from the jupyter cell similar to from IPython.display import clear_output clear_output(wait=True)?

2

Answers


  1. usually the logging can be controlled using the API parameters and SageMaker doesn’t usually add a lot of additional verbose. If you are using a sagemaker notebook instance to run your training you can very well use Ipython clear_output as the notebook is based on jupyter lab.

    Login or Signup to reply.
  2. You can set log="None" inside the .fit() parameter.

    Here’s an example how I set it

    job_name = "something"
    
    model = sagemaker.estimator.Estimator(image_uri=container_image_uri,
                                        ...)
    model.fit(inputs=train_input,
           job_name=job_name,
           wait=True,
           logs="None")
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search