Vendor numba-free `distributed.protocol.rmm` for CuPy/RMM serialization #169
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 208 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.320
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #169"
general
weight: 0.35
madsbk
RAPIDS no longer depends on numba (https://github.com/NVIDIA/cudf/pull/25391), so RAPIDS wheel environments may not have it installed. distributed's lazily-registered CuPy serializers (
distributed/protocol/cupy.py) import fromdistributed.protocol.rmm, falling back todistributed.protocol.numba, and both import numba. Serializing anycupy.ndarrayorrmm.DeviceBufferthen fails withTypeError: Could not serialize object of type ndarray(caused byModuleNotFoundError: No module named 'numba'). This breaks Dask-CUDA's CI.Upstream uses numba in
distributed/protocol/rmm.pyonly to copy device buffers to host (numba.cuda.as_cuda_array(f).copy_to_host()), whichrmm.DeviceBuffer.copy_to_host()already does. This PR vendors distributed 2026.7.1'sdistributed/protocol/rmm.pywith numba removed and no other changes, using the existing vendoring mechanism. It applies in every process (client, scheduler, workers) through the.pth-installed finder.distributed.protocol.rmmstill raisesImportErroras before, so the fallback indistributed.protocol.cupyis unchanged.ImportErroris raised without rmm, and (with a GPU) that CuPy (contiguous and non-contiguous) andrmm.DeviceBufferround-trip with thecudaanddaskserializers without importing numba.This can be removed if/when distributed no longer needs numba for RMM/CuPy serialization, e.g., https://github.com/dask/distributed/pull/9394 .