cuml icon indicating copy to clipboard operation
cuml copied to clipboard

[BUG] Unexpected warnings when invoking MNMG kmeans.fit() method

Open miguelusque opened this issue 3 years ago • 6 comments

Describe the bug Hi, while running the MNMG example notebook for kmeans, the following warning messages are displayed.

Even if those are warnings, I think it might be well-worth to double-check if they might be suppressed.

image

Steps/Code to reproduce bug Running the notebook without changes.

Expected behavior No warnings displayed.

Environment details (please complete the following information): DGX-1 server, running rapidsai/rapidsai:22.02-cuda11.5-runtime-ubuntu20.04-py3.8 container.

miguelusque avatar Mar 10 '22 07:03 miguelusque

I managed to hide those warnings adding silence_logs=logging.ERROR as follows:

import logging
cluster = LocalCUDACluster(threads_per_worker=1, silence_logs=logging.ERROR)
client = Client(cluster)

Nevertheless, I think it is well-worth to investigate if we can do anything to have those errors hidden (either in Dask or in cuML).

Thanks!

Miguel

miguelusque avatar Mar 10 '22 08:03 miguelusque

This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.

github-actions[bot] avatar Apr 16 '22 11:04 github-actions[bot]

I think this issue is still relevant.

miguelusque avatar May 21 '22 19:05 miguelusque

This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.

github-actions[bot] avatar Jun 20 '22 20:06 github-actions[bot]

Hi,

This issue is still relevant. I have just tried it with 22.06 container, and the issue still persists.

Thanks!

miguelusque avatar Jun 25 '22 07:06 miguelusque

This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.

github-actions[bot] avatar Jul 25 '22 08:07 github-actions[bot]

I found this dask issue relevant https://github.com/dask/distributed/issues/6882. I tried to use and adapt the code exemple there to ignore the logging of distributed.worker

import logging
    logger = logging.getLogger("distributed.worker")
    class IgnoreComputeFailedLogs(logging.Filter):
        def filter(self, record):
            return not (record.funcName == "execute" and record.msg.startswith("Compute Failed\n"))
    logger.addFilter(IgnoreComputeFailedLogs())

But I did not see any changes on the warning messages.

lowener avatar Mar 13 '23 15:03 lowener

Closed by #5299

dantegd avatar Jun 07 '23 16:06 dantegd