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

[PPML] Refine xgboost docker example config #5631

Merged
merged 1 commit into from
Sep 2, 2022
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 ppml/trusted-big-data-ml/scala/docker-occlum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ You can download the criteo-1tb-click-logs-dataset from [here](https://ailab.cri
You can enlarge the configuration in [start-spark-local.sh](https://github.com/intel-analytics/BigDL/blob/main/ppml/trusted-big-data-ml/scala/docker-occlum/start-spark-local.sh)
``` bash
#start-spark-local.sh
-e SGX_MEM_SIZE=60GB \
-e SGX_MEM_SIZE=30GB \
-e SGX_THREAD=1024 \
-e SGX_HEAP=1GB \
-e SGX_KERNEL_HEAP=1GB \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,18 +342,18 @@ run_spark_xgboost() {
echo -e "${BLUE}occlum run BigDL Spark XGBoost${NC}"
occlum run /usr/lib/jvm/java-8-openjdk-amd64/bin/java \
-XX:-UseCompressedOops -XX:MaxMetaspaceSize=$META_SPACE \
-XX:ActiveProcessorCount=8 \
-XX:ActiveProcessorCount=4 \
-Divy.home="/tmp/.ivy" \
-Dos.name="Linux" \
-cp "$SPARK_HOME/conf/:$SPARK_HOME/jars/*:/bin/jars/*" \
-Xmx18g -Xms18g org.apache.spark.deploy.SparkSubmit \
--master local[16] \
--conf spark.task.cpus=8 \
-Xmx10g -Xms10g org.apache.spark.deploy.SparkSubmit \
--master local[4] \
--conf spark.task.cpus=2 \
--class com.intel.analytics.bigdl.dllib.examples.nnframes.xgboost.xgbClassifierTrainingExampleOnCriteoClickLogsDataset \
--num-executors 2 \
--executor-cores 2 \
--executor-memory 9G \
--driver-memory 2G \
--driver-memory 10G \
/bin/jars/bigdl-dllib-spark_3.1.2-2.1.0-SNAPSHOT.jar \
-i /host/data -s /host/data/model -t 2 -r 100 -d 2 -w 1
}
Expand Down