-
Workload create has two mutually exclusive ways to override the environment of a workload:
-
a
--envflag to specify each environment variable separately. The format is:--env VARIABLE1=value --env VARIABLE2=value -
a
--env-fileflag to allow specifying the container's environment from a file. Usage is the same as Docker's --env-file flag
Example Env File:
LIBTPU_INIT_ARGS=--my-flag=true --performance=high MY_ENV_VAR=hello
-
-
Workload create accepts a --debug-dump-gcs flag which is a path to GCS bucket. Passing this flag sets the XLA_FLAGS='--xla_dump_to=/tmp/xla_dump/' and uploads hlo dumps to the specified GCS bucket for each worker.