From ce998d852dbc6951a0e0c0f748a55d4315005b69 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Mon, 7 Oct 2024 12:59:07 -0700 Subject: [PATCH 1/3] clarify language in colab docs --- source/platforms/colab.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/platforms/colab.md b/source/platforms/colab.md index a49922b5..4c4e54f1 100644 --- a/source/platforms/colab.md +++ b/source/platforms/colab.md @@ -59,7 +59,7 @@ Check the output of `!nvidia-smi` to make sure you've been allocated a Rapids Co ### 4. Install RAPIDS on Colab -You can install RAPIDS using pip. The script first checks GPU compatibility with RAPIDS, then installs the latest **stable** versions of RAPIDSAI's core libraries (cuDF, cuML, cuGraph, and xgboost) using `pip`. +You can install RAPIDS using pip. The script first checks GPU compatibility with RAPIDS, then installs the latest **stable** versions some core RAPIDS libraries (e.g. cuDF, cuML, cuGraph, and xgboost) using `pip`. ```bash # Colab warns and provides remediation steps if the GPUs is not compatible with RAPIDS. @@ -68,7 +68,7 @@ You can install RAPIDS using pip. The script first checks GPU compatibility with !python rapidsai-csp-utils/colab/pip-install.py ``` -### 5. Test Rapids +### 5. Test RAPIDS ```python import cudf From 1b44bf29f10c6ce089e484de4158293d262c23fa Mon Sep 17 00:00:00 2001 From: James Lamb Date: Mon, 7 Oct 2024 14:36:13 -0700 Subject: [PATCH 2/3] Google Colab: clarify language, remove outdated links --- source/platforms/colab.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/platforms/colab.md b/source/platforms/colab.md index 4c4e54f1..34fb19a6 100644 --- a/source/platforms/colab.md +++ b/source/platforms/colab.md @@ -70,10 +70,12 @@ You can install RAPIDS using pip. The script first checks GPU compatibility with ### 5. Test RAPIDS +Run the following in a Python cell. + ```python import cudf -gdf = cudf.DataFrame({"a":[1,2,3],"b":[4,5,6]}) +gdf = cudf.DataFrame({"a":[1,2,3], "b":[4,5,6]}) gdf a b 0 1 4 @@ -84,6 +86,4 @@ gdf ### 6. Next steps -Check out this [guide](https://towardsdatascience.com/) for an overview of how to access and work with your own datasets in Colab. - -For more RAPIDS examples, check out our RAPIDS [notebooks](https://github.com/rapidsai/notebooks) and [notebooks-contrib](https://github.com/rapidsai/notebooks-contrib) repos +Try a more thorough example of using cuDF on Google Colab, "10 Minutes to RAPIDS cuDF's pandas accelerator mode (cudf.pandas)" ([Google Colab link](https://nvda.ws/rapids-cudf)). From 0c6978b3c123e1a9b5fc990260687a740493d88c Mon Sep 17 00:00:00 2001 From: James Lamb Date: Mon, 7 Oct 2024 14:50:26 -0700 Subject: [PATCH 3/3] stop hard-coding GPU names --- source/platforms/colab.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/platforms/colab.md b/source/platforms/colab.md index 34fb19a6..21592e82 100644 --- a/source/platforms/colab.md +++ b/source/platforms/colab.md @@ -53,13 +53,13 @@ Choose GPU for Hardware Accelerator ### 3. Check GPU type -Check the output of `!nvidia-smi` to make sure you've been allocated a Rapids Compatible GPU, i.e [Tesla T4, P4, or P100]. +Check the output of `!nvidia-smi` to make sure you've been allocated a Rapids Compatible GPU ([see the RAPIDS install docs](https://docs.rapids.ai/install/#system-req)). ![Screenshot of nvidia-smi](../images/googlecolab-output-nvidia-smi.png) ### 4. Install RAPIDS on Colab -You can install RAPIDS using pip. The script first checks GPU compatibility with RAPIDS, then installs the latest **stable** versions some core RAPIDS libraries (e.g. cuDF, cuML, cuGraph, and xgboost) using `pip`. +You can install RAPIDS using pip. The script first checks GPU compatibility with RAPIDS, then installs the latest **stable** versions of some core RAPIDS libraries (e.g. cuDF, cuML, cuGraph, and xgboost) using `pip`. ```bash # Colab warns and provides remediation steps if the GPUs is not compatible with RAPIDS.