Skip to content

Enable CrossFit to work without Dask#127

Open
sarahyurick wants to merge 10 commits intorapidsai:mainfrom
sarahyurick:no_dask
Open

Enable CrossFit to work without Dask#127
sarahyurick wants to merge 10 commits intorapidsai:mainfrom
sarahyurick:no_dask

Conversation

@sarahyurick
Copy link
Collaborator

@sarahyurick sarahyurick commented May 28, 2025

This PR is the beginning of efforts to enable CrossFit functionalities without requiring Dask...

To control this, we use a DISABLE_DASK toggle.

Signed-off-by: Sarah Yurick <sarahyurick@gmail.com>
Copy link
Collaborator Author

@sarahyurick sarahyurick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not expect this to decouple Dask from CrossFit in every possible functionality. What I have tested is that it works for NeMo Curator's QualityClassifier, which is structured similarly to many of the other classifiers we support.

Comment on lines -33 to +42
nvml_device_count = nvml.device_get_count()
if device_get_count is not None:
nvml_device_count = device_get_count()
else:
try:
nvml_device_count = pynvml.nvmlDeviceGetCount()
except Exception:
nvml_device_count = 0
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would love an opinion here. This code works as is, but I am not sure if the logic is sound enough to cover all cases here.

Was wondering if I should consider copying over relevant functions from https://github.com/dask/distributed/blob/main/distributed/diagnostics/nvml.py ?

sarahyurick and others added 3 commits May 28, 2025 12:15
Signed-off-by: Sarah Yurick <sarahyurick@gmail.com>
@sarahyurick sarahyurick requested a review from VibhuJawa May 29, 2025 20:56
sarahyurick and others added 6 commits June 30, 2025 11:38
Signed-off-by: Sarah Yurick <sarahyurick@gmail.com>
Signed-off-by: Sarah Yurick <sarahyurick@gmail.com>
Signed-off-by: Sarah Yurick <sarahyurick@gmail.com>
Signed-off-by: Sarah Yurick <sarahyurick@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant