File size: 11,450 Bytes
862b6ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
{
  "action_labels": [
    "NOOP",
    "FIRE",
    "RIGHT",
    "LEFT",
    "RIGHTFIRE",
    "LEFTFIRE"
  ],
  "action_layout": "demon_attack_discrete",
  "base_prompt": "You are playing Demon Attack from a single game image. Choose exactly one action from: NOOP, FIRE, RIGHT, LEFT, RIGHTFIRE, LEFTFIRE. Survive, avoid enemy fire, and shoot enemies to maximize score.",
  "checkpoint_config": {
    "action_repeat": 4,
    "actor_critic_share_weights": true,
    "actor_worker_gpus": [],
    "adam_beta1": 0.9,
    "adam_beta2": 0.999,
    "adam_eps": 1e-05,
    "adaptive_stddev": true,
    "add_latency_info": false,
    "algo": "APPO",
    "async_rl": true,
    "batch_size": 1024,
    "batched_sampling": true,
    "benchmark": false,
    "cli_args": {
      "action_repeat": 4,
      "add_latency_info": false,
      "algo": "APPO",
      "async_rl": true,
      "batch_size": 1024,
      "batched_sampling": true,
      "clip_reward": true,
      "device": "gpu",
      "env": "latency_demon_attack",
      "env_id": "ALE/DemonAttack-v5",
      "episode_metrics_path": "results/checkpoints/demon_attack_sf_same_latency_l6_seed0/episode_metrics.jsonl",
      "episodes_per_stage": 10,
      "eval_deterministic": true,
      "eval_episodes": 20,
      "eval_max_steps": 3600,
      "eval_queue_latency_values": "0,1,2,3,4,5,10,15",
      "eval_raw_reward": true,
      "experiment": "demon_attack_sf_same_latency_l6_seed0",
      "experiment_summaries_interval": 1,
      "frame_stack": 4,
      "full_action_space": false,
      "gae_lambda": 0.95,
      "gamma": 0.99,
      "keep_checkpoints": 5,
      "latency_mode": "episode_fixed",
      "latency_sampling_mode": "uniform_all",
      "learning_rate": 0.000303,
      "max_episode_steps": 25000,
      "max_grad_norm": 0.0,
      "mode": "train",
      "noop_max": 30,
      "normalize_input": true,
      "normalize_returns": true,
      "num_batches_per_epoch": 2,
      "num_envs_per_worker": 4,
      "num_epochs": 2,
      "num_policies": 1,
      "num_workers": 16,
      "ppo_clip_ratio": 0.1,
      "ppo_clip_value": 0.2,
      "queue_latency_values": "6",
      "randomize_within_stage": false,
      "recurrence": 32,
      "repeat_action_probability": 0.0,
      "restart_behavior": "overwrite",
      "rollout": 128,
      "save_every_sec": 600,
      "screen_size": 84,
      "seed": 0,
      "stats_avg": 100,
      "terminal_on_life_loss": true,
      "train_dir": "results/checkpoints",
      "train_for_env_steps": 50000000,
      "use_rnn": false,
      "value_loss_coeff": 0.5,
      "wandb_group": "demon_attack",
      "wandb_job_type": "sample_factory",
      "wandb_project": "latency-sensitive-bench",
      "with_wandb": true,
      "within_episode_change_interval": 1,
      "within_episode_change_prob": 1.0,
      "worker_num_splits": 2
    },
    "clip_reward": true,
    "command_line": "--mode train --algo APPO --env latency_demon_attack --experiment demon_attack_sf_same_latency_l6_seed0 --train_dir results/checkpoints --restart_behavior overwrite --device gpu --seed 0 --episode_metrics_path results/checkpoints/demon_attack_sf_same_latency_l6_seed0/episode_metrics.jsonl --train_for_env_steps 50000000 --num_workers 16 --num_envs_per_worker 4 --num_policies 1 --batch_size 1024 --rollout 128 --recurrence 32 --num_epochs 2 --num_batches_per_epoch 2 --worker_num_splits 2 --learning_rate 0.000303 --gamma 0.99 --gae_lambda 0.95 --ppo_clip_ratio 0.1 --ppo_clip_value 0.2 --value_loss_coeff 0.5 --max_grad_norm 0.0 --save_every_sec 600 --keep_checkpoints 5 --stats_avg 100 --experiment_summaries_interval 1 --async_rl True --batched_sampling True --use_rnn False --normalize_returns True --normalize_input True --queue-latency-values 6 --latency-mode episode_fixed --latency-sampling-mode uniform_all --episodes-per-stage 10 --randomize-within-stage False --within-episode-change-interval 1 --within-episode-change-prob 1.0 --add-latency-info False --eval-episodes 20 --eval-queue-latency-values 0,1,2,3,4,5,10,15 --eval-max-steps 3600 --eval-deterministic True --eval-raw-reward --with_wandb True --wandb_project latency-sensitive-bench --wandb_group demon_attack --wandb_job_type sample_factory --env_id ALE/DemonAttack-v5 --screen_size 84 --noop_max 30 --action_repeat 4 --frame_stack 4 --terminal_on_life_loss True --clip_reward True --repeat_action_probability 0.0 --full_action_space False --max_episode_steps 25000",
    "continuous_tanh_scale": 0.0,
    "decoder_mlp_layers": [],
    "decorrelate_envs_on_one_worker": true,
    "decorrelate_experience_max_seconds": 0,
    "default_niceness": 0,
    "device": "gpu",
    "encoder_conv_architecture": "convnet_atari",
    "encoder_conv_mlp_layers": [
      512
    ],
    "encoder_mlp_layers": [
      512,
      512
    ],
    "env": "latency_demon_attack",
    "env_frameskip": 1,
    "env_framestack": 1,
    "env_gpu_actions": false,
    "env_gpu_observations": true,
    "env_id": "ALE/DemonAttack-v5",
    "episode_metrics_path": "results/checkpoints/demon_attack_sf_same_latency_l6_seed0/episode_metrics.jsonl",
    "episodes_per_stage": 10,
    "eval_deterministic": true,
    "eval_episodes": 20,
    "eval_max_steps": 3600,
    "eval_queue_latency_values": "0,1,2,3,4,5,10,15",
    "eval_raw_reward": true,
    "experiment": "demon_attack_sf_same_latency_l6_seed0",
    "experiment_summaries_interval": 1,
    "exploration_loss": "entropy",
    "exploration_loss_coeff": 0.003,
    "flush_summaries_interval": 30,
    "force_envs_single_thread": false,
    "frame_stack": 4,
    "full_action_space": false,
    "gae_lambda": 0.95,
    "gamma": 0.99,
    "git_hash": "41bc95edbf670a1190d128da22e9cd3777b87989",
    "git_repo_name": "git@github.com:ZihanWang314/latency-sensitive-bench.git",
    "heartbeat_interval": 20,
    "heartbeat_reporting_interval": 180,
    "help": false,
    "initial_stddev": 1.0,
    "keep_checkpoints": 5,
    "kl_loss_coeff": 0.0,
    "latency_mode": "episode_fixed",
    "latency_sampling_mode": "uniform_all",
    "learning_rate": 0.000303,
    "load_checkpoint_kind": "latest",
    "log_to_file": true,
    "lr_adaptive_max": 0.01,
    "lr_adaptive_min": 1e-06,
    "lr_schedule": "linear_decay",
    "lr_schedule_kl_threshold": 0.008,
    "max_episode_steps": 25000,
    "max_grad_norm": 0.0,
    "max_policy_lag": 1000,
    "mode": "train",
    "nonlinearity": "elu",
    "noop_max": 30,
    "normalize_input": true,
    "normalize_input_keys": null,
    "normalize_returns": true,
    "num_batches_per_epoch": 2,
    "num_batches_to_accumulate": 2,
    "num_envs_per_worker": 4,
    "num_epochs": 2,
    "num_policies": 1,
    "num_workers": 16,
    "obs_scale": 255.0,
    "obs_subtract_mean": 0.0,
    "optimizer": "adam",
    "output_dir": "outputs/train/demon_attack/latency_6/seed_0",
    "pbt_mix_policies_in_one_env": true,
    "pbt_mutation_rate": 0.15,
    "pbt_optimize_gamma": false,
    "pbt_period_env_steps": 5000000,
    "pbt_perturb_max": 1.5,
    "pbt_perturb_min": 1.1,
    "pbt_replace_fraction": 0.3,
    "pbt_replace_reward_gap": 0.1,
    "pbt_replace_reward_gap_absolute": 1e-06,
    "pbt_start_mutation": 20000000,
    "pbt_target_objective": "true_objective",
    "pixel_format": "CHW",
    "policy_init_gain": 1.0,
    "policy_initialization": "orthogonal",
    "policy_workers_per_policy": 1,
    "ppo_clip_ratio": 0.1,
    "ppo_clip_value": 0.2,
    "queue_latency_values": "6",
    "randomize_within_stage": false,
    "recurrence": 32,
    "repeat_action_probability": 0.0,
    "restart_behavior": "overwrite",
    "reward_clip": 1000.0,
    "reward_scale": 1.0,
    "rnn_num_layers": 1,
    "rnn_size": 512,
    "rnn_type": "gru",
    "rollout": 128,
    "save_best_after": 100000,
    "save_best_every_sec": 5,
    "save_best_metric": "reward",
    "save_every_sec": 600,
    "save_milestones_sec": -1,
    "screen_size": 84,
    "seed": 0,
    "serial_mode": false,
    "set_workers_cpu_affinity": true,
    "shuffle_minibatches": false,
    "stats_avg": 100,
    "summaries_use_frameskip": true,
    "terminal_on_life_loss": true,
    "train_dir": "results/checkpoints",
    "train_for_env_steps": 50000000,
    "train_for_seconds": 10000000000,
    "use_env_info_cache": false,
    "use_record_episode_statistics": false,
    "use_rnn": false,
    "value_bootstrap": false,
    "value_loss_coeff": 0.5,
    "vtrace_c": 1.0,
    "vtrace_rho": 1.0,
    "wandb_group": "demon_attack",
    "wandb_job_type": "sample_factory",
    "wandb_project": "latency-sensitive-bench",
    "wandb_tags": [],
    "wandb_unique_id": "demon-attack-l6-s0",
    "wandb_user": null,
    "with_pbt": false,
    "with_vtrace": false,
    "with_wandb": true,
    "within_episode_change_interval": 1,
    "within_episode_change_prob": 1.0,
    "worker_num_splits": 2
  },
  "checkpoint_experiment_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/ghost_ws/regenerate_final_ghost_trail_15/small_model/checkpoints_old/demon_attack_sf_same_latency_l6_seed0",
  "checkpoint_path": null,
  "checkpoint_train_step": 0,
  "config_source": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/ghost_ws/regenerate_final_ghost_trail_15/small_model/checkpoints_old/demon_attack_sf_same_latency_l6_seed0/config.json",
  "context_image_count": 0,
  "context_window": 1,
  "env_fps": 60.0,
  "env_name": "demon_attack",
  "episode_return_field": "episode_raw_return",
  "filter_preset": "none",
  "filter_report": {
    "accepted_episodes": 200,
    "accepted_train_episodes": 198,
    "accepted_val_episodes": 2,
    "attempted_episodes": 200,
    "preset": "none",
    "raw_score_bins": {
      "6460-6889": 0,
      "6890-7309": 0,
      "7310-7999": 0,
      "<6460": 200,
      ">=8000": 0
    },
    "rejected_episodes": 0,
    "train_rows_after_row_filter": 559520,
    "train_rows_before_row_filter": 1056688,
    "val_rows_after_row_filter": 3943,
    "val_rows_before_row_filter": 9860
  },
  "frame_stack": 4,
  "image_resolution": [
    210,
    160,
    3
  ],
  "image_source": "env_raw_rgb_demon_attack_ghost_trail",
  "image_transform": {
    "gamma": 1.3,
    "ground_fraction": 0.22,
    "history_frames": 15,
    "image_transform": "demon_attack_ghost_trail",
    "min_alpha": 35,
    "scroll_px_per_step": 4.0
  },
  "image_transform_prompt_contexts": {
    "demon_attack_ghost_trail": " You can see the recent motion of the ship, missiles, and demons in the image. Use it to make your decision.",
    "flappy_ghost_trail": " You can see the past motion of the bird in the image. Use it to make your decision."
  },
  "latency_override": {
    "add_latency_info": false,
    "fixed_latency_ms": 400.0,
    "method": "fixed"
  },
  "latency_source": "legacy_checkpoint_name",
  "max_episodes": 200,
  "max_steps_per_episode": 7200,
  "num_envs": 2048,
  "obs_fps": 15.0,
  "obs_stride_raw_frames": 4,
  "prompt_source": "latency_bench.data.prompts",
  "prompt_timing_suffix": " Current action latency is {latency_raw_frames} raw frames ({latency_ms:.2f} ms).  The environment runs at {env_fps:g} FPS and observations are emitted at {obs_fps:g} FPS. Choose the best next action.",
  "replay_num_envs": 16,
  "reward_field": "raw_reward",
  "reward_semantics": "raw_reward",
  "rows_unit": "decision_step",
  "schema_version": 2,
  "split_seed": 0,
  "total_episodes": 200,
  "total_rows": 563463,
  "train_episodes": 198,
  "train_rows": 559520,
  "val_episodes": 2,
  "val_fraction": 0.1,
  "val_rows": 3943
}