Image to run the worker of the MLCycle platform
358
The worker of the MLCycle platform can be run as a docker container using the cemizm\mlcycle_worker image from docker hub. For each MLCycle task, the worker spawns a container with the image defined in the pipeline.
The following command runs the MLCycle Worker with default options. Please replace {host} with the full URL to the MLCycle backend. See the section below for detailed description of all possible options.
docker run -d --name worker1 --restart always \
-e MLCYCLE_HOST=https://{host}/api \
-v workdir:/tmp/mlcycle \
-v /var/run/docker.sock:/var/run/docker.sock \
cemizm/mlcycle_worker:latest
The configuration of the worker can be modified by setting the environment variables of the container. This section describes all possible options of the worker.
The option host is required and has to point to the backend server of MLCycle.
-e MLCYCLE_HOST={url}
The working directory is used to share the project folder with the newly spawned container. The default volume name is worker_workdir.
-e MLCYCLE_VOLUME={volume}
This option controls the used docker runtime for the spawned containers. The default option is set to nvidia. If set to empty string no runtime will be used.
-e MLCYCLE_RUNTIME={runtime}
Defines the gpus visible to the spawned containers. Default is set to all available gpus. For more information see the nvidia plugin.
-e MLCYCLE_VISIBLE_GPUS={gpus}
If the worker needs to pull projects from a private git repository, it is required to mount the ssh keys for the git repository to the /root/.ssh folder of the container.
Content type
Image
Digest
Size
337.9 MB
Last updated
almost 7 years ago
docker pull cemizm/mlcycle_worker