Skip to content

Commit

Permalink
upload train valid folders
Browse files Browse the repository at this point in the history
  • Loading branch information
lruizcalico committed Jun 21, 2024
1 parent 6f4ad56 commit e4ce9af
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/baskerville/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@ def eval_step1_distr(xd, yd):

# upload to gcs
if self.gcs:
upload_folder_gcs(self.log_dir, self.gcs_log_dir)

upload_folder_gcs(train_log_dir, self.gcs_log_dir + "/train")
upload_folder_gcs(valid_log_dir, self.gcs_log_dir + "/valid")
# checkpoint
managers[di].save()
model.save(
Expand Down Expand Up @@ -713,7 +713,8 @@ def eval_step_distr(xd, yd):

# upload to gcs
if self.gcs:
upload_folder_gcs(self.log_dir, self.gcs_log_dir)
upload_folder_gcs(train_log_dir, self.gcs_log_dir + "/train")
upload_folder_gcs(valid_log_dir, self.gcs_log_dir + "/valid")

# checkpoint
manager.save()
Expand Down

0 comments on commit e4ce9af

Please sign in to comment.