Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As someone starting on RL I thought it would be a nice exercise to add IMPALA CNN + ProcGen to SpinningUp.
I've copied the PPO folder and created PPO shared to allow training a shared policy + value function and also train on a GPU.
Example https://colab.research.google.com/drive/1c64C3DNSriYzVHc2ESEwB7Un81tY96Ln?usp=sharing
Currently it's hard for me to tell if the code is training at all.
Here are few of the places I think are buggy:
update()
phase was stopped by KL divergence, which is currently commented.(loss_v + loss_pi).backward()
ac.step(torch.as_tensor(o[None], dtype=torch.float32, device=device))
ImpalaCNNActorCritic
is right....for i in tqdm(range(buf.ptr * train_iters // batch_size)):
Would love to get some pointers on how to approach this, or if somebody is also up to the exercise and feels like Zoom pair-programming?