qgallouedec HF staff commited on
Commit
d1ea526
1 Parent(s): 99ffa0b

Upload . with huggingface_hub

Browse files
.gitattributes CHANGED
@@ -32,3 +32,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ replay.mp4 filter=lfs diff=lfs merge=lfs -text
.summary/0/events.out.tfevents.1678336785.qgallouedec-MS-7C84 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5b34109424a24470b84aeb89ba15dfe441070adbdc36a241038fdec50892318
3
+ size 4261143
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
12
+ name: reinforcement-learning
13
+ dataset:
14
+ name: lever-pull-v2
15
+ type: lever-pull-v2
16
+ metrics:
17
+ - type: mean_reward
18
+ value: 4249.97 +/- 1163.87
19
+ name: mean_reward
20
+ verified: false
21
+ ---
22
+
23
+ A(n) **APPO** model trained on the **lever-pull-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 qgallouedec/sample-factory-lever-pull-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 enjoy --algo=APPO --env=lever-pull-v2 --train_dir=./train_dir --experiment=sample-factory-lever-pull-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 train --algo=APPO --env=lever-pull-v2 --train_dir=./train_dir --experiment=sample-factory-lever-pull-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
+
checkpoint_p0/best_000190952_97767424_reward_4636.195.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a820cf5cfaf7a742eac607bea734e2291b100b7b9a3f6e27cb57c5951b7388a
3
+ size 98239
checkpoint_p0/checkpoint_000195112_99897344.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59f4345e0a69e485b84c02d34f076043687650f2b2508cc11fc3a38eae6afe4c
3
+ size 98567
checkpoint_p0/checkpoint_000195328_100007936.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17129b8c0cb9dace0664d3671f7cee7317b17db690fcbaef11595fc74bec27ce
3
+ size 98567
config.json ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "help": false,
3
+ "algo": "APPO",
4
+ "env": "lever-pull-v2",
5
+ "experiment": "lever-pull-v2",
6
+ "train_dir": "/home/qgallouedec/gia/data/envs/metaworld/train_dir",
7
+ "restart_behavior": "restart",
8
+ "device": "cpu",
9
+ "seed": null,
10
+ "num_policies": 1,
11
+ "async_rl": false,
12
+ "serial_mode": false,
13
+ "batched_sampling": false,
14
+ "num_batches_to_accumulate": 2,
15
+ "worker_num_splits": 2,
16
+ "policy_workers_per_policy": 1,
17
+ "max_policy_lag": 1000,
18
+ "num_workers": 8,
19
+ "num_envs_per_worker": 8,
20
+ "batch_size": 1024,
21
+ "num_batches_per_epoch": 4,
22
+ "num_epochs": 2,
23
+ "rollout": 64,
24
+ "recurrence": 1,
25
+ "shuffle_minibatches": false,
26
+ "gamma": 0.99,
27
+ "reward_scale": 0.1,
28
+ "reward_clip": 1000.0,
29
+ "value_bootstrap": true,
30
+ "normalize_returns": true,
31
+ "exploration_loss_coeff": 0.0,
32
+ "value_loss_coeff": 1.3,
33
+ "kl_loss_coeff": 0.1,
34
+ "exploration_loss": "entropy",
35
+ "gae_lambda": 0.95,
36
+ "ppo_clip_ratio": 0.2,
37
+ "ppo_clip_value": 1.0,
38
+ "with_vtrace": false,
39
+ "vtrace_rho": 1.0,
40
+ "vtrace_c": 1.0,
41
+ "optimizer": "adam",
42
+ "adam_eps": 1e-06,
43
+ "adam_beta1": 0.9,
44
+ "adam_beta2": 0.999,
45
+ "max_grad_norm": 3.5,
46
+ "learning_rate": 0.00295,
47
+ "lr_schedule": "linear_decay",
48
+ "lr_schedule_kl_threshold": 0.008,
49
+ "lr_adaptive_min": 1e-06,
50
+ "lr_adaptive_max": 0.01,
51
+ "obs_subtract_mean": 0.0,
52
+ "obs_scale": 1.0,
53
+ "normalize_input": true,
54
+ "normalize_input_keys": null,
55
+ "decorrelate_experience_max_seconds": 0,
56
+ "decorrelate_envs_on_one_worker": true,
57
+ "actor_worker_gpus": [],
58
+ "set_workers_cpu_affinity": true,
59
+ "force_envs_single_thread": false,
60
+ "default_niceness": 0,
61
+ "log_to_file": true,
62
+ "experiment_summaries_interval": 3,
63
+ "flush_summaries_interval": 30,
64
+ "stats_avg": 100,
65
+ "summaries_use_frameskip": true,
66
+ "heartbeat_interval": 20,
67
+ "heartbeat_reporting_interval": 180,
68
+ "train_for_env_steps": 100000000,
69
+ "train_for_seconds": 10000000000,
70
+ "save_every_sec": 15,
71
+ "keep_checkpoints": 2,
72
+ "load_checkpoint_kind": "latest",
73
+ "save_milestones_sec": -1,
74
+ "save_best_every_sec": 5,
75
+ "save_best_metric": "reward",
76
+ "save_best_after": 100000,
77
+ "benchmark": false,
78
+ "encoder_mlp_layers": [
79
+ 64,
80
+ 64
81
+ ],
82
+ "encoder_conv_architecture": "convnet_simple",
83
+ "encoder_conv_mlp_layers": [
84
+ 512
85
+ ],
86
+ "use_rnn": false,
87
+ "rnn_size": 512,
88
+ "rnn_type": "gru",
89
+ "rnn_num_layers": 1,
90
+ "decoder_mlp_layers": [],
91
+ "nonlinearity": "tanh",
92
+ "policy_initialization": "torch_default",
93
+ "policy_init_gain": 1.0,
94
+ "actor_critic_share_weights": true,
95
+ "adaptive_stddev": false,
96
+ "continuous_tanh_scale": 0.0,
97
+ "initial_stddev": 1.0,
98
+ "use_env_info_cache": false,
99
+ "env_gpu_actions": false,
100
+ "env_gpu_observations": true,
101
+ "env_frameskip": 1,
102
+ "env_framestack": 1,
103
+ "pixel_format": "CHW",
104
+ "use_record_episode_statistics": false,
105
+ "with_wandb": true,
106
+ "wandb_user": "qgallouedec",
107
+ "wandb_project": "sample_facotry_metaworld",
108
+ "wandb_group": null,
109
+ "wandb_job_type": "SF",
110
+ "wandb_tags": [],
111
+ "with_pbt": false,
112
+ "pbt_mix_policies_in_one_env": true,
113
+ "pbt_period_env_steps": 5000000,
114
+ "pbt_start_mutation": 20000000,
115
+ "pbt_replace_fraction": 0.3,
116
+ "pbt_mutation_rate": 0.15,
117
+ "pbt_replace_reward_gap": 0.1,
118
+ "pbt_replace_reward_gap_absolute": 1e-06,
119
+ "pbt_optimize_gamma": false,
120
+ "pbt_target_objective": "true_objective",
121
+ "pbt_perturb_min": 1.1,
122
+ "pbt_perturb_max": 1.5,
123
+ "command_line": "--env lever-pull-v2 --experiment lever-pull-v2 --with_wandb True --wandb_user qgallouedec --wandb_project sample_facotry_metaworld",
124
+ "cli_args": {
125
+ "env": "lever-pull-v2",
126
+ "experiment": "lever-pull-v2",
127
+ "with_wandb": true,
128
+ "wandb_user": "qgallouedec",
129
+ "wandb_project": "sample_facotry_metaworld"
130
+ },
131
+ "git_hash": "2bb8d8c9cd813ffeafaad42038b1e71364092d36",
132
+ "git_repo_name": "https://github.com/huggingface/gia",
133
+ "wandb_unique_id": "lever-pull-v2_20230309_053942_489496"
134
+ }
git.diff ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/data/envs/metaworld/generate_dataset_all.sh b/data/envs/metaworld/generate_dataset_all.sh
2
+ index 802bf5c..7fe0781 100755
3
+ --- a/data/envs/metaworld/generate_dataset_all.sh
4
+ +++ b/data/envs/metaworld/generate_dataset_all.sh
5
+ @@ -1,29 +1,29 @@
6
+ #!/bin/bash
7
+
8
+ ENVS=(
9
+ - assembly
10
+ - basketball
11
+ - bin-picking
12
+ - box-close
13
+ - button-press-topdown
14
+ - button-press-topdown-wall
15
+ - button-press
16
+ - button-press-wall
17
+ - coffee-button
18
+ - coffee-pull
19
+ - coffee-push
20
+ - dial-turn
21
+ - disassemble
22
+ - door-close
23
+ - door-lock
24
+ - door-open
25
+ - door-unlock
26
+ - drawer-close
27
+ - drawer-open
28
+ - faucet-close
29
+ - faucet-open
30
+ - hammer
31
+ - hand-insert
32
+ + # assembly
33
+ + # basketball
34
+ + # bin-picking
35
+ + # box-close
36
+ + # button-press-topdown
37
+ + # button-press-topdown-wall
38
+ + # button-press
39
+ + # button-press-wall
40
+ + # coffee-button
41
+ + # coffee-pull
42
+ + # coffee-push
43
+ + # dial-turn
44
+ + # disassemble
45
+ + # door-close
46
+ + # door-lock
47
+ + # door-open
48
+ + # door-unlock
49
+ + # drawer-close
50
+ + # drawer-open
51
+ + # faucet-close
52
+ + # faucet-open
53
+ + # hammer
54
+ + # hand-insert
55
+ handle-press-side
56
+ handle-press
57
+ handle-pull-side
58
+ diff --git a/data/envs/metaworld/push_all.sh b/data/envs/metaworld/push_all.sh
59
+ index 9d71467..26f8933 100755
60
+ --- a/data/envs/metaworld/push_all.sh
61
+ +++ b/data/envs/metaworld/push_all.sh
62
+ @@ -1,29 +1,29 @@
63
+ #!/bin/bash
64
+
65
+ ENVS=(
66
+ - assembly
67
+ - basketball
68
+ - bin-picking
69
+ - box-close
70
+ - button-press-topdown
71
+ - button-press-topdown-wall
72
+ - button-press
73
+ - button-press-wall
74
+ - coffee-button
75
+ - coffee-pull
76
+ - coffee-push
77
+ - dial-turn
78
+ - disassemble
79
+ - door-close
80
+ - door-lock
81
+ - door-open
82
+ - door-unlock
83
+ - drawer-close
84
+ - drawer-open
85
+ - faucet-close
86
+ - faucet-open
87
+ - hammer
88
+ - hand-insert
89
+ + # assembly
90
+ + # basketball
91
+ + # bin-picking
92
+ + # box-close
93
+ + # button-press-topdown
94
+ + # button-press-topdown-wall
95
+ + # button-press
96
+ + # button-press-wall
97
+ + # coffee-button
98
+ + # coffee-pull
99
+ + # coffee-push
100
+ + # dial-turn
101
+ + # disassemble
102
+ + # door-close
103
+ + # door-lock
104
+ + # door-open
105
+ + # door-unlock
106
+ + # drawer-close
107
+ + # drawer-open
108
+ + # faucet-close
109
+ + # faucet-open
110
+ + # hammer
111
+ + # hand-insert
112
+ handle-press-side
113
+ handle-press
114
+ handle-pull-side
115
+ diff --git a/data/envs/metaworld/train_all.sh b/data/envs/metaworld/train_all.sh
116
+ index dbf328a..071e16a 100755
117
+ --- a/data/envs/metaworld/train_all.sh
118
+ +++ b/data/envs/metaworld/train_all.sh
119
+ @@ -1,29 +1,29 @@
120
+ #!/bin/bash
121
+
122
+ ENVS=(
123
+ - assembly
124
+ - basketball
125
+ - bin-picking
126
+ - box-close
127
+ - button-press-topdown
128
+ - button-press-topdown-wall
129
+ - button-press
130
+ - button-press-wall
131
+ - coffee-button
132
+ - coffee-pull
133
+ - coffee-push
134
+ - dial-turn
135
+ - disassemble
136
+ - door-close
137
+ - door-lock
138
+ - door-open
139
+ - door-unlock
140
+ - drawer-close
141
+ - drawer-open
142
+ - faucet-close
143
+ - faucet-open
144
+ - hammer
145
+ - hand-insert
146
+ + # assembly
147
+ + # basketball
148
+ + # bin-picking
149
+ + # box-close
150
+ + # button-press-topdown
151
+ + # button-press-topdown-wall
152
+ + # button-press
153
+ + # button-press-wall
154
+ + # coffee-button
155
+ + # coffee-pull
156
+ + # coffee-push
157
+ + # dial-turn
158
+ + # disassemble
159
+ + # door-close
160
+ + # door-lock
161
+ + # door-open
162
+ + # door-unlock
163
+ + # drawer-close
164
+ + # drawer-open
165
+ + # faucet-close
166
+ + # faucet-open
167
+ + # hammer
168
+ + # hand-insert
169
+ handle-press-side
170
+ handle-press
171
+ handle-pull-side
172
+ @@ -55,4 +55,5 @@ ENVS=(
173
+
174
+ for ENV in "${ENVS[@]}"; do
175
+ python train.py --env $ENV-v2 --experiment $ENV-v2 --with_wandb True --wandb_user qgallouedec --wandb_project sample_facotry_metaworld
176
+ + python enjoy.py --algo=APPO --env $ENV-v2 --experiment $ENV-v2 --train_dir=./train_dir --max_num_episodes=10 --push_to_hub --hf_repository=qgallouedec/sample-factory-$ENV-v2 --save_video --no_render --enjoy_script=enjoy --train_script=train --load_checkpoint_kind best
177
+ done
replay.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:695ff672dd18c25d18cd926a338542b7bb93032740c389c8577ecf1ee89e4418
3
+ size 2766131
sf_log.txt ADDED
The diff for this file is too large to render. See raw diff