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

[auto-merge] branch-25.02 to branch-25.04 [skip ci] [bot] #834

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion notebooks/aws-emr/init-configurations.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"spark.executor.resource.gpu.amount":"1",
"spark.executor.cores":"8",
"spark.task.cpus":"1",
"spark.task.resource.gpu.amount":"1",
"spark.task.resource.gpu.amount":"0.125",
"spark.rapids.memory.pinnedPool.size":"2G",
"spark.executor.memoryOverhead":"2G",
"spark.sql.files.maxPartitionBytes":"256m",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/databricks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If you already have a Databricks account, you can run the example notebooks on a
- **Spark**
- **Spark config**
```
spark.task.resource.gpu.amount 1
spark.task.resource.gpu.amount 0.125
spark.databricks.delta.preview.enabled true
spark.python.worker.reuse true
spark.executorEnv.PYTHONPATH /databricks/jars/rapids-4-spark_2.12-24.10.1.jar:/databricks/spark/python
Expand Down
3 changes: 2 additions & 1 deletion notebooks/databricks/init-pip-cuda-11.8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ ln -s /usr/local/cuda-11.8 /usr/local/cuda
# set up no-import-change for cluster if enabled
if [[ $SPARK_RAPIDS_ML_NO_IMPORT_ENABLED == 1 ]]; then
echo "enabling no import change in cluster" 1>&2
sed -i /databricks/python_shell/dbruntime/monkey_patches.py -e '1 s/\(.*\)/import spark_rapids_ml.install\n\1/g'
mkdir -p /root/.ipython/profile_default/startup
echo "import spark_rapids_ml.install" >/root/.ipython/profile_default/startup/00-spark-rapids-ml.py
fi


Expand Down
2 changes: 1 addition & 1 deletion notebooks/dataproc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ If you already have a Dataproc account, you can run the example notebooks on a D
--metadata rapids-version=${RAPIDS_VERSION} \
--metadata spark-rapids-ml-no-import-enabled=0 \
--properties spark:spark.executor.resource.gpu.amount=1,\
spark:spark.task.resource.gpu.amount=1,\
spark:spark.task.resource.gpu.amount=0.0625,\
spark:spark.executorEnv.CUPY_CACHE_DIR=/tmp/.cupy,\
spark:spark.locality.wait=0,\
spark:spark.sql.execution.arrow.pyspark.enabled=true,\
Expand Down
3 changes: 2 additions & 1 deletion notebooks/dataproc/spark_rapids_ml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ pip install spark-rapids-ml
no_import_change=$(/usr/share/google/get_metadata_value attributes/spark-rapids-ml-no-import-enabled)
if [[ $no_import_change == 1 ]]; then
echo "enabling no import change in cluster" 1>&2
sed -i /usr/lib/spark/python/pyspark/shell.py -e '1 s/\(.*\)/import spark_rapids_ml.install\n\1/g'
mkdir -p /root/.ipython/profile_default/startup
echo "import spark_rapids_ml.install" >/root/.ipython/profile_default/startup/00-spark-rapids-ml.py
fi