deepaas-run

Synopsis

deepaas-api [options]

Description

deepaas-run is a server daemon that serves the models that are
loaded through the deepaas.v2.models entrypoint API.

Options

--debug, -d

If set to true, the logging level will be set to DEBUG instead of the default INFO level.

--debug-endpoint

Enable debug endpoint. If set we will provide all the information that you print to the standard output and error (i.e. stdout and stderr) through the /debug endpoint. Default is to not provide this information. This will not provide logging information about the API itself.

--enable-v1

Whether to enable V1 version of the API or not. If this option is set to True, DEEPaaS API will offer a /v1/ endpoint with the DEPRECATED version of the API.

--listen-ip LISTEN_IP

IP address on which the DEEPaaS API will listen. The DEEPaaS API service listens on this IP address for incoming requests.

--listen-port LISTEN_PORT

Port on which the DEEPaaS API will listen. The DEEPaaS API service listens on this port number for incoming requests.

--openwhisk-detect, -w

Run as an OpenWhisk action. If this option is set to True DEEPaaS will check if the __OW_API_HOST environment variable is set. If it is set, it will run an OpenWhisk Docker action listener rather than the DEEPaaS API. If it is not set, it will run a DEEPaaS in normal mode. If you specify this option, the value of listen-ip will be used, but the port will is hardcoded to 8080 (as OpenWhisk goes to port 8080). Note that if you are running inside a container, the most sensible option is to set listen-ip to 0.0.0.0.

--predict-workers PREDICT_WORKERS, -p PREDICT_WORKERS

Specify the number of workers to spawn for prediction tasks. If using a CPU you probably want to increase this number, if using a GPU probably you want to leave it to 1. (defaults to 1)

--train-workers TRAIN_WORKERS

Specify the number of workers to spawn for training tasks. Unless you know what you are doing you should leave this number to 1. (defaults to 1)

Files

None

See Also

Documentation: DEEPaaS API

Reporting Bugs

Bugs are managed at GitHub