From 6b333202e90826518e84dc6c804d7c8ea607c3ce Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Sat, 8 Aug 2020 14:44:45 +0300 Subject: [PATCH] Sync generated conf file with latest Trains --- .../backend_api/config/default/sdk.conf | 37 +++++++++++++++---- trains_agent/commands/config.py | 1 + 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/trains_agent/backend_api/config/default/sdk.conf b/trains_agent/backend_api/config/default/sdk.conf index 2b92f5a..c1d9dcf 100644 --- a/trains_agent/backend_api/config/default/sdk.conf +++ b/trains_agent/backend_api/config/default/sdk.conf @@ -37,6 +37,9 @@ quality: 87 subsampling: 0 } + + # Support plot-per-graph fully matching Tensorboard behavior (i.e. if this is set to true, each series should have its own graph) + tensorboard_single_series_per_graph: false } network { @@ -117,11 +120,11 @@ log { # debugging feature: set this to true to make null log propagate messages to root logger (so they appear in stdout) - null_log_propagate: False + null_log_propagate: false task_log_buffer_capacity: 66 # disable urllib info and lower levels - disable_urllib3_info: True + disable_urllib3_info: true } development { @@ -131,14 +134,30 @@ task_reuse_time_window_in_hours: 72.0 # Run VCS repository detection asynchronously - vcs_repo_detect_async: True + vcs_repo_detect_async: true # Store uncommitted git/hg source code diff in experiment manifest when training in development mode # This stores "git diff" or "hg diff" into the experiment's "script.requirements.diff" section - store_uncommitted_code_diff_on_train: True + store_uncommitted_code_diff: true # Support stopping an experiment in case it was externally stopped, status was changed or task was reset - support_stopping: True + support_stopping: true + + # Default Task output_uri. if output_uri is not provided to Task.init, default_output_uri will be used instead. + default_output_uri: "" + + # Default auto generated requirements optimize for smaller requirements + # If True, analyze the entire repository regardless of the entry point. + # If False, first analyze the entry point script, if it does not contain other to local files, + # do not analyze the entire repository. + force_analyze_entire_repo: false + + # If set to true, *trains* update message will not be printed to the console + # this value can be overwritten with os environment variable TRAINS_SUPPRESS_UPDATE_MESSAGE=1 + suppress_update_message: false + + # If this flag is true (default is false), instead of analyzing the code with Pigar, analyze with `pip freeze` + detect_with_pip_freeze: false # Development mode worker worker { @@ -149,7 +168,11 @@ ping_period_sec: 30 # Log all stdout & stderr - log_stdout: True + log_stdout: true + + # compatibility feature, report memory usage for the entire machine + # default (false), report only on the running process and its sub-processes + report_global_mem_used: false } } -} +} \ No newline at end of file diff --git a/trains_agent/commands/config.py b/trains_agent/commands/config.py index c896a4e..1e88590 100644 --- a/trains_agent/commands/config.py +++ b/trains_agent/commands/config.py @@ -142,6 +142,7 @@ def main(): with open(str(conf_file), 'wt') as f: header = '# TRAINS-AGENT configuration file\n' \ 'api {\n' \ + ' # Notice: \'host\' is the api server (default port 8008), not the web server.\n' \ ' api_server: %s\n' \ ' web_server: %s\n' \ ' files_server: %s\n' \