Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] AttributeError: 'DataFrame' object has no attribute 'unique' #5811

Open
Nithish-Chowdary opened this issue Mar 20, 2024 · 4 comments
Open
Labels
? - Needs Triage Need team to review and classify bug Something isn't working

Comments

@Nithish-Chowdary
Copy link

Describe the bug
I'm trying to build a Random Forest Regressor using cuml.dask.ensemble.RandomForestRegressor.
collab V100 GPUs are used.

Steps/Code to reproduce bug
from cuml.dask.ensemble import RandomForestRegressor as cuRF
from dask_ml.model_selection import train_test_split

train, test = train_test_split(Data, test_size=0.2, shuffle=True, random_state=42)

train_labels = train[single_label].map_partitions(cudf.from_pandas)
train_features = train[target_features].map_partitions(cudf.from_pandas)
test_labels = test[single_label].map_partitions(cudf.from_pandas)
test_features = test[target_features].map_partitions(cudf.from_pandas)

model = cuRF(n_estimators=100, random_state=42, verbose = True)

model.fit(train_features, train_labels)

Expected behavior
I want the model to fit

Environment details (please complete the following information):

  • Environment location: Google Collab
  • GPU Model/Driver: Tesla V100-SXM2-16GB' GPU
  • CUDA: [9.2]
  • Method of cuDF & cuML install: [conda, Docker, or from source]
    !pip install cudf-cu11 dask-cudf-cu11 cuml-cu11 cugraph-cu11 --extra-index-url=https://pypi.ngc.nvidia.com
    !rm -rf /usr/local/lib/python3.8/dist-packages/cupy*
    !pip install cupy-cuda11x
@Nithish-Chowdary Nithish-Chowdary added ? - Needs Triage Need team to review and classify bug Something isn't working labels Mar 20, 2024
@dantegd
Copy link
Member

dantegd commented Mar 20, 2024

Thanks for the issue @Nithish-Chowdary, the ussue is that CUDA 9.2 is not supported, the packages that are being installed require CUDA 11.2 as a minimum, with the cu12 versions being usable in any CUDA 12.0 system.

@Nithish-Chowdary
Copy link
Author

Nithish-Chowdary commented Mar 20, 2024

Thanks for reaching out,
Sorry for providing the wrong CUDA Version

my CUDA version is 12.2
Screenshot from 2024-03-21 00-11-38

@dantegd
Copy link
Member

dantegd commented Mar 20, 2024

Unfortunately, the version provided by nvidia-smi just corresponds to the driver's CUDA version (i.e. the CUDA that came bundled with the driver), and doesn't necessarily correspond with the CTK of an environment. For example with conda one could have a driver for CUDA 12.x and have CUDA 11.x in the conda env. Since you are using pip to install, and cu11 then you'd need a CUDA 11, you can check that probably by typing nvcc --version in the command line

@Nithish-Chowdary
Copy link
Author

Thanks for quick response

I am installing these packages
!pip install --extra-index-url=https://pypi.nvidia.com cudf-cu12==24.2.* dask-cudf-cu12==24.2.* cuml-cu12==24.2.*

and cuda version is
Screenshot from 2024-03-21 00-23-52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
? - Needs Triage Need team to review and classify bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants