Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dreamer-V3 algo #71

Merged
merged 2 commits into from
Aug 10, 2023
Merged

Add Dreamer-V3 algo #71

merged 2 commits into from
Aug 10, 2023

Conversation

belerico
Copy link
Member

Summary

This PR introduces the following:

  • Dreamer-V3 algo from https://arxiv.org/abs/2301.04104
  • RestartOnexception wrapper, which recreates the environment and restarts it if something bad happened during the step or reset

Type of Change

Please select the one relevant option below:

  • New feature (non-breaking change that adds functionality)

Checklist

Please confirm that the following tasks have been completed:

  • I have tested my changes locally and they work as expected. (Please describe the tests you performed.)
  • I have added unit tests for my changes, or updated existing tests if necessary.
  • I have updated the documentation, if applicable.
  • I have installed pre-commit and run locally for my code changes.

Screenshots or Visuals (Optional)

image

The above rewards are obtained with the following command:

lightning run model --precision=32 --devices=1 --main_port=29401 sheeprl.py dreamer_v3 --total_steps=100000 --learning_starts=1024 --pretrain_steps=1 --train_every=1 --buffer_size=1000000 --memmap_buffer=True --max_episode_steps=108000 --per_rank_batch_size=16 --checkpoint_every=2000 --env_id=MsPacmanNoFrameskip-v4 --seed=5 --cnn_channels_multiplier=32 --dense_units=512 --hidden_size=512 --mlp_layers=2 --recurrent_state_size=512 --checkpoint_buffer=True --action_repeat=4 --cnn_keys rgb --num_envs=1 --capture_video=True --per_rank_sequence_length=64

Thank you for your contribution! Once you have filled out this template, please ensure that you have assigned the appropriate reviewers and that all tests have passed.

@belerico belerico merged commit 025fc71 into main Aug 10, 2023
7 checks passed
@belerico belerico deleted the feature/dreamer_v3 branch August 11, 2023 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants