A data scientist trains a cuML RandomForestClassifier and a preceding cuDF-based preprocessing pipeline (label encoding and standard scaling). She serialises only the cuML model using joblib and deploys it. At inference time, raw production data is passed directly to the loaded model. What is the most likely failure mode?
- AThe joblib file becomes unreadable because cuML models must be serialised with pickle, not joblib
- BRaw features arrive on a different numeric scale and encoding than the model was trained on, causing degraded or incorrect predictions because the saved preprocessing steps are absent Correct
- CInference will silently succeed but return predictions for the wrong classes because joblib does not preserve feature names
- DThe model will raise an exception on load because cuML RandomForestClassifier stores GPU device state that is incompatible across environments
Why A is wrong: joblib and pickle are both compatible with cuML models; joblib is in fact the recommended approach for scikit-learn-style estimators and works correctly here, so the serialisation format is not the source of failure
Why B is correct: Saving the model without the fitted preprocessing pipeline means the transformations learned on training data (scaler means/variances, label mappings) are not applied at inference, so the model receives inputs drawn from a different distribution than it expects
Why C is wrong: Feature names are a separate concern; the more fundamental issue is that the numeric scale and encoding of input features will not match what the model learned during training, so predictions will be incorrect for a substantive statistical reason, not a metadata one
Why D is wrong: cuML estimators serialise the fitted parameters, not live GPU device handles; they can be loaded in any compatible cuML environment without an exception related to device state, so this is not the primary failure mode described