ClearML Agent is a Python library that provides auto-magical DevOps capabilities for Deep Learning. It serves as a worker to execute machine learning tasks remotely, integrating with the ClearML Python package and ClearML Server. The library maintains an active release cadence with frequent updates.
pip install clearml-agentNo compatibility data collected yet for this library.
The ClearML Agent is primarily a CLI tool. This quickstart guides through installation, interactive initialization to connect to a ClearML server and configure Git, and finally starting the agent daemon to listen for and execute tasks. For a full non-interactive setup, consider setting environment variables for credentials and pre-configuring `clearml.conf`.
Upgrade Python environment to 3.6 or later.
Run `clearml-agent init` to configure server credentials or set `CLEARML_NO_DEFAULT_SERVER=0` environment variable for backward compatibility with older demo server behavior, or define `api_server`, `web_server`, `files_server` in `clearml.conf`.
Set environment variables `CLEARML_AGENT_SKIP_PIP_VENV_INSTALL=1` or `CLEARML_AGENT_SKIP_PYTHON_ENV_INSTALL=1` for the agent's environment, or clear the 'Python Packages' section of the task in the ClearML UI before enqueuing.
Configure Git credentials during `clearml-agent init`, or use `agent.git.extra_credentials`, `agent.git_host_match_prefix`, `agent.git_use_azure_pat`, `agent.git_use_ms_entra_token` in `clearml.conf`. Environment variables like `CLEARML_AGENT_GIT_USER` and `CLEARML_AGENT_GIT_PASS` can also be used.
Run `clearml-agent daemon` from the system Python environment, not within an activated virtual environment. The agent will then create and manage virtual environments for each task it executes.
Ensure the `clearml` package is installed in the appropriate environment (e.g., the virtual environment or Docker image used by the agent) using `pip install clearml`.
Uninstall the separately installed `typing` package using `pip uninstall typing`, as Python 3.5+ includes `typing` in its standard library.
Verify the `api_server` URL, `access_key`, and `secret_key` in your `~/clearml.conf` file (or corresponding environment variables like `CLEARML_API_SERVER`, `CLEARML_API_ACCESS_KEY`, `CLEARML_API_SECRET_KEY`) and ensure the ClearML server is accessible from the agent's machine.
Review the `~/clearml.conf` file for any YAML syntax errors, paying close attention to indentation, ensure strings are properly quoted, and validate the structure against a correct ClearML configuration example.