Skip to content

Commit 3fda6eb

Browse files
kaushikb11Borda
andauthored
Update warpdrive tutorial (#172)
* Update warpdrive tutorial * Apply suggestions from code review Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
1 parent c478057 commit 3fda6eb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lightning_examples/warp-drive/.meta.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,9 @@ description: This notebook introduces multi-agent reinforcement learning (MARL)
2121
requirements:
2222
- rl-warp-drive>=1.6.5
2323
- ffmpeg-python
24+
# todo: after merging #155 we will relax this just to `torch<=1.10` and drop TV, TT, etc.
25+
- torch==1.10.*
26+
- torchvision==0.11.*
27+
- torchtext==0.11.*
2428
accelerator:
2529
- GPU

lightning_examples/warp-drive/multi_agent_rl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@
225225
devices=num_gpus,
226226
callbacks=[cuda_callback, perf_stats_callback],
227227
max_epochs=num_epochs,
228+
log_every_n_steps=1,
229+
reload_dataloaders_every_n_epochs=1,
228230
)
229231

230232
# %%

0 commit comments

Comments
 (0)