Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-snd committed Sep 6, 2022
1 parent a625460 commit 9531129
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/trecover/train/collab/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
def monitor(cli_args: Optional[List[str]] = None) -> None:
args = arguments.sync_base_args(arguments.get_monitor_parser().parse_args(cli_args))

args.sync_args = True # TODO

if args.assist_in_averaging and args.client_mode:
log.project_console.print('Client-mode peers cannot assist in averaging', style='red')
return
Expand Down Expand Up @@ -82,8 +80,6 @@ def monitor(cli_args: Optional[List[str]] = None) -> None:
def train(cli_args: Optional[List[str]] = None) -> None:
args = arguments.sync_base_args(arguments.get_train_parser().parse_args(cli_args))

args.sync_args = True # TODO

os.system('ulimit -n 16384')

if args.batch_size is None:
Expand Down
2 changes: 1 addition & 1 deletion src/trecover/train/collab/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,6 @@ def _print_metrics(step: int, metrics: GlobalMetrics) -> None:
def _upload_state(self) -> None:
if self._is_time_to_upload:
wandb.save(str(self.aux_opt.state_path.absolute()),
base_path=str(self.aux_opt.state_path.parent), # TODO check, change name, delete at max files
base_path=str(self.aux_opt.state_path.parent),
policy='now')
self.last_upload_time = time.monotonic()

0 comments on commit 9531129

Please sign in to comment.