Skip to content

Commit

Permalink
submitit example
Browse files Browse the repository at this point in the history
  • Loading branch information
albertbou92 committed Nov 23, 2023
1 parent 89770e4 commit 9132a60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/impala/config_multi_node_submitit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ collector:
backend: gloo
frames_per_batch: 80
total_frames: 200_000_000
num_workers: 4
num_workers: 1

# logger
logger:
Expand Down
7 changes: 2 additions & 5 deletions examples/impala/impala_multi_node_submitit.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def main(cfg: "DictConfig"): # noqa: F821
raise NotImplementedError(
f"device assignment not implemented for backend {cfg.collector.backend}"
)
import ipdb; ipdb.set_trace()
collector = DistributedDataCollector(
create_env_fn=[make_env(cfg.env.env_name, device)] * num_workers,
policy=actor,
Expand All @@ -85,11 +84,9 @@ def main(cfg: "DictConfig"): # noqa: F821
slurm_kwargs=slurm_kwargs,
storing_device="cuda:0" if cfg.collector.backend == "nccl" else "cpu",
launcher="submitit",
update_after_each_batch=True,
# update_after_each_batch=True,
backend=cfg.collector.backend,
)

import ipdb; ipdb.set_trace()
)

# Create data buffer
sampler = SamplerWithoutReplacement()
Expand Down

0 comments on commit 9132a60

Please sign in to comment.