Reinforcement Learning
stable-baselines3
SpaceInvadersNoFrameskip-v4
deep-reinforcement-learning
Eval Results (legacy)
Run this model with HF Jobs
Run chriss1245/atari_space_invaders on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/chriss1245/atari_space_invaders. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/chriss1245/atari_space_invaders on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use chriss1245/atari_space_invaders with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use chriss1245/atari_space_invaders with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="chriss1245/atari_space_invaders", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
Commit ·
00755de
1
Parent(s): e837d0c
Initial commit
Browse filesFiles changed (15)
- .gitattributes+1
- README.mdAdded+86
- args.ymlAdded+81
- config.ymlAdded+29
- dqn-SpaceInvadersNoFrameskip-v4.zipAdded+3
- dqn-SpaceInvadersNoFrameskip-v4/_stable_baselines3_versionAdded+1
- dqn-SpaceInvadersNoFrameskip-v4/dataAdded
- dqn-SpaceInvadersNoFrameskip-v4/policy.optimizer.pthAdded+3
- dqn-SpaceInvadersNoFrameskip-v4/policy.pthAdded+3
- dqn-SpaceInvadersNoFrameskip-v4/pytorch_variables.pthAdded+3
- dqn-SpaceInvadersNoFrameskip-v4/system_info.txtAdded+9
- env_kwargs.ymlAdded+1
- replay.mp4Added+3
- results.jsonAdded+1
- train_eval_metrics.zipAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text*.mp4 filter=lfs diff=lfs merge=lfs -text
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586---library_name: stable-baselines3tags:- SpaceInvadersNoFrameskip-v4- deep-reinforcement-learning- reinforcement-learning- stable-baselines3model-index:- name: DQN results: - task: type: reinforcement-learning name: reinforcement-learning dataset: name: SpaceInvadersNoFrameskip-v4 type: SpaceInvadersNoFrameskip-v4 metrics: - type: mean_reward value: 255.50 +/- 42.80 name: mean_reward verified: false---
# **DQN** Agent playing **SpaceInvadersNoFrameskip-v4**This is a trained model of a **DQN** agent playing **SpaceInvadersNoFrameskip-v4**using the [stable-baselines3 library](https://github.com/DLR-RM/stable-baselines3)and the [RL Zoo](https://github.com/DLR-RM/rl-baselines3-zoo).
The RL Zoo is a training framework for Stable Baselines3reinforcement learning agents,with hyperparameter optimization and pre-trained agents included.
## Usage (with SB3 RL Zoo)
RL Zoo: https://github.com/DLR-RM/rl-baselines3-zoo<br/>SB3: https://github.com/DLR-RM/stable-baselines3<br/>SB3 Contrib: https://github.com/Stable-Baselines-Team/stable-baselines3-contrib
Install the RL Zoo (with SB3 and SB3-Contrib):```bashpip install rl_zoo3```
```# Download model and save it into the logs/ folderpython -m rl_zoo3.load_from_hub --algo dqn --env SpaceInvadersNoFrameskip-v4 -orga chriss1245 -f logs/python -m rl_zoo3.enjoy --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/```
If you installed the RL Zoo3 via pip (`pip install rl_zoo3`), from anywhere you can do:```python -m rl_zoo3.load_from_hub --algo dqn --env SpaceInvadersNoFrameskip-v4 -orga chriss1245 -f logs/python -m rl_zoo3.enjoy --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/```
## Training (with the RL Zoo)```python -m rl_zoo3.train --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/# Upload the model and generate video (when possible)python -m rl_zoo3.push_to_hub --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/ -orga chriss1245```
## Hyperparameters```pythonOrderedDict([('batch_size', 32), ('buffer_size', 100000), ('env_wrapper', ['stable_baselines3.common.atari_wrappers.AtariWrapper']), ('exploration_final_eps', 0.01), ('exploration_fraction', 0.1), ('frame_stack', 4), ('gradient_steps', 1), ('learning_rate', 0.0001), ('learning_starts', 10000), ('n_timesteps', 100000), ('optimize_memory_usage', False), ('policy', 'CnnPolicy'), ('target_update_interval', 1000), ('train_freq', 4), ('normalize', False)])```
# Environment Arguments```python{'render_mode': 'rgb_array'}```123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081!!python/object/apply:collections.OrderedDict- - - algo - dqn - - conf_file - dqn.yml - - device - auto - - env - SpaceInvadersNoFrameskip-v4 - - env_kwargs - null - - eval_episodes - 5 - - eval_freq - 25000 - - gym_packages - [] - - hyperparams - null - - log_folder - logs - - log_interval - -1 - - max_total_trials - null - - n_eval_envs - 1 - - n_evaluations - null - - n_jobs - 1 - - n_startup_trials - 10 - - n_timesteps - -1 - - n_trials - 500 - - no_optim_plots - false - - num_threads - -1 - - optimization_log_path - null - - optimize_hyperparameters - false - - progress - false - - pruner - median - - sampler - tpe - - save_freq - -1 - - save_replay_buffer - false - - seed - 1205893134 - - storage - null - - study_name - null - - tensorboard_log - '' - - track - false - - trained_agent - '' - - truncate_last_trajectory - true - - uuid - false - - vec_env - dummy - - verbose - 1 - - wandb_entity - null - - wandb_project_name - sb3 - - wandb_tags - []1234567891011121314151617181920212223242526272829!!python/object/apply:collections.OrderedDict- - - batch_size - 32 - - buffer_size - 100000 - - env_wrapper - - stable_baselines3.common.atari_wrappers.AtariWrapper - - exploration_final_eps - 0.01 - - exploration_fraction - 0.1 - - frame_stack - 4 - - gradient_steps - 1 - - learning_rate - 0.0001 - - learning_starts - 10000 - - n_timesteps - 100000 - - optimize_memory_usage - false - - policy - CnnPolicy - - target_update_interval - 1000 - - train_freq - 4123version https://git-lfs.github.com/spec/v1oid sha256:e34e516aace0a8e54374d21bfa194ecc34d8dcd361dc6bacac207e62c6622bfasize 2722011212.2.1123version https://git-lfs.github.com/spec/v1oid sha256:f426258ed6d8151eb8b87de7c45e4c24f37b98e0a855725aace48e5dd3f8ed74size 13506236123version https://git-lfs.github.com/spec/v1oid sha256:e625cdf48a1bdbb410b47b213dfa0c08aa78451d9365f132890475128bc17d97size 13505370123version https://git-lfs.github.com/spec/v1oid sha256:0c35cea3b2e60fb5e7e162d3592df775cd400e575a31c72f359fb9e654ab00c5size 864123456789- OS: Linux-5.15.120+-x86_64-with-glibc2.35 # 1 SMP Wed Aug 30 11:19:59 UTC 2023- Python: 3.10.12- Stable-Baselines3: 2.2.1- PyTorch: 2.1.0+cu118- GPU Enabled: True- Numpy: 1.23.5- Cloudpickle: 2.2.1- Gymnasium: 0.29.1- OpenAI Gym: 0.26.21render_mode: rgb_array123version https://git-lfs.github.com/spec/v1oid sha256:37d63aa8e3eeaada2489bbeceb831b191b2bfec5473b2bb7165b685370e2e758size 2585121{"mean_reward": 255.5, "std_reward": 42.80478945164898, "is_deterministic": false, "n_eval_episodes": 10, "eval_datetime": "2023-12-09T22:26:41.517239"}123version https://git-lfs.github.com/spec/v1oid sha256:a382678e9425aee7e645b4549e22862798a828f3c841446bb5b44024df1446f8size 4714.gitattributes+1
README.mdAdded+86
args.ymlAdded+81
config.ymlAdded+29
dqn-SpaceInvadersNoFrameskip-v4.zipAdded+3
dqn-SpaceInvadersNoFrameskip-v4/_stable_baselines3_versionAdded+1
dqn-SpaceInvadersNoFrameskip-v4/dataAdded
dqn-SpaceInvadersNoFrameskip-v4/policy.optimizer.pthAdded+3
dqn-SpaceInvadersNoFrameskip-v4/policy.pthAdded+3
dqn-SpaceInvadersNoFrameskip-v4/pytorch_variables.pthAdded+3
dqn-SpaceInvadersNoFrameskip-v4/system_info.txtAdded+9
env_kwargs.ymlAdded+1
replay.mp4Added+3
results.jsonAdded+1
train_eval_metrics.zipAdded+3