Skip to content

Commit

Permalink
Add wandb to main process
Browse files Browse the repository at this point in the history
  • Loading branch information
vanpelt committed Aug 13, 2024
1 parent a2f9bfe commit 054ce76
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jobs/slurm/submitit/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import random
import submitit
import time
import wandb
from wandb.sdk import launch

def slow_multiplication(x, y):
time.sleep(x*y)
Expand All @@ -11,6 +13,10 @@ def slow_multiplication(x, y):
async def main():
print(f"Running in {os.getenv("CONDA_DEFAULT_ENV")}")
executor = submitit.AutoExecutor(folder="logs")
wandb.init(project="submitit-test", config={
"submitit": {"timeout_min": None, "partition": None}
})
launch.manage_wandb_config(include="submitit")
# executor.update_parameters(timeout_min=1)

# await a single result
Expand Down

0 comments on commit 054ce76

Please sign in to comment.