FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

BigDL/python/ppml/dev at main · intel/BigDL · GitHub

This repository was archived by the owner on Jul 6, 2026. It is now read-only.
/ BigDL Public archive

Latest commit

 

History

History

README.md

PPML Python Module Dev Guide

Before development, install all the required dependencies by pip install -r requirements.txt

And get the PPML Jar ready, cd BigDL/scala && ./make-dist -P spark_3.x, once finished, copy the jar by cp BigDL/scala/ppml/target/bigdl-ppml-*-jar-with-dependencies.jar BigDL/dist/lib/

Environment Variables

In terminal, run source prepare_env.sh, you can see some environment variables printed. These are the environment variables used in developments.

In different IDE, you may need to copy these variables to some config file.

  • PyCharm: In Run Configuration, copy them to Environment Variables.
  • VSCode: copy them to .env or .vscode/setting.json

Unit Test

In terminal run

bash test/run-pytests

If all the tests pass, your development environment is ready.

Protobuf

The protobuf source is in scala/ppml/src/main/proto. If you want to add or modify protobuf functions, first modify protobuf source file.

Then run bash generate-protobuf.sh, the generated Python protobuf files will be in py_proto, copy them to some directory in src and add the directory to PYTHONPATH in prepare_env.sh.

You can consider src/bigdl/ppml/fl/nn/generated as an example.


Back | FazBrowse Home | New Git URL