Variables#
Environment variables#
When a definition YAML file such as efemarai.yaml
is passed to
the CLI or the SDK then any ${ENVIRONMENT_VARIABLE}
in the file
is replaced with the corresponding value in the environment where
the CLI or the SDK are being executed.
Runtime variables#
In order to provide more flexibility in the definition of the
runtime
runtime variables are supported. They
are substituted while the model is running.
${model.name}
: name of the currently running model${model.files.<NAME>.url}
: location of the model file named<NAME>
within the runtime file system${model.runtime.<load|predict>.<inputs|output>.<NAME>}
: value of the corresponding input or output named<NAME>
toload
orpredict
${datapoint.image}
: the image associated with the datapoint being processed passed as aPIL.Image
orList[PIL.Image]
if batching is enabled.