Reinforcement Learning
stable-baselines3
BeamRiderNoFrameskip-v4
deep-reinforcement-learning
Eval Results (legacy)
Run this model with HF Jobs
Run egdethomas/unit3-ipynb 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/egdethomas/unit3-ipynb. 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/egdethomas/unit3-ipynb 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 egdethomas/unit3-ipynb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use egdethomas/unit3-ipynb with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="egdethomas/unit3-ipynb", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
Initial commit
Browse filesFiles changed (14)
- .gitattributes+1
- README.mdAdded+87
- args.ymlAdded+83
- config.ymlAdded+29
- dqn-BeamRiderNoFrameskip-v4.zipAdded+3
- dqn-BeamRiderNoFrameskip-v4/_stable_baselines3_versionAdded+1
- dqn-BeamRiderNoFrameskip-v4/dataAdded
- dqn-BeamRiderNoFrameskip-v4/policy.optimizer.pthAdded+3
- dqn-BeamRiderNoFrameskip-v4/policy.pthAdded+3
- dqn-BeamRiderNoFrameskip-v4/pytorch_variables.pthAdded+3
- dqn-BeamRiderNoFrameskip-v4/system_info.txtAdded+9
- env_kwargs.ymlAdded+1
- 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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687---library_name: stable-baselines3tags:- BeamRiderNoFrameskip-v4- deep-reinforcement-learning- reinforcement-learning- stable-baselines3model-index:- name: DQN results: - task: type: reinforcement-learning name: reinforcement-learning dataset: name: BeamRiderNoFrameskip-v4 type: BeamRiderNoFrameskip-v4 metrics: - type: mean_reward value: 52.80 +/- 38.36 name: mean_reward verified: false---
# **DQN** Agent playing **BeamRiderNoFrameskip-v4**This is a trained model of a **DQN** agent playing **BeamRiderNoFrameskip-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-contribSBX (SB3 + Jax): https://github.com/araffin/sbx
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 BeamRiderNoFrameskip-v4 -orga egdethomas -f logs/python -m rl_zoo3.enjoy --algo dqn --env BeamRiderNoFrameskip-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 BeamRiderNoFrameskip-v4 -orga egdethomas -f logs/python -m rl_zoo3.enjoy --algo dqn --env BeamRiderNoFrameskip-v4 -f logs/```
## Training (with the RL Zoo)```python -m rl_zoo3.train --algo dqn --env BeamRiderNoFrameskip-v4 -f logs/# Upload the model and generate video (when possible)python -m rl_zoo3.push_to_hub --algo dqn --env BeamRiderNoFrameskip-v4 -f logs/ -orga egdethomas```
## 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', 100000), ('n_timesteps', 10000), ('optimize_memory_usage', False), ('policy', 'CnnPolicy'), ('target_update_interval', 1000), ('train_freq', 4), ('normalize', False)])```
# Environment Arguments```python{'render_mode': 'rgb_array'}```1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283!!python/object/apply:collections.OrderedDict- - - algo - dqn - - conf_file - dqn.yml - - device - auto - - env - BeamRiderNoFrameskip-v4 - - env_kwargs - null - - eval_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 - 4194265549 - - 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 - 100000 - - n_timesteps - 10000 - - optimize_memory_usage - false - - policy - CnnPolicy - - target_update_interval - 1000 - - train_freq - 4123version https://git-lfs.github.com/spec/v1oid sha256:da39dcf60d8298af1aa3b405124619c8d313a0560f0f4a5a3c8bea68436773f3size 1372401812.4.0123version https://git-lfs.github.com/spec/v1oid sha256:215ea7d8898faa9284464c7109532cf36390d330fccab8d77eeba20628a32876size 1120123version https://git-lfs.github.com/spec/v1oid sha256:018e9f1ed1a2f7bb778185a57fc1d7ecdc69384a9817f51bdbc913c9c5ae71c5size 13517658123version https://git-lfs.github.com/spec/v1oid sha256:0c35cea3b2e60fb5e7e162d3592df775cd400e575a31c72f359fb9e654ab00c5size 864123456789- OS: Linux-6.1.85+-x86_64-with-glibc2.35 # 1 SMP PREEMPT_DYNAMIC Thu Jun 27 21:05:47 UTC 2024- Python: 3.10.12- Stable-Baselines3: 2.4.0- PyTorch: 2.5.1+cu121- GPU Enabled: True- Numpy: 1.26.4- Cloudpickle: 3.1.0- Gymnasium: 1.0.0- OpenAI Gym: 0.25.21render_mode: rgb_array1{"mean_reward": 52.8, "std_reward": 38.358310703157926, "is_deterministic": false, "n_eval_episodes": 10, "eval_datetime": "2024-12-11T06:18:00.659428"}123version https://git-lfs.github.com/spec/v1oid sha256:7ac4d304a9966f14a983c685b1f3aa31af63fcfe79a103c08947c03a545f33b2size 351.gitattributes+1
README.mdAdded+87
args.ymlAdded+83
config.ymlAdded+29
dqn-BeamRiderNoFrameskip-v4.zipAdded+3
dqn-BeamRiderNoFrameskip-v4/_stable_baselines3_versionAdded+1
dqn-BeamRiderNoFrameskip-v4/dataAdded
dqn-BeamRiderNoFrameskip-v4/policy.optimizer.pthAdded+3
dqn-BeamRiderNoFrameskip-v4/policy.pthAdded+3
dqn-BeamRiderNoFrameskip-v4/pytorch_variables.pthAdded+3
dqn-BeamRiderNoFrameskip-v4/system_info.txtAdded+9
env_kwargs.ymlAdded+1
results.jsonAdded+1
train_eval_metrics.zipAdded+3