NicolasYn commited on
Commit
1ae89c6
1 Parent(s): 028466c

Initial commit

Browse files
Files changed (4) hide show
  1. README.md +43 -38
  2. model.pt +1 -1
  3. replay.mp4 +0 -0
  4. results.json +1 -1
README.md CHANGED
@@ -1,11 +1,13 @@
1
  ---
2
- library_name: sample-factory
3
  tags:
 
 
4
  - deep-reinforcement-learning
5
  - reinforcement-learning
6
- - sample-factory
 
7
  model-index:
8
- - name: APPO
9
  results:
10
  - task:
11
  type: reinforcement-learning
@@ -15,42 +17,45 @@ model-index:
15
  type: LunarLander-v2
16
  metrics:
17
  - type: mean_reward
18
- value: 205.87 +/- 83.70
19
  name: mean_reward
20
  verified: false
21
  ---
22
 
23
- A(n) **APPO** model trained on the **LunarLander-v2** environment.
24
-
25
- This model was trained using Sample-Factory 2.0: https://github.com/alex-petrenko/sample-factory.
26
- Documentation for how to use Sample-Factory can be found at https://www.samplefactory.dev/
27
-
28
-
29
- ## Downloading the model
30
-
31
- After installing Sample-Factory, download the model with:
32
- ```
33
- python -m sample_factory.huggingface.load_from_hub -r NicolasYn/ppo8-LunarLander-v2
34
- ```
35
-
36
-
37
- ## Using the model
38
-
39
- To run the model after download, use the `enjoy` script corresponding to this environment:
40
- ```
41
- python -m <path.to.enjoy.module> --algo=APPO --env=LunarLander-v2 --train_dir=./train_dir --experiment=ppo8-LunarLander-v2
42
- ```
43
-
44
-
45
- You can also upload models to the Hugging Face Hub using the same script with the `--push_to_hub` flag.
46
- See https://www.samplefactory.dev/10-huggingface/huggingface/ for more details
47
-
48
- ## Training with this model
49
-
50
- To continue training with this model, use the `train` script corresponding to this environment:
51
- ```
52
- python -m <path.to.train.module> --algo=APPO --env=LunarLander-v2 --train_dir=./train_dir --experiment=ppo8-LunarLander-v2 --restart_behavior=resume --train_for_env_steps=10000000000
53
- ```
54
-
55
- Note, you may have to adjust `--train_for_env_steps` to a suitably high number as the experiment will resume at the number of steps it concluded at.
56
-
 
 
 
 
1
  ---
 
2
  tags:
3
+ - LunarLander-v2
4
+ - ppo
5
  - deep-reinforcement-learning
6
  - reinforcement-learning
7
+ - custom-implementation
8
+ - deep-rl-course
9
  model-index:
10
+ - name: PPO
11
  results:
12
  - task:
13
  type: reinforcement-learning
 
17
  type: LunarLander-v2
18
  metrics:
19
  - type: mean_reward
20
+ value: -179.93 +/- 111.55
21
  name: mean_reward
22
  verified: false
23
  ---
24
 
25
+ # PPO Agent Playing LunarLander-v2
26
+
27
+ This is a trained model of a PPO agent playing LunarLander-v2.
28
+
29
+ # Hyperparameters
30
+ ```python
31
+ {'exp_name': 'unit8_ppo1'
32
+ 'seed': 1
33
+ 'torch_deterministic': True
34
+ 'cuda': True
35
+ 'track': False
36
+ 'wandb_project_name': 'cleanRL'
37
+ 'wandb_entity': None
38
+ 'capture_video': False
39
+ 'env_id': 'LunarLander-v2'
40
+ 'total_timesteps': 50
41
+ 'learning_rate': 0.00025
42
+ 'num_envs': 4
43
+ 'num_steps': 128
44
+ 'anneal_lr': True
45
+ 'gae': True
46
+ 'gamma': 0.99
47
+ 'gae_lambda': 0.95
48
+ 'num_minibatches': 4
49
+ 'update_epochs': 4
50
+ 'norm_adv': True
51
+ 'clip_coef': 0.2
52
+ 'clip_vloss': True
53
+ 'ent_coef': 0.01
54
+ 'vf_coef': 0.5
55
+ 'max_grad_norm': 0.5
56
+ 'target_kl': None
57
+ 'repo_id': 'NicolasYn/ppo8-LunarLander-v2'
58
+ 'batch_size': 512
59
+ 'minibatch_size': 128}
60
+ ```
61
+
model.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3a495681ed0715e3e84e02ed2970c8ac4c7eba5781e4319e364a1f58d8afd5a5
3
  size 43026
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a69b7bcd30a64cd0e3f59fb043b7222208fabadead1211be73df47a6003ac3e
3
  size 43026
replay.mp4 CHANGED
Binary files a/replay.mp4 and b/replay.mp4 differ
 
results.json CHANGED
@@ -1 +1 @@
1
- {"env_id": "LunarLander-v2", "mean_reward": -64.00075579713192, "std_reward": 19.541288934197084, "n_evaluation_episodes": 10, "eval_datetime": "2024-04-03T19:59:15.945122"}
 
1
+ {"env_id": "LunarLander-v2", "mean_reward": -179.93470284522232, "std_reward": 111.5488000959182, "n_evaluation_episodes": 10, "eval_datetime": "2024-04-06T20:12:44.691942"}