clearml-docs/docs/configs/env_vars.md

58 lines
3.9 KiB
Markdown
Raw Normal View History

2021-05-13 23:48:51 +00:00
---
title: Environment Variables
---
2023-09-05 11:52:40 +00:00
This page lists the available environment variables for configuring ClearML.
2022-08-15 14:31:02 +00:00
2021-05-13 23:48:51 +00:00
:::info
ClearML's environment variables override the clearml.conf file, SDK, and [configuration vault](../webapp/webapp_profile.md#configuration-vault),
but can be overridden by command-line arguments.
2021-05-13 23:48:51 +00:00
:::
## ClearML SDK Variables
### General
2022-11-29 12:21:00 +00:00
|Name| Description |
|---|--------------------------------------------------------------------------------|
2023-10-09 12:48:19 +00:00
|**CLEARML_LOG_ENVIRONMENT** | List of Environment variable names. These environment variables will be logged in the ClearML task's configuration hyperparameters `Environment` section. When executed by a ClearML agent, these values will be set in the task's execution environment. |
2023-04-09 12:01:26 +00:00
|**CLEARML_TASK_NO_REUSE** | Boolean. <br/> When set to `true`, a new task is created for every execution (see Task [reuse](../clearml_sdk/task_sdk.md#task-reuse)). |
2022-12-28 09:20:15 +00:00
|**CLEARML_CACHE_DIR** | Set the path for the ClearML cache directory, where ClearML stores all downloaded content. |
|**CLEARML_DOCKER_IMAGE** | Sets the default docker image to use when running an agent in [Docker mode](../clearml_agent.md#docker-mode). |
|**CLEARML_LOG_LEVEL** | Sets the ClearML package's log verbosity. Log levels adhere to [Python log levels](https://docs.python.org/3/library/logging.config.html#configuration-file-format): CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET |
|**CLEARML_SUPPRESS_UPDATE_MESSAGE** | Boolean. <br/> When set to `1`, suppresses new ClearML package version availability message. |
|**CLEARML_DEFAULT_OUTPUT_URI** | The default output destination for model checkpoints (snapshots) and artifacts. |
|**CLEARML_SET_ITERATION_OFFSET** | Set initial iteration value for the executed task. The task will report its iterations starting with the specified value +1. Specify `0` to force resetting the iteration count.|
2021-05-13 23:48:51 +00:00
### VCS
Overrides Repository Auto-logging
2022-11-29 12:21:00 +00:00
|Name| Description |
|---|--------------------------------|
2022-12-06 09:39:14 +00:00
|**CLEARML_VCS_REPO_URL** | Repository's URL |
|**CLEARML_VCS_COMMIT_ID** | Repository's Commit ID |
|**CLEARML_VCS_BRANCH** | Repository's Branch |
|**CLEARML_VCS_ROOT** | Repository's Root directory |
|**CLEARML_VCS_WORK_DIR** | Repository's working directory |
|**CLEARML_VCS_STATUS** | Repository status |
|**CLEARML_VCS_DIFF** | Base64 encoded string. Holds repo diff logged to a task. If set to an empty string, uncommitted changes are not logged. Note: Overriding CLEARML_VCS_DIFF may change the results of a task when executed remotely |
2022-12-06 09:39:14 +00:00
|**CLEARML_VCS_ENTRY_POINT** | Entry point script |
2021-05-13 23:48:51 +00:00
### Server Connection
|Name|Description|
|---|---|
|**CLEARML_API_HOST** | Sets the API Server URL|
2022-12-06 09:39:14 +00:00
|**CLEARML_CONFIG_FILE** | Sets the ClearML configuration file. Overrides the default configuration file location|
2021-05-13 23:48:51 +00:00
|**CLEARML_WEB_HOST** | Sets the Web UI Server URL|
2022-11-29 12:21:00 +00:00
|**CLEARML_FILES_HOST** | Sets the File Server URL|
2021-05-13 23:48:51 +00:00
|**CLEARML_API_ACCESS_KEY** | Sets the Server's Public Access Key|
|**CLEARML_API_SECRET_KEY** | Sets the Server's Private Access Key|
2022-12-06 09:39:14 +00:00
|**CLEARML_API_HOST_VERIFY_CERT** | Enables / Disables server certificate verification (if behind a firewall)|
2023-09-21 10:52:36 +00:00
|**CLEARML_API_DEFAULT_REQ_METHOD**| *Experimental - this option has not been vigorously tested.* Set the request method for all API requests and auth login. This can be useful when GET requests with payloads are blocked by a server, so POST/PUT requests can be used instead. |
2021-05-13 23:48:51 +00:00
|**CLEARML_OFFLINE_MODE** | Sets Offline mode|
2021-07-11 09:17:06 +00:00
|**CLEARML_NO_DEFAULT_SERVER** | Disables sending information to demo server when no HOST server is set|
2021-05-13 23:48:51 +00:00
2023-09-05 11:52:40 +00:00
## Agent Specific Variables
See [here](../clearml_agent/clearml_agent_env_var.md) for environment variables to configure how the ClearML Agent works
with the SDK.