This repository was archived by the owner on Jul 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Developer
geomodular edited this page May 6, 2021
·
2 revisions
This guide is intended for a Wave ML developer i.e. to someone who wants to develop Wave ML.
Clone the GitHub repository and run make setup:
> git clone https://github.com/h2oai/wave-ml.git
> cd wave-ml/
> make setup Source the resulting venv:
> source ./venv/bin/activateA good start is to run Wave ML locally utilizing H2O-3. Open a different terminal window and run your Wave server inside it. You can download it from here. See the first step here if you are not sure.
Install the examples requirements and run the quickstart:
> pip install -r examples/requirements.txt
> wave run examples/quickstart.pyWave ML is developed on a private Cloud instance with all the technologies Wave ML supports. In order to use it, some steps are necessary to follow.
- Do the basic setup above.
- Set up your OpenID account. Ask on the slack channel.
- Create a DAI instance in Steam here (login with OpenID). We will be able to use DAI multinode cluster in the future making this step obsolete.
- Create a script e.g.
setup-cloud.shwith the following content:
export H2O_WAVE_OIDC_CLIENT_ID=
export H2O_WAVE_OIDC_CLIENT_SECRET=
export H2O_WAVE_OIDC_PROVIDER_URL=http://keycloak.44.238.254.140.nip.io/auth/realms/wave
export H2O_WAVE_OIDC_REDIRECT_URL=http://localhost:10101/_auth/callback
export H2O_WAVE_OIDC_END_SESSION_URL=http://keycloak.44.238.254.140.nip.io/auth/realms/wave/protocol/openid-connect/logout
export H2O_WAVE_ML_STEAM_ADDRESS=https://steam.44.238.254.140.nip.io/
export H2O_WAVE_ML_STEAM_INSTANCE_NAME=
export H2O_WAVE_ML_MLOPS_GATEWAY=http://api.44.238.254.140.nip.io/
export H2O_WAVE_ML_STEAM_VERIFY_SSL=False- Provide the missing credentials, and your DAI instance name. Ask on the slack channel.
- Source the script both for Wave and your app terminal window and run the Wave.
- Check if OpenID is working just by looking at http://localhost:10101/ - if it's asking to log in.
This setup ensures a quick iteration during your development process. The app is running locally but Wave ML behaves like on the Cloud.
Project Management
Guides
Documentation