Consolidate paper experiment assets by task and run (901-1050)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +2 -0
- evaluations/deadly-corridor/memory_rollout_teacher:deadly_corridor:teacher:fixed_l6:fs4:obs8p75:stride4:seed0/train/memory_rollout_teacher:deadly_corridor:teacher:fixed_l6:fs4:obs8p75:stride4:seed0/episode_metrics.jsonl +3 -0
- evaluations/deadly-corridor/memory_rollout_teacher:deadly_corridor:teacher:fixed_l6:fs4:obs8p75:stride4:seed0/train/memory_rollout_teacher:deadly_corridor:teacher:fixed_l6:fs4:obs8p75:stride4:seed0/git.diff +1741 -0
- evaluations/deadly-corridor/memory_rollout_teacher:deadly_corridor:teacher:fixed_l6:fs4:obs8p75:stride4:seed0/train/memory_rollout_teacher:deadly_corridor:teacher:fixed_l6:fs4:obs8p75:stride4:seed0/sf_log.txt +0 -0
- evaluations/deadly-corridor/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/eval/fixed_6/eval_latency_6/episode_metrics.jsonl +20 -0
- evaluations/deadly-corridor/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/eval/fixed_6/queue_eval_latency_6.json +59 -0
- evaluations/deadly-corridor/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/eval/fixed_6/queue_eval_results.jsonl +1 -0
- evaluations/demon-attack/memory_rollout_teacher:demon_attack:teacher:fixed_l6:fs4:obs15:stride4:seed0/train/memory_rollout_teacher:demon_attack:teacher:fixed_l6:fs4:obs15:stride4:seed0/episode_metrics.jsonl +0 -0
- evaluations/demon-attack/memory_rollout_teacher:demon_attack:teacher:fixed_l6:fs4:obs15:stride4:seed0/train/memory_rollout_teacher:demon_attack:teacher:fixed_l6:fs4:obs15:stride4:seed0/git.diff +1829 -0
- evaluations/demon-attack/memory_rollout_teacher:demon_attack:teacher:fixed_l6:fs4:obs15:stride4:seed0/train/memory_rollout_teacher:demon_attack:teacher:fixed_l6:fs4:obs15:stride4:seed0/sf_log.txt +0 -0
- evaluations/demon-attack/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6/episode_metrics.jsonl +20 -0
- evaluations/demon-attack/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/queue_eval_latency_6.json +59 -0
- evaluations/demon-attack/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/queue_eval_results.jsonl +2 -0
- evaluations/demon-attack/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/hydra/.hydra/hydra.yaml +379 -0
- evaluations/demon-attack/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/hydra/.hydra/overrides.yaml +217 -0
- evaluations/demon-attack/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/hydra/train_starvla_hydra.log +0 -0
- evaluations/demon-attack/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/summary.jsonl +10 -0
- evaluations/flappy/memory_rollout_teacher:flappy:teacher:fixed_l3:fs4:obs30:stride1:seed0/train/memory_rollout_teacher:flappy:teacher:fixed_l3:fs4:obs30:stride1:seed0/episode_metrics.jsonl +3 -0
- evaluations/flappy/memory_rollout_teacher:flappy:teacher:fixed_l3:fs4:obs30:stride1:seed0/train/memory_rollout_teacher:flappy:teacher:fixed_l3:fs4:obs30:stride1:seed0/git.diff +1947 -0
- evaluations/flappy/memory_rollout_teacher:flappy:teacher:fixed_l3:fs4:obs30:stride1:seed0/train/memory_rollout_teacher:flappy:teacher:fixed_l3:fs4:obs30:stride1:seed0/sf_log.txt +0 -0
- evaluations/flappy/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3/episode_metrics.jsonl +20 -0
- evaluations/flappy/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/queue_eval_latency_3.json +59 -0
- evaluations/flappy/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/queue_eval_results.jsonl +1 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/eval/post_train/step_5000.json +318 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/episode_metrics.jsonl +20 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/observation_attempts.jsonl +0 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/resolved_config.yaml +138 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/episode_metrics.jsonl +20 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/observation_attempts.jsonl +0 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/resolved_config.yaml +139 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4/episode_metrics.jsonl +20 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4/observation_attempts.jsonl +0 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4/resolved_config.yaml +139 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/eval/post_train/step_5000.json +318 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/episode_metrics.jsonl +20 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/observation_attempts.jsonl +0 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/resolved_config.yaml +138 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/episode_metrics.jsonl +20 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/observation_attempts.jsonl +0 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/resolved_config.yaml +139 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4/episode_metrics.jsonl +20 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4/observation_attempts.jsonl +0 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4/resolved_config.yaml +139 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/eval/post_train/step_5000.json +318 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/episode_metrics.jsonl +20 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/observation_attempts.jsonl +0 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/resolved_config.yaml +139 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/episode_metrics.jsonl +20 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/observation_attempts.jsonl +0 -0
- evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/resolved_config.yaml +140 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
evaluations/deadly-corridor/memory_rollout_teacher:deadly_corridor:teacher:fixed_l6:fs4:obs8p75:stride4:seed0/train/memory_rollout_teacher:deadly_corridor:teacher:fixed_l6:fs4:obs8p75:stride4:seed0/episode_metrics.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
evaluations/flappy/memory_rollout_teacher:flappy:teacher:fixed_l3:fs4:obs30:stride1:seed0/train/memory_rollout_teacher:flappy:teacher:fixed_l3:fs4:obs30:stride1:seed0/episode_metrics.jsonl filter=lfs diff=lfs merge=lfs -text
|
evaluations/deadly-corridor/memory_rollout_teacher:deadly_corridor:teacher:fixed_l6:fs4:obs8p75:stride4:seed0/train/memory_rollout_teacher:deadly_corridor:teacher:fixed_l6:fs4:obs8p75:stride4:seed0/episode_metrics.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47e9f369b1c80159e15bd6ed5db7be2b4f9b5377fbdbe329701de93ad7352a08
|
| 3 |
+
size 192030635
|
evaluations/deadly-corridor/memory_rollout_teacher:deadly_corridor:teacher:fixed_l6:fs4:obs8p75:stride4:seed0/train/memory_rollout_teacher:deadly_corridor:teacher:fixed_l6:fs4:obs8p75:stride4:seed0/git.diff
ADDED
|
@@ -0,0 +1,1741 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/configs/experiments/fixed_latency_curve.yaml b/configs/experiments/fixed_latency_curve.yaml
|
| 2 |
+
deleted file mode 100644
|
| 3 |
+
index 3ab184f..0000000
|
| 4 |
+
--- a/configs/experiments/fixed_latency_curve.yaml
|
| 5 |
+
+++ /dev/null
|
| 6 |
+
@@ -1,17 +0,0 @@
|
| 7 |
+
-__base__: ../base/dummy.yaml
|
| 8 |
+
-
|
| 9 |
+
-experiment:
|
| 10 |
+
- name: fixed_latency_curve
|
| 11 |
+
-
|
| 12 |
+
-executor:
|
| 13 |
+
- mode: simulated
|
| 14 |
+
-
|
| 15 |
+
-latency:
|
| 16 |
+
- method: fixed
|
| 17 |
+
- fixed_latency_ms: 100
|
| 18 |
+
-
|
| 19 |
+
-evaluation:
|
| 20 |
+
- eval_episodes: 20
|
| 21 |
+
-
|
| 22 |
+
-logging:
|
| 23 |
+
- output_dir: outputs/fixed_latency_curve
|
| 24 |
+
diff --git a/configs/experiments/flappy/frame_stack/base.yaml b/configs/experiments/flappy/frame_stack/base.yaml
|
| 25 |
+
deleted file mode 100644
|
| 26 |
+
index f1557d5..0000000
|
| 27 |
+
--- a/configs/experiments/flappy/frame_stack/base.yaml
|
| 28 |
+
+++ /dev/null
|
| 29 |
+
@@ -1,123 +0,0 @@
|
| 30 |
+
-experiment:
|
| 31 |
+
- name: flappy_base
|
| 32 |
+
- seed: 0
|
| 33 |
+
-
|
| 34 |
+
-backend:
|
| 35 |
+
- type: sample_factory
|
| 36 |
+
- algo: APPO
|
| 37 |
+
- device: cuda
|
| 38 |
+
- train_dir: results/checkpoints
|
| 39 |
+
- restart_behavior: resume
|
| 40 |
+
- run_mode: train
|
| 41 |
+
-
|
| 42 |
+
-executor:
|
| 43 |
+
- mode: simulated
|
| 44 |
+
-
|
| 45 |
+
-env:
|
| 46 |
+
- name: flappy
|
| 47 |
+
- # note that env_fps must be an integer multiple of obs_fps!
|
| 48 |
+
- env_fps: 30
|
| 49 |
+
- obs_fps: 30
|
| 50 |
+
- gym_id: FlappyBird-v0
|
| 51 |
+
- render_mode: rgb_array
|
| 52 |
+
- observation_mode: image
|
| 53 |
+
- use_lidar: false
|
| 54 |
+
- normalize_obs: true
|
| 55 |
+
- audio_on: false
|
| 56 |
+
- frame_stack: 4
|
| 57 |
+
- obs_resize:
|
| 58 |
+
- - 84
|
| 59 |
+
- - 84
|
| 60 |
+
- # for training it could be true, but for realtime mode, THIS MUST BE FALSE!
|
| 61 |
+
- use_gpu_render: true
|
| 62 |
+
- simulator: gpu
|
| 63 |
+
- gpu_render_device: auto
|
| 64 |
+
- gpu_render_profile: false
|
| 65 |
+
- gpu_render_profile_interval: 200
|
| 66 |
+
- noop_action: noop
|
| 67 |
+
- action_map:
|
| 68 |
+
- noop: 0
|
| 69 |
+
- flap: 1
|
| 70 |
+
- oneshot_actions:
|
| 71 |
+
- - flap
|
| 72 |
+
-
|
| 73 |
+
-latency:
|
| 74 |
+
- method: normal
|
| 75 |
+
- mean_latency_ms: 66.7
|
| 76 |
+
- std_latency_ms: 33.3
|
| 77 |
+
- min_latency_ms: 0
|
| 78 |
+
- max_latency_ms: 500.0
|
| 79 |
+
-
|
| 80 |
+
-
|
| 81 |
+
-scheduler:
|
| 82 |
+
- # [one_frame_then_noop, hold]
|
| 83 |
+
- # if hold, default hold duration is: env_fps / obs_fps
|
| 84 |
+
- hold_policy: one_frame_then_noop
|
| 85 |
+
- # can be either `issue_order_fifo` or `latest ready`
|
| 86 |
+
- ordering_policy: latest_ready
|
| 87 |
+
-
|
| 88 |
+
-policy:
|
| 89 |
+
- type: random
|
| 90 |
+
- actions:
|
| 91 |
+
- - noop
|
| 92 |
+
- - flap
|
| 93 |
+
-
|
| 94 |
+
-training:
|
| 95 |
+
- train_for_env_steps: 25000000
|
| 96 |
+
- num_workers: 2
|
| 97 |
+
- num_envs_per_worker: 128
|
| 98 |
+
- worker_num_splits: 1
|
| 99 |
+
- num_policies: 1
|
| 100 |
+
- batch_size: 4096
|
| 101 |
+
- rollout: 128
|
| 102 |
+
- recurrence: 1
|
| 103 |
+
- num_epochs: 8
|
| 104 |
+
- num_batches_per_epoch: 8
|
| 105 |
+
- max_policy_lag: 400
|
| 106 |
+
- learning_rate: 0.00025
|
| 107 |
+
- gamma: 0.99
|
| 108 |
+
- gae_lambda: 0.95
|
| 109 |
+
- ppo_clip_ratio: 0.1
|
| 110 |
+
- ppo_clip_value: 0.2
|
| 111 |
+
- value_loss_coeff: 0.5
|
| 112 |
+
- max_grad_norm: 0.5
|
| 113 |
+
- async_rl: true
|
| 114 |
+
- use_rnn: false
|
| 115 |
+
- normalize_input: true
|
| 116 |
+
- normalize_returns: true
|
| 117 |
+
- stats_avg: 100
|
| 118 |
+
- experiment_summaries_interval: 1
|
| 119 |
+
- save_every_sec: 600
|
| 120 |
+
- keep_checkpoints: 5
|
| 121 |
+
-
|
| 122 |
+
-evaluation:
|
| 123 |
+
- eval_interval_steps: 1000000
|
| 124 |
+
- eval_episodes: 100
|
| 125 |
+
- eval_parallel_envs: 100
|
| 126 |
+
- eval_max_steps: 3600
|
| 127 |
+
- eval_deterministic: true
|
| 128 |
+
- eval_raw_reward: false
|
| 129 |
+
- eval_suites:
|
| 130 |
+
- fixed:
|
| 131 |
+
- - [0, 8] # [start, end]
|
| 132 |
+
- normal:
|
| 133 |
+
- - [2.0, 0.5, 0, 15] # low latency, low jitter
|
| 134 |
+
- - [2.0, 1.0, 0, 15] # low latency, medium jitter
|
| 135 |
+
- - [4.0, 0.5, 0, 15] # high latency, low jitter
|
| 136 |
+
- - [4.0, 1.0, 0, 15] # high latency, medium jitter
|
| 137 |
+
- - [4.0, 2.0, 0, 15] # high latency, high jitter
|
| 138 |
+
- uniform:
|
| 139 |
+
- - [1, 3] # low latency, low jitter
|
| 140 |
+
- - [0, 4] # low latency, high jitter
|
| 141 |
+
- - [3, 5] # high latency, low jitter
|
| 142 |
+
- - [2, 6] # high latency, high jitter
|
| 143 |
+
-
|
| 144 |
+
-logging:
|
| 145 |
+
- output_dir: outputs/flappy_base
|
| 146 |
+
- save_step_records: true
|
| 147 |
+
- save_action_records: true
|
| 148 |
+
- save_latency_records: true
|
| 149 |
+
- wandb_project: latency-sensitive-bench
|
| 150 |
+
- wandb_group: flappy-frame_stack
|
| 151 |
+
- wandb_job_type: sample_factory
|
| 152 |
+
- wandb_tags: ""
|
| 153 |
+
diff --git a/latency_bench/data/exporters/starvla_lerobot.py b/latency_bench/data/exporters/starvla_lerobot.py
|
| 154 |
+
index c693460..4ad276a 100644
|
| 155 |
+
--- a/latency_bench/data/exporters/starvla_lerobot.py
|
| 156 |
+
+++ b/latency_bench/data/exporters/starvla_lerobot.py
|
| 157 |
+
@@ -18,12 +18,17 @@ from latency_bench.utils.io import write_jsonl
|
| 158 |
+
from latency_bench.data.action_layouts import action_spec_for_env
|
| 159 |
+
from latency_bench.data.filters import density_weights_clean_v1
|
| 160 |
+
|
| 161 |
+
-FPS_BY_ENV = {
|
| 162 |
+
- "flappy": 30,
|
| 163 |
+
- "demon_attack": 60,
|
| 164 |
+
- "deadly_corridor": 35,
|
| 165 |
+
-}
|
| 166 |
+
STATE_DIM = 1
|
| 167 |
+
+BRIDGE_DIM = 7
|
| 168 |
+
+DEADLY_CORRIDOR_BRIDGE_ACTION_LABELS = (
|
| 169 |
+
+ "MOVE_FORWARD",
|
| 170 |
+
+ "MOVE_BACKWARD",
|
| 171 |
+
+ "MOVE_LEFT",
|
| 172 |
+
+ "MOVE_RIGHT",
|
| 173 |
+
+ "TURN_LEFT",
|
| 174 |
+
+ "TURN_RIGHT",
|
| 175 |
+
+ "ATTACK",
|
| 176 |
+
+)
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
def _png_bytes(image: Any) -> bytes:
|
| 180 |
+
@@ -64,30 +69,38 @@ def _load_rows(raw_export_dir: Path, split: str) -> list[dict[str, Any]]:
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
def _episode_groups(rows: list[dict[str, Any]]) -> list[list[dict[str, Any]]]:
|
| 184 |
+
- """Group canonical rows by episode and order by decision step.
|
| 185 |
+
+ """Group canonical rows by trajectory and order by decision step.
|
| 186 |
+
|
| 187 |
+
Args:
|
| 188 |
+
rows: Canonical rollout rows from one split.
|
| 189 |
+
|
| 190 |
+
Returns:
|
| 191 |
+
- Episode row groups sorted by episode index.
|
| 192 |
+
+ Trajectory row groups sorted by episode and trajectory index.
|
| 193 |
+
"""
|
| 194 |
+
- grouped: dict[int, list[dict[str, Any]]] = {}
|
| 195 |
+
+ grouped: dict[tuple[int, int], list[dict[str, Any]]] = {}
|
| 196 |
+
for row in rows:
|
| 197 |
+
- grouped.setdefault(int(row["episode_idx"]), []).append(row)
|
| 198 |
+
+ key = (int(row["episode_idx"]), int(row["trajectory_idx"]))
|
| 199 |
+
+ grouped.setdefault(key, []).append(row)
|
| 200 |
+
return [
|
| 201 |
+
sorted(episode_rows, key=lambda row: int(row["decision_step"]))
|
| 202 |
+
for _, episode_rows in sorted(grouped.items())
|
| 203 |
+
]
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
-def _write_episode(path: Path, rows: list[dict[str, Any]], *, action_dim: int) -> None:
|
| 207 |
+
+def _write_episode(
|
| 208 |
+
+ path: Path,
|
| 209 |
+
+ rows: list[dict[str, Any]],
|
| 210 |
+
+ *,
|
| 211 |
+
+ action_dim: int,
|
| 212 |
+
+ state_dim: int,
|
| 213 |
+
+) -> None:
|
| 214 |
+
"""Write one LeRobot episode parquet file.
|
| 215 |
+
|
| 216 |
+
Args:
|
| 217 |
+
path: Destination episode parquet path.
|
| 218 |
+
rows: Converted LeRobot frame rows.
|
| 219 |
+
action_dim: Expected action vector dimension.
|
| 220 |
+
+ state_dim: Expected state carrier dimension.
|
| 221 |
+
"""
|
| 222 |
+
path.parent.mkdir(parents=True, exist_ok=True)
|
| 223 |
+
table = pa.table(
|
| 224 |
+
@@ -97,8 +110,8 @@ def _write_episode(path: Path, rows: list[dict[str, Any]], *, action_dim: int) -
|
| 225 |
+
type=pa.struct([("bytes", pa.binary()), ("path", pa.string())]),
|
| 226 |
+
),
|
| 227 |
+
"observation.state": pa.array(
|
| 228 |
+
- [[0.0] * STATE_DIM for _ in rows],
|
| 229 |
+
- type=pa.list_(pa.float32(), STATE_DIM),
|
| 230 |
+
+ [[0.0] * state_dim for _ in rows],
|
| 231 |
+
+ type=pa.list_(pa.float32(), state_dim),
|
| 232 |
+
),
|
| 233 |
+
"action": pa.array(
|
| 234 |
+
[row["action"] for row in rows],
|
| 235 |
+
@@ -131,11 +144,47 @@ def _row_action_vector(row: dict[str, Any], *, action_dim: int) -> list[float]:
|
| 236 |
+
return [1.0 if idx == action_id else 0.0 for idx in range(action_dim)]
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
+def _bridge_action_vector(
|
| 240 |
+
+ row: dict[str, Any],
|
| 241 |
+
+ *,
|
| 242 |
+
+ env_name: str,
|
| 243 |
+
+ active_action_dim: int,
|
| 244 |
+
+) -> list[float]:
|
| 245 |
+
+ if env_name == "deadly_corridor":
|
| 246 |
+
+ action_text = str(row["action_text"]).upper()
|
| 247 |
+
+ return [
|
| 248 |
+
+ 1.0 if label in action_text else 0.0
|
| 249 |
+
+ for label in DEADLY_CORRIDOR_BRIDGE_ACTION_LABELS
|
| 250 |
+
+ ]
|
| 251 |
+
+ action = _row_action_vector(row, action_dim=active_action_dim)
|
| 252 |
+
+ return [*action, *([0.0] * (BRIDGE_DIM - active_action_dim))]
|
| 253 |
+
+
|
| 254 |
+
+
|
| 255 |
+
+def _target_action_labels(
|
| 256 |
+
+ *,
|
| 257 |
+
+ env_name: str,
|
| 258 |
+
+ source_action_labels: list[str],
|
| 259 |
+
+ action_carrier: str,
|
| 260 |
+
+) -> list[str]:
|
| 261 |
+
+ if action_carrier == "native":
|
| 262 |
+
+ return source_action_labels
|
| 263 |
+
+ if env_name == "deadly_corridor":
|
| 264 |
+
+ return list(DEADLY_CORRIDOR_BRIDGE_ACTION_LABELS)
|
| 265 |
+
+ return [
|
| 266 |
+
+ *source_action_labels,
|
| 267 |
+
+ *[
|
| 268 |
+
+ f"BRIDGE_PAD_{idx}"
|
| 269 |
+
+ for idx in range(len(source_action_labels), BRIDGE_DIM)
|
| 270 |
+
+ ],
|
| 271 |
+
+ ]
|
| 272 |
+
+
|
| 273 |
+
+
|
| 274 |
+
def _write_metadata(
|
| 275 |
+
dataset_dir: Path,
|
| 276 |
+
*,
|
| 277 |
+
- fps: int,
|
| 278 |
+
+ fps: float,
|
| 279 |
+
action_labels: list[str],
|
| 280 |
+
+ state_dim: int,
|
| 281 |
+
episode_lengths: list[int],
|
| 282 |
+
task_prompts: list[str],
|
| 283 |
+
) -> None:
|
| 284 |
+
@@ -144,7 +193,8 @@ def _write_metadata(
|
| 285 |
+
Args:
|
| 286 |
+
dataset_dir: LeRobot dataset split directory.
|
| 287 |
+
fps: Frame rate stored in metadata.
|
| 288 |
+
- action_labels: Canonical action labels in vector order.
|
| 289 |
+
+ action_labels: Target action labels in vector order.
|
| 290 |
+
+ state_dim: State carrier dimension.
|
| 291 |
+
episode_lengths: Number of frames per converted episode.
|
| 292 |
+
task_prompts: Unique prompts used as LeRobot tasks.
|
| 293 |
+
"""
|
| 294 |
+
@@ -155,10 +205,10 @@ def _write_metadata(
|
| 295 |
+
json.dumps(
|
| 296 |
+
{
|
| 297 |
+
"codebase_version": "v2.0",
|
| 298 |
+
- "fps": int(fps),
|
| 299 |
+
+ "fps": fps,
|
| 300 |
+
"features": {
|
| 301 |
+
"observation.image": {"dtype": "image"},
|
| 302 |
+
- "observation.state": {"dtype": "float32", "shape": [STATE_DIM]},
|
| 303 |
+
+ "observation.state": {"dtype": "float32", "shape": [state_dim]},
|
| 304 |
+
"action": {"dtype": "float32", "shape": [action_dim], "names": action_labels},
|
| 305 |
+
"timestamp": {"dtype": "float64", "shape": [1]},
|
| 306 |
+
"episode_index": {"dtype": "int64", "shape": [1]},
|
| 307 |
+
@@ -183,9 +233,11 @@ def _convert_split(
|
| 308 |
+
*,
|
| 309 |
+
env_name: str,
|
| 310 |
+
action_labels: list[str],
|
| 311 |
+
- fps: int,
|
| 312 |
+
+ fps: float,
|
| 313 |
+
reward_field: str,
|
| 314 |
+
- obs_stride: int = 1,
|
| 315 |
+
+ action_carrier: str,
|
| 316 |
+
+ active_action_dim: int,
|
| 317 |
+
+ state_dim: int,
|
| 318 |
+
density_weighting: bool = False,
|
| 319 |
+
) -> dict[str, Any]:
|
| 320 |
+
"""Convert one canonical rollout split into a LeRobot dataset directory.
|
| 321 |
+
@@ -195,13 +247,11 @@ def _convert_split(
|
| 322 |
+
output_dir: Destination LeRobot split directory.
|
| 323 |
+
env_name: Canonical benchmark environment name.
|
| 324 |
+
action_labels: Canonical action labels in vector order.
|
| 325 |
+
- fps: Frame rate used for timestamps.
|
| 326 |
+
+ fps: Observation frame rate used for timestamps.
|
| 327 |
+
reward_field: Source canonical reward column.
|
| 328 |
+
- obs_stride: Raw frames per observation decision (``round(env_fps/obs_fps)``).
|
| 329 |
+
- Canonical rows are recorded once per raw frame; keeping only the obs
|
| 330 |
+
- decisions (``decision_step % obs_stride == 0``) makes adjacent LeRobot
|
| 331 |
+
- rows adjacent observations, so KV-memory rollouts unroll at the eval
|
| 332 |
+
- observation cadence.
|
| 333 |
+
+ action_carrier: Target action/state carrier.
|
| 334 |
+
+ active_action_dim: Number of active environment action dimensions.
|
| 335 |
+
+ state_dim: Target state carrier dimension.
|
| 336 |
+
density_weighting: When True, write per-row ``density_weight`` from clean_v1's
|
| 337 |
+
event balancing (train split). When False, weights are uniform 1.0 (val
|
| 338 |
+
split keeps an unweighted held-out loss).
|
| 339 |
+
@@ -214,7 +264,6 @@ def _convert_split(
|
| 340 |
+
task_prompts: list[str] = []
|
| 341 |
+
episode_lengths: list[int] = []
|
| 342 |
+
for new_episode_idx, episode_rows in enumerate(_episode_groups(rows)):
|
| 343 |
+
- episode_rows = [row for row in episode_rows if int(row["decision_step"]) % obs_stride == 0]
|
| 344 |
+
density_weights = (
|
| 345 |
+
density_weights_clean_v1(env_name, episode_rows)
|
| 346 |
+
if density_weighting
|
| 347 |
+
@@ -231,8 +280,14 @@ def _convert_split(
|
| 348 |
+
out_rows.append(
|
| 349 |
+
{
|
| 350 |
+
"image_bytes": _png_bytes(row["image"]),
|
| 351 |
+
- "action": _row_action_vector(row, action_dim=len(action_labels)),
|
| 352 |
+
- "timestamp": float(frame_idx) / int(fps),
|
| 353 |
+
+ "action": _bridge_action_vector(
|
| 354 |
+
+ row,
|
| 355 |
+
+ env_name=env_name,
|
| 356 |
+
+ active_action_dim=active_action_dim,
|
| 357 |
+
+ )
|
| 358 |
+
+ if action_carrier == "bridge"
|
| 359 |
+
+ else _row_action_vector(row, action_dim=len(action_labels)),
|
| 360 |
+
+ "timestamp": float(frame_idx) / fps,
|
| 361 |
+
"episode_index": new_episode_idx,
|
| 362 |
+
"frame_index": frame_idx,
|
| 363 |
+
"task_index": prompt_to_task_index[prompt],
|
| 364 |
+
@@ -248,11 +303,13 @@ def _convert_split(
|
| 365 |
+
output_dir / f"data/chunk-{episode_chunk:03d}/episode_{new_episode_idx:06d}.parquet",
|
| 366 |
+
out_rows,
|
| 367 |
+
action_dim=len(action_labels),
|
| 368 |
+
+ state_dim=state_dim,
|
| 369 |
+
)
|
| 370 |
+
_write_metadata(
|
| 371 |
+
output_dir,
|
| 372 |
+
fps=fps,
|
| 373 |
+
action_labels=action_labels,
|
| 374 |
+
+ state_dim=state_dim,
|
| 375 |
+
episode_lengths=episode_lengths,
|
| 376 |
+
task_prompts=task_prompts,
|
| 377 |
+
)
|
| 378 |
+
@@ -269,6 +326,7 @@ def convert_canonical_rollout_to_lerobot(
|
| 379 |
+
raw_export_dir: Path | str,
|
| 380 |
+
output_dir: Path | str,
|
| 381 |
+
*,
|
| 382 |
+
+ action_carrier: str = "native",
|
| 383 |
+
force: bool = False,
|
| 384 |
+
) -> dict[str, Any]:
|
| 385 |
+
"""Convert a canonical rollout export into train/val LeRobot datasets.
|
| 386 |
+
@@ -276,6 +334,7 @@ def convert_canonical_rollout_to_lerobot(
|
| 387 |
+
Args:
|
| 388 |
+
raw_export_dir: Directory with canonical rollout parquet files and metadata.
|
| 389 |
+
output_dir: Destination LeRobot train dataset directory.
|
| 390 |
+
+ action_carrier: Target action/state carrier, ``native`` or ``bridge``.
|
| 391 |
+
force: Remove existing train/val output directories before writing.
|
| 392 |
+
|
| 393 |
+
Returns:
|
| 394 |
+
@@ -286,11 +345,20 @@ def convert_canonical_rollout_to_lerobot(
|
| 395 |
+
metadata = json.loads((raw_export_dir / "metadata.json").read_text(encoding="utf-8"))
|
| 396 |
+
env_name = str(metadata["env_name"])
|
| 397 |
+
action_spec = action_spec_for_env(env_name)
|
| 398 |
+
- action_labels = list(metadata["action_labels"])
|
| 399 |
+
+ source_action_labels = list(metadata["action_labels"])
|
| 400 |
+
+ action_labels = _target_action_labels(
|
| 401 |
+
+ env_name=env_name,
|
| 402 |
+
+ source_action_labels=source_action_labels,
|
| 403 |
+
+ action_carrier=action_carrier,
|
| 404 |
+
+ )
|
| 405 |
+
+ active_action_dim = {
|
| 406 |
+
+ "flappy": 2,
|
| 407 |
+
+ "demon_attack": 6,
|
| 408 |
+
+ "deadly_corridor": 7,
|
| 409 |
+
+ }[env_name]
|
| 410 |
+
+ state_dim = {"native": STATE_DIM, "bridge": BRIDGE_DIM}[action_carrier]
|
| 411 |
+
reward_field = str(metadata["reward_field"])
|
| 412 |
+
- obs_stride = int(metadata.get("obs_stride_raw_frames", 1))
|
| 413 |
+
- # Rows survive at the observation cadence, so timestamps advance at obs_fps.
|
| 414 |
+
- fps = max(1, int(FPS_BY_ENV[env_name]) // obs_stride)
|
| 415 |
+
+ fps = metadata["obs_fps"]
|
| 416 |
+
val_output_dir = output_dir.with_name(f"{output_dir.name}__val")
|
| 417 |
+
if output_dir.exists() and force:
|
| 418 |
+
shutil.rmtree(output_dir)
|
| 419 |
+
@@ -303,7 +371,9 @@ def convert_canonical_rollout_to_lerobot(
|
| 420 |
+
action_labels=action_labels,
|
| 421 |
+
fps=fps,
|
| 422 |
+
reward_field=reward_field,
|
| 423 |
+
- obs_stride=obs_stride,
|
| 424 |
+
+ action_carrier=action_carrier,
|
| 425 |
+
+ active_action_dim=active_action_dim,
|
| 426 |
+
+ state_dim=state_dim,
|
| 427 |
+
density_weighting=True,
|
| 428 |
+
)
|
| 429 |
+
val_manifest = _convert_split(
|
| 430 |
+
@@ -313,7 +383,9 @@ def convert_canonical_rollout_to_lerobot(
|
| 431 |
+
action_labels=action_labels,
|
| 432 |
+
fps=fps,
|
| 433 |
+
reward_field=reward_field,
|
| 434 |
+
- obs_stride=obs_stride,
|
| 435 |
+
+ action_carrier=action_carrier,
|
| 436 |
+
+ active_action_dim=active_action_dim,
|
| 437 |
+
+ state_dim=state_dim,
|
| 438 |
+
density_weighting=False,
|
| 439 |
+
)
|
| 440 |
+
manifest = {
|
| 441 |
+
@@ -321,9 +393,13 @@ def convert_canonical_rollout_to_lerobot(
|
| 442 |
+
"format": "starvla_lerobot_v2_image_parquet",
|
| 443 |
+
"source": str(raw_export_dir),
|
| 444 |
+
"action_layout": str(metadata["action_layout"]),
|
| 445 |
+
+ "action_carrier": action_carrier,
|
| 446 |
+
"action_labels": action_labels,
|
| 447 |
+
"action_dim": len(action_labels),
|
| 448 |
+
- "active_action_dim": len(action_spec.labels),
|
| 449 |
+
+ "active_action_dim": active_action_dim
|
| 450 |
+
+ if action_carrier == "bridge"
|
| 451 |
+
+ else len(action_spec.labels),
|
| 452 |
+
+ "state_dim": state_dim,
|
| 453 |
+
"validation_dataset_name": val_output_dir.name,
|
| 454 |
+
"validation_episodes": val_manifest["episodes"],
|
| 455 |
+
"validation_frames": val_manifest["frames"],
|
| 456 |
+
diff --git a/latency_bench/data/hf_parquet.py b/latency_bench/data/hf_parquet.py
|
| 457 |
+
index 7a26426..6163c0d 100644
|
| 458 |
+
--- a/latency_bench/data/hf_parquet.py
|
| 459 |
+
+++ b/latency_bench/data/hf_parquet.py
|
| 460 |
+
@@ -205,7 +205,9 @@ def completed_episode_indices_from_shards(output_dir: Path) -> set[int]:
|
| 461 |
+
with shard_path.open("r", encoding="utf-8") as handle:
|
| 462 |
+
for line in handle:
|
| 463 |
+
if line.strip():
|
| 464 |
+
- completed_episode_indices.add(int(json.loads(line)["episode_idx"]))
|
| 465 |
+
+ row = json.loads(line)
|
| 466 |
+
+ row["trajectory_idx"]
|
| 467 |
+
+ completed_episode_indices.add(int(row["episode_idx"]))
|
| 468 |
+
break
|
| 469 |
+
return completed_episode_indices
|
| 470 |
+
|
| 471 |
+
diff --git a/latency_bench/data/rollout_schema.py b/latency_bench/data/rollout_schema.py
|
| 472 |
+
index 11426b9..21d2bf5 100644
|
| 473 |
+
--- a/latency_bench/data/rollout_schema.py
|
| 474 |
+
+++ b/latency_bench/data/rollout_schema.py
|
| 475 |
+
@@ -7,11 +7,12 @@ from datasets import Features, Image as HFImage, Sequence as HFSequence, Value
|
| 476 |
+
from latency_bench.data.action_layouts import ActionSpec
|
| 477 |
+
|
| 478 |
+
|
| 479 |
+
-SCHEMA_VERSION = 2
|
| 480 |
+
+SCHEMA_VERSION = 3
|
| 481 |
+
CANONICAL_ROW_FIELDS = (
|
| 482 |
+
"image",
|
| 483 |
+
"env_name",
|
| 484 |
+
"episode_idx",
|
| 485 |
+
+ "trajectory_idx",
|
| 486 |
+
"decision_step",
|
| 487 |
+
"split",
|
| 488 |
+
"seed",
|
| 489 |
+
@@ -26,6 +27,7 @@ def _rollout_feature_map(action_spec: ActionSpec) -> dict[str, Any]:
|
| 490 |
+
"image": HFImage(),
|
| 491 |
+
"env_name": Value("string"),
|
| 492 |
+
"episode_idx": Value("int64"),
|
| 493 |
+
+ "trajectory_idx": Value("int64"),
|
| 494 |
+
"decision_step": Value("int64"),
|
| 495 |
+
"split": Value("string"),
|
| 496 |
+
"seed": Value("int64"),
|
| 497 |
+
diff --git a/latency_bench/data/sf_teacher_rollout.py b/latency_bench/data/sf_teacher_rollout.py
|
| 498 |
+
index af2b64f..bbbd157 100644
|
| 499 |
+
--- a/latency_bench/data/sf_teacher_rollout.py
|
| 500 |
+
+++ b/latency_bench/data/sf_teacher_rollout.py
|
| 501 |
+
@@ -355,6 +355,7 @@ def _write_filtered_episode_images(
|
| 502 |
+
image_writer: RolloutImageWriter,
|
| 503 |
+
rows: list[dict[str, Any]],
|
| 504 |
+
frames_by_decision_step: Mapping[int, np.ndarray],
|
| 505 |
+
+ trajectory_by_decision_step: Mapping[int, int],
|
| 506 |
+
*,
|
| 507 |
+
context_window: int,
|
| 508 |
+
) -> list[dict[str, Any]]:
|
| 509 |
+
@@ -364,6 +365,7 @@ def _write_filtered_episode_images(
|
| 510 |
+
image_writer: Image writer shared by the rollout run.
|
| 511 |
+
rows: Final rows selected for materialization.
|
| 512 |
+
frames_by_decision_step: Captured frames keyed by decision step.
|
| 513 |
+
+ trajectory_by_decision_step: Trajectory index keyed by decision step.
|
| 514 |
+
context_window: Total image window length including the current ``image`` field.
|
| 515 |
+
|
| 516 |
+
Returns:
|
| 517 |
+
@@ -371,10 +373,15 @@ def _write_filtered_episode_images(
|
| 518 |
+
"""
|
| 519 |
+
if not rows:
|
| 520 |
+
return []
|
| 521 |
+
- available_decision_steps = sorted(frames_by_decision_step)
|
| 522 |
+
required_steps: set[int] = set()
|
| 523 |
+
for row in rows:
|
| 524 |
+
decision_step = int(row["decision_step"])
|
| 525 |
+
+ trajectory_idx = int(row["trajectory_idx"])
|
| 526 |
+
+ available_decision_steps = sorted(
|
| 527 |
+
+ step
|
| 528 |
+
+ for step, step_trajectory_idx in trajectory_by_decision_step.items()
|
| 529 |
+
+ if step_trajectory_idx == trajectory_idx
|
| 530 |
+
+ )
|
| 531 |
+
required_steps.add(decision_step)
|
| 532 |
+
if int(context_window) > 1:
|
| 533 |
+
required_steps.update(
|
| 534 |
+
@@ -396,6 +403,12 @@ def _write_filtered_episode_images(
|
| 535 |
+
for row in rows:
|
| 536 |
+
written = dict(row)
|
| 537 |
+
decision_step = int(written["decision_step"])
|
| 538 |
+
+ trajectory_idx = int(written["trajectory_idx"])
|
| 539 |
+
+ available_decision_steps = sorted(
|
| 540 |
+
+ step
|
| 541 |
+
+ for step, step_trajectory_idx in trajectory_by_decision_step.items()
|
| 542 |
+
+ if step_trajectory_idx == trajectory_idx
|
| 543 |
+
+ )
|
| 544 |
+
written["image"] = written_paths_by_step[decision_step]
|
| 545 |
+
if int(context_window) > 1:
|
| 546 |
+
written["context_images"] = [
|
| 547 |
+
@@ -804,6 +817,7 @@ def _replay_accepted_specs(
|
| 548 |
+
active_episode_rows: list[list[dict[str, Any]]] = [[] for _ in range(driver.slot_count)]
|
| 549 |
+
active_episode_frames: list[list[np.ndarray]] = [[] for _ in range(driver.slot_count)]
|
| 550 |
+
active_decision_steps = [0 for _ in range(driver.slot_count)]
|
| 551 |
+
+ active_trajectory_indices = [0 for _ in range(driver.slot_count)]
|
| 552 |
+
active_ghost_streams: list[Any | None] = [None for _ in range(driver.slot_count)]
|
| 553 |
+
rnn_states = torch.zeros([driver.slot_count, rnn_size], dtype=torch.float32, device=device)
|
| 554 |
+
image_writer = RolloutImageWriter(
|
| 555 |
+
@@ -844,6 +858,7 @@ def _replay_accepted_specs(
|
| 556 |
+
active_episode_rows[slot] = []
|
| 557 |
+
active_episode_frames[slot] = []
|
| 558 |
+
active_decision_steps[slot] = 0
|
| 559 |
+
+ active_trajectory_indices[slot] = 0
|
| 560 |
+
rnn_states[slot].zero_()
|
| 561 |
+
|
| 562 |
+
with tqdm(total=len(specs_to_replay), initial=0, unit="episode") as progress:
|
| 563 |
+
@@ -881,21 +896,21 @@ def _replay_accepted_specs(
|
| 564 |
+
next_decision_step=next_decision_step,
|
| 565 |
+
max_steps_per_episode=int(max_steps_per_episode),
|
| 566 |
+
)
|
| 567 |
+
- if not life_loss_boundary:
|
| 568 |
+
- active_episode_frames[slot].append(np.array(image_frame, copy=True))
|
| 569 |
+
- row = teacher_dataset_row(
|
| 570 |
+
- env_name=env_name,
|
| 571 |
+
- spec=spec,
|
| 572 |
+
- decision_step=decision_step,
|
| 573 |
+
- image=str(image_path),
|
| 574 |
+
- raw_action=raw_actions[batch_idx],
|
| 575 |
+
- info=step_result.info,
|
| 576 |
+
- reward=step_result.reward,
|
| 577 |
+
- env_fps=env_fps,
|
| 578 |
+
- obs_fps=obs_fps,
|
| 579 |
+
- image_transform=image_transform_config.normalized_transform(),
|
| 580 |
+
- )
|
| 581 |
+
- active_episode_rows[slot].append(row)
|
| 582 |
+
+ active_episode_frames[slot].append(np.array(image_frame, copy=True))
|
| 583 |
+
+ row = teacher_dataset_row(
|
| 584 |
+
+ env_name=env_name,
|
| 585 |
+
+ spec=spec,
|
| 586 |
+
+ trajectory_idx=active_trajectory_indices[slot],
|
| 587 |
+
+ decision_step=decision_step,
|
| 588 |
+
+ image=str(image_path),
|
| 589 |
+
+ raw_action=raw_actions[batch_idx],
|
| 590 |
+
+ info=step_result.info,
|
| 591 |
+
+ reward=step_result.reward,
|
| 592 |
+
+ env_fps=env_fps,
|
| 593 |
+
+ obs_fps=obs_fps,
|
| 594 |
+
+ image_transform=image_transform_config.normalized_transform(),
|
| 595 |
+
+ )
|
| 596 |
+
+ active_episode_rows[slot].append(row)
|
| 597 |
+
rnn_states[slot] = new_rnn_states[batch_idx]
|
| 598 |
+
if episode_done:
|
| 599 |
+
final_rows = _finalize_attempt_rows(
|
| 600 |
+
@@ -931,6 +946,10 @@ def _replay_accepted_specs(
|
| 601 |
+
image_writer,
|
| 602 |
+
shard_rows,
|
| 603 |
+
frames_by_decision_step,
|
| 604 |
+
+ {
|
| 605 |
+
+ int(row["decision_step"]): int(row["trajectory_idx"])
|
| 606 |
+
+ for row in final_rows
|
| 607 |
+
+ },
|
| 608 |
+
context_window=int(context_window),
|
| 609 |
+
)
|
| 610 |
+
write_episode_row_shard(output_dir, shard_rows)
|
| 611 |
+
@@ -943,12 +962,14 @@ def _replay_accepted_specs(
|
| 612 |
+
active_episode_rows[slot] = []
|
| 613 |
+
active_episode_frames[slot] = []
|
| 614 |
+
active_decision_steps[slot] = 0
|
| 615 |
+
+ active_trajectory_indices[slot] = 0
|
| 616 |
+
if _is_demon_ghost_trail:
|
| 617 |
+
active_ghost_streams[slot] = None
|
| 618 |
+
rnn_states[slot].zero_()
|
| 619 |
+
else:
|
| 620 |
+
if life_loss_boundary:
|
| 621 |
+
active_obs[slot], reset_info = driver.continue_after_life_loss(slot)
|
| 622 |
+
+ active_trajectory_indices[slot] += 1
|
| 623 |
+
if _is_demon_ghost_trail:
|
| 624 |
+
active_ghost_streams[slot].clear()
|
| 625 |
+
active_image_frames[slot] = frame_from_env_raw_rgb_info(reset_info).copy()
|
| 626 |
+
@@ -981,6 +1002,7 @@ def _replay_accepted_specs(
|
| 627 |
+
active_episode_rows[slot] = []
|
| 628 |
+
active_episode_frames[slot] = []
|
| 629 |
+
active_decision_steps[slot] = 0
|
| 630 |
+
+ active_trajectory_indices[slot] = 0
|
| 631 |
+
rnn_states[slot].zero_()
|
| 632 |
+
else:
|
| 633 |
+
if isinstance(driver, BatchedTeacherRolloutDriver):
|
| 634 |
+
diff --git a/latency_bench/data/sf_teacher_rows.py b/latency_bench/data/sf_teacher_rows.py
|
| 635 |
+
index efa6f3e..4e7ce9a 100644
|
| 636 |
+
--- a/latency_bench/data/sf_teacher_rows.py
|
| 637 |
+
+++ b/latency_bench/data/sf_teacher_rows.py
|
| 638 |
+
@@ -14,6 +14,7 @@ def teacher_dataset_row(
|
| 639 |
+
*,
|
| 640 |
+
env_name: str,
|
| 641 |
+
spec: Mapping[str, Any],
|
| 642 |
+
+ trajectory_idx: int,
|
| 643 |
+
decision_step: int,
|
| 644 |
+
image: str,
|
| 645 |
+
raw_action: Any,
|
| 646 |
+
@@ -28,6 +29,7 @@ def teacher_dataset_row(
|
| 647 |
+
Args:
|
| 648 |
+
env_name: Canonical benchmark environment name.
|
| 649 |
+
spec: Episode spec containing index, split, and seed.
|
| 650 |
+
+ trajectory_idx: Zero-based trajectory index within the full-game episode.
|
| 651 |
+
decision_step: Zero-based policy decision step within the episode.
|
| 652 |
+
image: Path to the saved pre-step image.
|
| 653 |
+
raw_action: Raw teacher action for this decision.
|
| 654 |
+
@@ -48,6 +50,7 @@ def teacher_dataset_row(
|
| 655 |
+
"image": image,
|
| 656 |
+
"env_name": str(env_name),
|
| 657 |
+
"episode_idx": int(spec["episode_idx"]),
|
| 658 |
+
+ "trajectory_idx": int(trajectory_idx),
|
| 659 |
+
"decision_step": int(decision_step),
|
| 660 |
+
"split": str(spec["split"]),
|
| 661 |
+
"seed": int(spec["seed"]),
|
| 662 |
+
diff --git a/scripts/experiment_runner/run_manifest_jobs.py b/scripts/experiment_runner/run_manifest_jobs.py
|
| 663 |
+
index e2d1b5e..f425a27 100644
|
| 664 |
+
--- a/scripts/experiment_runner/run_manifest_jobs.py
|
| 665 |
+
+++ b/scripts/experiment_runner/run_manifest_jobs.py
|
| 666 |
+
@@ -73,11 +73,6 @@ def _event_writer(event_log: Path) -> Callable[[dict[str, Any]], None]:
|
| 667 |
+
return write
|
| 668 |
+
|
| 669 |
+
|
| 670 |
+
-def _register_process(process: subprocess.Popen) -> None:
|
| 671 |
+
- with _ACTIVE_PROCESSES_LOCK:
|
| 672 |
+
- _ACTIVE_PROCESSES.add(process)
|
| 673 |
+
-
|
| 674 |
+
-
|
| 675 |
+
def _forget_process(process: subprocess.Popen) -> None:
|
| 676 |
+
with _ACTIVE_PROCESSES_LOCK:
|
| 677 |
+
_ACTIVE_PROCESSES.discard(process)
|
| 678 |
+
@@ -89,11 +84,10 @@ def _active_processes() -> list[subprocess.Popen]:
|
| 679 |
+
|
| 680 |
+
|
| 681 |
+
def _signal_process_group(process: subprocess.Popen, sig: int) -> None:
|
| 682 |
+
- if process.poll() is None:
|
| 683 |
+
- try:
|
| 684 |
+
- os.killpg(process.pid, sig)
|
| 685 |
+
- except ProcessLookupError:
|
| 686 |
+
- pass
|
| 687 |
+
+ try:
|
| 688 |
+
+ os.killpg(process.pid, sig)
|
| 689 |
+
+ except ProcessLookupError:
|
| 690 |
+
+ pass
|
| 691 |
+
|
| 692 |
+
|
| 693 |
+
def _terminate_active_processes(sig: int = signal.SIGTERM) -> None:
|
| 694 |
+
@@ -118,15 +112,24 @@ def _terminate_active_processes(sig: int = signal.SIGTERM) -> None:
|
| 695 |
+
pass
|
| 696 |
+
|
| 697 |
+
|
| 698 |
+
-def _run_command(command: str, *, gpu: str) -> None:
|
| 699 |
+
+def _run_command(
|
| 700 |
+
+ command: str,
|
| 701 |
+
+ *,
|
| 702 |
+
+ gpu: str,
|
| 703 |
+
+ cancel_event: threading.Event | None = None,
|
| 704 |
+
+) -> bool:
|
| 705 |
+
env = os.environ.copy()
|
| 706 |
+
env["CUDA_VISIBLE_DEVICES"] = str(gpu)
|
| 707 |
+
- process = subprocess.Popen(command, shell=True, env=env, start_new_session=True)
|
| 708 |
+
- _register_process(process)
|
| 709 |
+
+ with _ACTIVE_PROCESSES_LOCK:
|
| 710 |
+
+ if cancel_event is not None and cancel_event.is_set():
|
| 711 |
+
+ return False
|
| 712 |
+
+ process = subprocess.Popen(command, shell=True, env=env, start_new_session=True)
|
| 713 |
+
+ _ACTIVE_PROCESSES.add(process)
|
| 714 |
+
try:
|
| 715 |
+
returncode = process.wait()
|
| 716 |
+
if returncode != 0:
|
| 717 |
+
raise subprocess.CalledProcessError(returncode, command)
|
| 718 |
+
+ return True
|
| 719 |
+
finally:
|
| 720 |
+
_forget_process(process)
|
| 721 |
+
|
| 722 |
+
@@ -223,16 +226,6 @@ def run_jobs(
|
| 723 |
+
dry_run: bool = False,
|
| 724 |
+
uploader: Callable[[dict[str, str]], None] | None = None,
|
| 725 |
+
) -> int:
|
| 726 |
+
- previous_sigint = signal.getsignal(signal.SIGINT)
|
| 727 |
+
- previous_sigterm = signal.getsignal(signal.SIGTERM)
|
| 728 |
+
-
|
| 729 |
+
- def stop_active_processes(signum, frame):
|
| 730 |
+
- del frame
|
| 731 |
+
- _terminate_active_processes(signal.SIGTERM)
|
| 732 |
+
- raise KeyboardInterrupt(signum)
|
| 733 |
+
-
|
| 734 |
+
- signal.signal(signal.SIGINT, stop_active_processes)
|
| 735 |
+
- signal.signal(signal.SIGTERM, stop_active_processes)
|
| 736 |
+
manifest_file = Path(manifest_path).expanduser().resolve()
|
| 737 |
+
event_log = event_log_path_for_manifest(manifest_file)
|
| 738 |
+
write_event = _event_writer(event_log)
|
| 739 |
+
@@ -259,6 +252,9 @@ def run_jobs(
|
| 740 |
+
upload_queue: queue.Queue[UploadTask | None] = queue.Queue()
|
| 741 |
+
failures: list[tuple[str, str]] = []
|
| 742 |
+
failure_lock = threading.Lock()
|
| 743 |
+
+ cancel_event = threading.Event()
|
| 744 |
+
+ signal_event = threading.Event()
|
| 745 |
+
+ cleanup_started = False
|
| 746 |
+
uploader_fn = _default_uploader if uploader is None else uploader
|
| 747 |
+
|
| 748 |
+
if stage != "upload":
|
| 749 |
+
@@ -280,28 +276,49 @@ def run_jobs(
|
| 750 |
+
if job is None:
|
| 751 |
+
job_queue.task_done()
|
| 752 |
+
break
|
| 753 |
+
+ if cancel_event.is_set():
|
| 754 |
+
+ job_queue.task_done()
|
| 755 |
+
+ continue
|
| 756 |
+
next_stage = _resume_stage(job, states) if stage == "all" else stage
|
| 757 |
+
job_id = str(job["job_id"])
|
| 758 |
+
try:
|
| 759 |
+
if next_stage == "train":
|
| 760 |
+
+ if cancel_event.is_set():
|
| 761 |
+
+ continue
|
| 762 |
+
if dry_run:
|
| 763 |
+
print(f"[dry-run] CUDA_VISIBLE_DEVICES={gpu} {job['train_command']}", flush=True)
|
| 764 |
+
else:
|
| 765 |
+
write_event({"job_id": job_id, "stage": "train_started", "gpu": gpu, "ts": _now()})
|
| 766 |
+
- _run_command(str(job["train_command"]), gpu=gpu)
|
| 767 |
+
+ started = _run_command(
|
| 768 |
+
+ str(job["train_command"]),
|
| 769 |
+
+ gpu=gpu,
|
| 770 |
+
+ cancel_event=cancel_event,
|
| 771 |
+
+ )
|
| 772 |
+
+ if not started or cancel_event.is_set():
|
| 773 |
+
+ continue
|
| 774 |
+
write_event({"job_id": job_id, "stage": "train_succeeded", "gpu": gpu, "ts": _now()})
|
| 775 |
+
next_stage = "eval" if stage == "all" else "complete"
|
| 776 |
+
if next_stage == "eval":
|
| 777 |
+
+ if cancel_event.is_set():
|
| 778 |
+
+ continue
|
| 779 |
+
if dry_run:
|
| 780 |
+
print(f"[dry-run] CUDA_VISIBLE_DEVICES={gpu} {job['eval_command']}", flush=True)
|
| 781 |
+
else:
|
| 782 |
+
write_event({"job_id": job_id, "stage": "eval_started", "gpu": gpu, "ts": _now()})
|
| 783 |
+
- _run_command(str(job["eval_command"]), gpu=gpu)
|
| 784 |
+
+ started = _run_command(
|
| 785 |
+
+ str(job["eval_command"]),
|
| 786 |
+
+ gpu=gpu,
|
| 787 |
+
+ cancel_event=cancel_event,
|
| 788 |
+
+ )
|
| 789 |
+
+ if not started or cancel_event.is_set():
|
| 790 |
+
+ continue
|
| 791 |
+
write_event({"job_id": job_id, "stage": "eval_succeeded", "gpu": gpu, "ts": _now()})
|
| 792 |
+
next_stage = "upload" if stage == "all" else "complete"
|
| 793 |
+
- if next_stage == "upload":
|
| 794 |
+
+ if next_stage == "upload" and not cancel_event.is_set():
|
| 795 |
+
upload_queue.put(UploadTask(job))
|
| 796 |
+
except subprocess.CalledProcessError:
|
| 797 |
+
+ if cancel_event.is_set():
|
| 798 |
+
+ continue
|
| 799 |
+
failed_stage = "train_failed" if next_stage == "train" else "eval_failed"
|
| 800 |
+
write_event({"job_id": job_id, "stage": failed_stage, "gpu": gpu, "ts": _now()})
|
| 801 |
+
record_failure(job_id, failed_stage)
|
| 802 |
+
@@ -311,48 +328,52 @@ def run_jobs(
|
| 803 |
+
def upload_worker() -> None:
|
| 804 |
+
while True:
|
| 805 |
+
task = upload_queue.get()
|
| 806 |
+
- if task is None:
|
| 807 |
+
- upload_queue.task_done()
|
| 808 |
+
- break
|
| 809 |
+
- job = task.job
|
| 810 |
+
- job_id = str(job["job_id"])
|
| 811 |
+
- train_repo_id = str(job["train_upload_repo_id"])
|
| 812 |
+
- eval_repo_id = str(job["eval_upload_repo_id"])
|
| 813 |
+
- if dry_run:
|
| 814 |
+
- targets = [repo_id for repo_id in (eval_repo_id, train_repo_id) if repo_id]
|
| 815 |
+
- print(f"[dry-run] upload {job_id}: {', '.join(targets) or 'no upload target'}", flush=True)
|
| 816 |
+
- upload_queue.task_done()
|
| 817 |
+
- continue
|
| 818 |
+
- if not train_repo_id and not eval_repo_id:
|
| 819 |
+
- write_event({"job_id": job_id, "stage": "upload_skipped", "ts": _now()})
|
| 820 |
+
- write_event({"job_id": job_id, "stage": "job_complete", "ts": _now()})
|
| 821 |
+
- upload_queue.task_done()
|
| 822 |
+
- continue
|
| 823 |
+
- attempt = 0
|
| 824 |
+
- success = False
|
| 825 |
+
- while attempt < max_upload_attempts and not success:
|
| 826 |
+
- attempt += 1
|
| 827 |
+
- write_event({"job_id": job_id, "stage": "upload_started", "attempt": attempt, "ts": _now()})
|
| 828 |
+
- try:
|
| 829 |
+
- if not dry_run:
|
| 830 |
+
- uploader_fn(job)
|
| 831 |
+
- write_event({"job_id": job_id, "stage": "upload_succeeded", "attempt": attempt, "ts": _now()})
|
| 832 |
+
+ try:
|
| 833 |
+
+ if task is None:
|
| 834 |
+
+ break
|
| 835 |
+
+ if cancel_event.is_set():
|
| 836 |
+
+ continue
|
| 837 |
+
+ job = task.job
|
| 838 |
+
+ job_id = str(job["job_id"])
|
| 839 |
+
+ train_repo_id = str(job["train_upload_repo_id"])
|
| 840 |
+
+ eval_repo_id = str(job["eval_upload_repo_id"])
|
| 841 |
+
+ if dry_run:
|
| 842 |
+
+ targets = [repo_id for repo_id in (eval_repo_id, train_repo_id) if repo_id]
|
| 843 |
+
+ print(f"[dry-run] upload {job_id}: {', '.join(targets) or 'no upload target'}", flush=True)
|
| 844 |
+
+ continue
|
| 845 |
+
+ if not train_repo_id and not eval_repo_id:
|
| 846 |
+
+ write_event({"job_id": job_id, "stage": "upload_skipped", "ts": _now()})
|
| 847 |
+
write_event({"job_id": job_id, "stage": "job_complete", "ts": _now()})
|
| 848 |
+
- success = True
|
| 849 |
+
- except Exception as error:
|
| 850 |
+
- write_event(
|
| 851 |
+
- {
|
| 852 |
+
- "job_id": job_id,
|
| 853 |
+
- "stage": "upload_failed",
|
| 854 |
+
- "attempt": attempt,
|
| 855 |
+
- "error": repr(error),
|
| 856 |
+
- "ts": _now(),
|
| 857 |
+
- }
|
| 858 |
+
- )
|
| 859 |
+
- print(f"upload failed for {job_id} (attempt {attempt}): {error!r}", file=sys.stderr)
|
| 860 |
+
- if not success:
|
| 861 |
+
- record_failure(job_id, "upload_failed")
|
| 862 |
+
- upload_queue.task_done()
|
| 863 |
+
+ continue
|
| 864 |
+
+ attempt = 0
|
| 865 |
+
+ success = False
|
| 866 |
+
+ while attempt < max_upload_attempts and not success and not cancel_event.is_set():
|
| 867 |
+
+ attempt += 1
|
| 868 |
+
+ write_event({"job_id": job_id, "stage": "upload_started", "attempt": attempt, "ts": _now()})
|
| 869 |
+
+ try:
|
| 870 |
+
+ uploader_fn(job)
|
| 871 |
+
+ if cancel_event.is_set():
|
| 872 |
+
+ continue
|
| 873 |
+
+ write_event({"job_id": job_id, "stage": "upload_succeeded", "attempt": attempt, "ts": _now()})
|
| 874 |
+
+ write_event({"job_id": job_id, "stage": "job_complete", "ts": _now()})
|
| 875 |
+
+ success = True
|
| 876 |
+
+ except Exception as error:
|
| 877 |
+
+ if cancel_event.is_set():
|
| 878 |
+
+ continue
|
| 879 |
+
+ write_event(
|
| 880 |
+
+ {
|
| 881 |
+
+ "job_id": job_id,
|
| 882 |
+
+ "stage": "upload_failed",
|
| 883 |
+
+ "attempt": attempt,
|
| 884 |
+
+ "error": repr(error),
|
| 885 |
+
+ "ts": _now(),
|
| 886 |
+
+ }
|
| 887 |
+
+ )
|
| 888 |
+
+ print(f"upload failed for {job_id} (attempt {attempt}): {error!r}", file=sys.stderr)
|
| 889 |
+
+ if not success and not cancel_event.is_set():
|
| 890 |
+
+ record_failure(job_id, "upload_failed")
|
| 891 |
+
+ finally:
|
| 892 |
+
+ upload_queue.task_done()
|
| 893 |
+
|
| 894 |
+
upload_threads = [
|
| 895 |
+
threading.Thread(target=upload_worker, name=f"upload-{idx}", daemon=True)
|
| 896 |
+
@@ -362,17 +383,44 @@ def run_jobs(
|
| 897 |
+
threading.Thread(target=train_worker, args=(gpu,), name=f"train-{gpu}", daemon=True)
|
| 898 |
+
for gpu in gpus if stage != "upload"
|
| 899 |
+
]
|
| 900 |
+
+ previous_sigint = signal.getsignal(signal.SIGINT)
|
| 901 |
+
+ previous_sigterm = signal.getsignal(signal.SIGTERM)
|
| 902 |
+
+
|
| 903 |
+
+ def stop_active_processes(signum, frame):
|
| 904 |
+
+ nonlocal cleanup_started
|
| 905 |
+
+ del frame
|
| 906 |
+
+ if signal_event.is_set():
|
| 907 |
+
+ return
|
| 908 |
+
+ signal_event.set()
|
| 909 |
+
+ cancel_event.set()
|
| 910 |
+
+ if cleanup_started:
|
| 911 |
+
+ return
|
| 912 |
+
+ raise KeyboardInterrupt(signum)
|
| 913 |
+
+
|
| 914 |
+
+ signal.signal(signal.SIGINT, stop_active_processes)
|
| 915 |
+
+ signal.signal(signal.SIGTERM, stop_active_processes)
|
| 916 |
+
try:
|
| 917 |
+
for thread in upload_threads + train_threads:
|
| 918 |
+
thread.start()
|
| 919 |
+
job_queue.join()
|
| 920 |
+
- for _ in upload_threads:
|
| 921 |
+
- upload_queue.put(None)
|
| 922 |
+
upload_queue.join()
|
| 923 |
+
- for thread in train_threads + upload_threads:
|
| 924 |
+
- thread.join()
|
| 925 |
+
return 1 if failures else 0
|
| 926 |
+
finally:
|
| 927 |
+
+ cleanup_started = True
|
| 928 |
+
+ cancel_event.set()
|
| 929 |
+
+ _terminate_active_processes(signal.SIGTERM)
|
| 930 |
+
+ for thread in train_threads:
|
| 931 |
+
+ thread.join()
|
| 932 |
+
+ _terminate_active_processes(signal.SIGTERM)
|
| 933 |
+
+ if signal_event.is_set():
|
| 934 |
+
+ for _ in upload_threads:
|
| 935 |
+
+ upload_queue.put(None)
|
| 936 |
+
+ else:
|
| 937 |
+
+ upload_queue.join()
|
| 938 |
+
+ for _ in upload_threads:
|
| 939 |
+
+ upload_queue.put(None)
|
| 940 |
+
+ for thread in upload_threads:
|
| 941 |
+
+ thread.join()
|
| 942 |
+
_terminate_active_processes(signal.SIGTERM)
|
| 943 |
+
signal.signal(signal.SIGINT, previous_sigint)
|
| 944 |
+
signal.signal(signal.SIGTERM, previous_sigterm)
|
| 945 |
+
diff --git a/scripts/rollout_data/prepare_starvla_lerobot_dataset.py b/scripts/rollout_data/prepare_starvla_lerobot_dataset.py
|
| 946 |
+
index e202657..2521899 100644
|
| 947 |
+
--- a/scripts/rollout_data/prepare_starvla_lerobot_dataset.py
|
| 948 |
+
+++ b/scripts/rollout_data/prepare_starvla_lerobot_dataset.py
|
| 949 |
+
@@ -26,6 +26,7 @@ def convert_raw_export_to_lerobot(
|
| 950 |
+
raw_export_dir: Path,
|
| 951 |
+
lerobot_root: Path,
|
| 952 |
+
data_mix: str,
|
| 953 |
+
+ action_carrier: str = "native",
|
| 954 |
+
) -> dict:
|
| 955 |
+
"""Convert a raw rollout export into a named LeRobot data mix.
|
| 956 |
+
|
| 957 |
+
@@ -33,6 +34,7 @@ def convert_raw_export_to_lerobot(
|
| 958 |
+
raw_export_dir: Canonical rollout export directory.
|
| 959 |
+
lerobot_root: Directory that will contain the LeRobot datasets.
|
| 960 |
+
data_mix: Train dataset directory name under ``lerobot_root``.
|
| 961 |
+
+ action_carrier: Target action/state carrier.
|
| 962 |
+
|
| 963 |
+
Returns:
|
| 964 |
+
Conversion manifest returned by the LeRobot adapter.
|
| 965 |
+
@@ -41,6 +43,7 @@ def convert_raw_export_to_lerobot(
|
| 966 |
+
return convert_canonical_rollout_to_lerobot(
|
| 967 |
+
raw_export_dir,
|
| 968 |
+
output_dir,
|
| 969 |
+
+ action_carrier=action_carrier,
|
| 970 |
+
force=True,
|
| 971 |
+
)
|
| 972 |
+
|
| 973 |
+
@@ -92,6 +95,7 @@ def build_parser() -> argparse.ArgumentParser:
|
| 974 |
+
parser.add_argument("raw_export_dir")
|
| 975 |
+
parser.add_argument("lerobot_root")
|
| 976 |
+
parser.add_argument("data_mix")
|
| 977 |
+
+ parser.add_argument("--action-carrier", choices=("native", "bridge"), default="native")
|
| 978 |
+
parser.add_argument("--push-to-hub", default="")
|
| 979 |
+
parser.add_argument("--private", action="store_true")
|
| 980 |
+
return parser
|
| 981 |
+
@@ -115,6 +119,7 @@ def main(argv: Sequence[str] | None = None) -> int:
|
| 982 |
+
raw_export_dir=raw_export_dir,
|
| 983 |
+
lerobot_root=lerobot_root,
|
| 984 |
+
data_mix=data_mix,
|
| 985 |
+
+ action_carrier=args.action_carrier,
|
| 986 |
+
)
|
| 987 |
+
if args.push_to_hub:
|
| 988 |
+
push_lerobot_dataset(
|
| 989 |
+
diff --git a/tests/data/test_rollout_dataset_schema.py b/tests/data/test_rollout_dataset_schema.py
|
| 990 |
+
index 06a6091..55ccebf 100644
|
| 991 |
+
--- a/tests/data/test_rollout_dataset_schema.py
|
| 992 |
+
+++ b/tests/data/test_rollout_dataset_schema.py
|
| 993 |
+
@@ -8,6 +8,7 @@ def test_canonical_rollout_fields_exclude_legacy_aliases():
|
| 994 |
+
"image",
|
| 995 |
+
"env_name",
|
| 996 |
+
"episode_idx",
|
| 997 |
+
+ "trajectory_idx",
|
| 998 |
+
"decision_step",
|
| 999 |
+
"split",
|
| 1000 |
+
"seed",
|
| 1001 |
+
@@ -36,6 +37,7 @@ def test_rollout_features_include_env_specific_action_fields():
|
| 1002 |
+
assert "action_tuple" not in deadly_features
|
| 1003 |
+
assert "action" not in deadly_features
|
| 1004 |
+
for features in (flappy_features, deadly_features):
|
| 1005 |
+
+ assert "trajectory_idx" in features
|
| 1006 |
+
assert "decision_step" in features
|
| 1007 |
+
assert "latency_raw_frames" in features
|
| 1008 |
+
assert "raw_reward" in features
|
| 1009 |
+
diff --git a/tests/data/test_rollout_hf_parquet.py b/tests/data/test_rollout_hf_parquet.py
|
| 1010 |
+
index 9fa4c48..4e56de6 100644
|
| 1011 |
+
--- a/tests/data/test_rollout_hf_parquet.py
|
| 1012 |
+
+++ b/tests/data/test_rollout_hf_parquet.py
|
| 1013 |
+
@@ -15,6 +15,7 @@ def test_hf_parquet_writes_canonical_columns_only(tmp_path):
|
| 1014 |
+
"image": str(image_path),
|
| 1015 |
+
"env_name": "flappy",
|
| 1016 |
+
"episode_idx": 0,
|
| 1017 |
+
+ "trajectory_idx": 0,
|
| 1018 |
+
"decision_step": 0,
|
| 1019 |
+
"split": "train",
|
| 1020 |
+
"seed": 11,
|
| 1021 |
+
@@ -56,6 +57,7 @@ def test_hf_parquet_shards_sort_by_decision_step(tmp_path):
|
| 1022 |
+
"image": str(image_path),
|
| 1023 |
+
"env_name": "flappy",
|
| 1024 |
+
"episode_idx": 0,
|
| 1025 |
+
+ "trajectory_idx": 0,
|
| 1026 |
+
"decision_step": decision_step,
|
| 1027 |
+
"split": "train",
|
| 1028 |
+
"seed": 11,
|
| 1029 |
+
@@ -92,6 +94,7 @@ def test_hf_parquet_embeds_context_images_when_rows_provide_them(tmp_path):
|
| 1030 |
+
"context_images": [str(path) for path in context_paths],
|
| 1031 |
+
"env_name": "flappy",
|
| 1032 |
+
"episode_idx": 0,
|
| 1033 |
+
+ "trajectory_idx": 0,
|
| 1034 |
+
"decision_step": 0,
|
| 1035 |
+
"split": "train",
|
| 1036 |
+
"seed": 11,
|
| 1037 |
+
@@ -116,3 +119,18 @@ def test_hf_parquet_embeds_context_images_when_rows_provide_them(tmp_path):
|
| 1038 |
+
assert "context_images" in table.column_names
|
| 1039 |
+
assert len(exported["context_images"]) == 3
|
| 1040 |
+
assert exported["context_images"][0]["bytes"].startswith(b"\x89PNG\r\n\x1a\n")
|
| 1041 |
+
+
|
| 1042 |
+
+
|
| 1043 |
+
+def test_completed_episode_shards_require_trajectory_identity(tmp_path):
|
| 1044 |
+
+ import json
|
| 1045 |
+
+
|
| 1046 |
+
+ import pytest
|
| 1047 |
+
+
|
| 1048 |
+
+ from latency_bench.data.hf_parquet import completed_episode_indices_from_shards
|
| 1049 |
+
+
|
| 1050 |
+
+ shard_path = tmp_path / "episode_rows" / "train" / "episode_000000.jsonl"
|
| 1051 |
+
+ shard_path.parent.mkdir(parents=True)
|
| 1052 |
+
+ shard_path.write_text(json.dumps({"episode_idx": 0}) + "\n", encoding="utf-8")
|
| 1053 |
+
+
|
| 1054 |
+
+ with pytest.raises(KeyError, match="trajectory_idx"):
|
| 1055 |
+
+ completed_episode_indices_from_shards(tmp_path)
|
| 1056 |
+
diff --git a/tests/data/test_sf_teacher_dataset_export.py b/tests/data/test_sf_teacher_dataset_export.py
|
| 1057 |
+
index 62b30a6..ba4644b 100644
|
| 1058 |
+
--- a/tests/data/test_sf_teacher_dataset_export.py
|
| 1059 |
+
+++ b/tests/data/test_sf_teacher_dataset_export.py
|
| 1060 |
+
@@ -1299,7 +1299,7 @@ def test_write_filtered_episode_images_preserves_empty_filtered_episode(tmp_path
|
| 1061 |
+
|
| 1062 |
+
image_writer = RolloutImageWriter(max_workers=0, row_buffer_size=1, export_image_size=None)
|
| 1063 |
+
|
| 1064 |
+
- rows = _write_filtered_episode_images(image_writer, [], {}, context_window=5)
|
| 1065 |
+
+ rows = _write_filtered_episode_images(image_writer, [], {}, {}, context_window=5)
|
| 1066 |
+
|
| 1067 |
+
assert rows == []
|
| 1068 |
+
|
| 1069 |
+
@@ -1314,6 +1314,7 @@ def test_write_filtered_episode_images_resets_context_after_decision_step_gap(tm
|
| 1070 |
+
{
|
| 1071 |
+
"image": str(tmp_path / "images" / "train" / "episode_000000" / f"decision_step_{step:06d}.png"),
|
| 1072 |
+
"decision_step": step,
|
| 1073 |
+
+ "trajectory_idx": 0,
|
| 1074 |
+
}
|
| 1075 |
+
for step in [0, 1, 4, 5]
|
| 1076 |
+
]
|
| 1077 |
+
@@ -1326,6 +1327,7 @@ def test_write_filtered_episode_images_resets_context_after_decision_step_gap(tm
|
| 1078 |
+
image_writer,
|
| 1079 |
+
rows,
|
| 1080 |
+
frames_by_decision_step,
|
| 1081 |
+
+ {step: 0 for step in frames_by_decision_step},
|
| 1082 |
+
context_window=4,
|
| 1083 |
+
)
|
| 1084 |
+
|
| 1085 |
+
@@ -1733,13 +1735,24 @@ def test_collect_teacher_dataset_demon_attack_exports_full_game_across_life_loss
|
| 1086 |
+
image_writer_workers=0,
|
| 1087 |
+
row_buffer_size=1,
|
| 1088 |
+
filter_preset="none",
|
| 1089 |
+
+ context_window=3,
|
| 1090 |
+
)
|
| 1091 |
+
train_rows = _read_shard_rows(output_dir, "train")
|
| 1092 |
+
state = json.loads((output_dir / "probe_state.json").read_text(encoding="utf-8"))
|
| 1093 |
+
|
| 1094 |
+
assert ScriptedDemonEnv.reset_seeds == [100, None, None, 100, None, None]
|
| 1095 |
+
- assert [row["decision_step"] for row in train_rows] == [2]
|
| 1096 |
+
- assert train_rows[0]["raw_reward"] == 30.0
|
| 1097 |
+
+ assert [row["decision_step"] for row in train_rows] == [0, 1, 2]
|
| 1098 |
+
+ assert [row["trajectory_idx"] for row in train_rows] == [0, 1, 2]
|
| 1099 |
+
+ assert [row["action_id"] for row in train_rows] == [1, 1, 1]
|
| 1100 |
+
+ assert [row["raw_reward"] for row in train_rows] == [10.0, 20.0, 30.0]
|
| 1101 |
+
+ from PIL import Image
|
| 1102 |
+
+
|
| 1103 |
+
+ context_values = [
|
| 1104 |
+
+ [np.asarray(Image.open(path))[0, 0, 0].item() for path in row["context_images"]]
|
| 1105 |
+
+ for row in train_rows
|
| 1106 |
+
+ ]
|
| 1107 |
+
+ current_values = [np.asarray(Image.open(row["image"]))[0, 0, 0].item() for row in train_rows]
|
| 1108 |
+
+ assert context_values == [[value, value] for value in current_values]
|
| 1109 |
+
assert state["accepted_specs"] == [
|
| 1110 |
+
{
|
| 1111 |
+
"attempt_idx": 0,
|
| 1112 |
+
@@ -1900,6 +1913,7 @@ def test_collect_teacher_dataset_skips_runtime_when_probe_and_shards_complete(mo
|
| 1113 |
+
"image": str(image_path),
|
| 1114 |
+
"env_name": "flappy",
|
| 1115 |
+
"episode_idx": 0,
|
| 1116 |
+
+ "trajectory_idx": 0,
|
| 1117 |
+
"decision_step": 0,
|
| 1118 |
+
"split": "train",
|
| 1119 |
+
"seed": 100,
|
| 1120 |
+
@@ -2264,6 +2278,7 @@ def test_write_parquet_splits_handles_empty_validation_rows(tmp_path):
|
| 1121 |
+
"image": str(image_path),
|
| 1122 |
+
"env_name": "flappy",
|
| 1123 |
+
"episode_idx": 0,
|
| 1124 |
+
+ "trajectory_idx": 0,
|
| 1125 |
+
"decision_step": 0,
|
| 1126 |
+
"split": "train",
|
| 1127 |
+
"seed": 11,
|
| 1128 |
+
@@ -2300,6 +2315,7 @@ def test_write_parquet_splits_embeds_image_bytes(tmp_path):
|
| 1129 |
+
"image": str(image_path),
|
| 1130 |
+
"env_name": "flappy",
|
| 1131 |
+
"episode_idx": 0,
|
| 1132 |
+
+ "trajectory_idx": 0,
|
| 1133 |
+
"decision_step": 0,
|
| 1134 |
+
"split": "train",
|
| 1135 |
+
"seed": 11,
|
| 1136 |
+
@@ -2336,6 +2352,7 @@ def test_write_parquet_splits_preserves_rows_across_large_exports(tmp_path):
|
| 1137 |
+
"image": str(image_path),
|
| 1138 |
+
"env_name": "flappy",
|
| 1139 |
+
"episode_idx": episode_idx,
|
| 1140 |
+
+ "trajectory_idx": 0,
|
| 1141 |
+
"decision_step": 0,
|
| 1142 |
+
"split": "train",
|
| 1143 |
+
"seed": 11 + episode_idx,
|
| 1144 |
+
@@ -2390,6 +2407,7 @@ def test_write_parquet_splits_from_shards_writes_train_and_val_rows(tmp_path):
|
| 1145 |
+
"image": str(image_path),
|
| 1146 |
+
"env_name": "flappy",
|
| 1147 |
+
"episode_idx": episode_idx,
|
| 1148 |
+
+ "trajectory_idx": 0,
|
| 1149 |
+
"decision_step": decision_step,
|
| 1150 |
+
"split": split,
|
| 1151 |
+
"seed": 11 + episode_idx,
|
| 1152 |
+
@@ -2432,6 +2450,7 @@ def test_write_parquet_splits_from_shards_replaces_stale_partial_file(tmp_path):
|
| 1153 |
+
"image": str(stale_image_path),
|
| 1154 |
+
"env_name": "flappy",
|
| 1155 |
+
"episode_idx": 99,
|
| 1156 |
+
+ "trajectory_idx": 0,
|
| 1157 |
+
"decision_step": 0,
|
| 1158 |
+
"split": "train",
|
| 1159 |
+
"seed": 99,
|
| 1160 |
+
@@ -2452,6 +2471,7 @@ def test_write_parquet_splits_from_shards_replaces_stale_partial_file(tmp_path):
|
| 1161 |
+
"image": str(image_path),
|
| 1162 |
+
"env_name": "flappy",
|
| 1163 |
+
"episode_idx": 0,
|
| 1164 |
+
+ "trajectory_idx": 0,
|
| 1165 |
+
"decision_step": 0,
|
| 1166 |
+
"split": "train",
|
| 1167 |
+
"seed": 11,
|
| 1168 |
+
@@ -2536,6 +2556,8 @@ def test_prepare_starvla_lerobot_dataset_converts_from_raw_export(monkeypatch, t
|
| 1169 |
+
str(raw_export),
|
| 1170 |
+
str(tmp_path / "lerobot"),
|
| 1171 |
+
"demon_attack_train",
|
| 1172 |
+
+ "--action-carrier",
|
| 1173 |
+
+ "bridge",
|
| 1174 |
+
])
|
| 1175 |
+
|
| 1176 |
+
assert result == 0
|
| 1177 |
+
@@ -2543,7 +2565,7 @@ def test_prepare_starvla_lerobot_dataset_converts_from_raw_export(monkeypatch, t
|
| 1178 |
+
(
|
| 1179 |
+
raw_export,
|
| 1180 |
+
tmp_path / "lerobot" / "demon_attack_train",
|
| 1181 |
+
- {"force": True},
|
| 1182 |
+
+ {"action_carrier": "bridge", "force": True},
|
| 1183 |
+
)
|
| 1184 |
+
]
|
| 1185 |
+
|
| 1186 |
+
diff --git a/tests/data/test_starvla_lerobot_exporter.py b/tests/data/test_starvla_lerobot_exporter.py
|
| 1187 |
+
index 64b5f47..58391c7 100644
|
| 1188 |
+
--- a/tests/data/test_starvla_lerobot_exporter.py
|
| 1189 |
+
+++ b/tests/data/test_starvla_lerobot_exporter.py
|
| 1190 |
+
@@ -3,6 +3,7 @@ from __future__ import annotations
|
| 1191 |
+
import json
|
| 1192 |
+
|
| 1193 |
+
import pyarrow.parquet as pq
|
| 1194 |
+
+import pytest
|
| 1195 |
+
|
| 1196 |
+
from helpers import save_test_image
|
| 1197 |
+
|
| 1198 |
+
@@ -20,6 +21,7 @@ def test_starvla_lerobot_exporter_reads_canonical_rollout_schema(tmp_path):
|
| 1199 |
+
"image": str(image_path),
|
| 1200 |
+
"env_name": "deadly_corridor",
|
| 1201 |
+
"episode_idx": 3,
|
| 1202 |
+
+ "trajectory_idx": 0,
|
| 1203 |
+
"decision_step": 0,
|
| 1204 |
+
"split": "train",
|
| 1205 |
+
"seed": 14,
|
| 1206 |
+
@@ -38,6 +40,7 @@ def test_starvla_lerobot_exporter_reads_canonical_rollout_schema(tmp_path):
|
| 1207 |
+
"action_layout": "deadly_corridor_joint_54",
|
| 1208 |
+
"reward_field": "raw_reward",
|
| 1209 |
+
"action_labels": list(action_spec.labels),
|
| 1210 |
+
+ "obs_fps": 8.75,
|
| 1211 |
+
}
|
| 1212 |
+
),
|
| 1213 |
+
encoding="utf-8",
|
| 1214 |
+
@@ -54,10 +57,102 @@ def test_starvla_lerobot_exporter_reads_canonical_rollout_schema(tmp_path):
|
| 1215 |
+
assert table.to_pylist()[0]["done"] is True
|
| 1216 |
+
|
| 1217 |
+
|
| 1218 |
+
-def test_starvla_lerobot_exporter_subsamples_to_obs_cadence(tmp_path):
|
| 1219 |
+
- """Adjacent LeRobot rows must be adjacent obs decisions (every obs_stride raw
|
| 1220 |
+
- frames), with contiguous frame_index, so KV-memory rollouts unroll at the eval
|
| 1221 |
+
- observation cadence rather than at every raw frame."""
|
| 1222 |
+
+@pytest.mark.parametrize(
|
| 1223 |
+
+ ("env_name", "obs_fps", "latency", "action_values", "expected_action", "active_action_dim"),
|
| 1224 |
+
+ [
|
| 1225 |
+
+ ("flappy", 30, 3, (1, [0.0, 1.0], "FLAP"), [0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0], 2),
|
| 1226 |
+
+ (
|
| 1227 |
+
+ "demon_attack",
|
| 1228 |
+
+ 15,
|
| 1229 |
+
+ 6,
|
| 1230 |
+
+ (5, [0.0, 0.0, 0.0, 0.0, 0.0, 1.0], "LEFTFIRE"),
|
| 1231 |
+
+ [0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0],
|
| 1232 |
+
+ 6,
|
| 1233 |
+
+ ),
|
| 1234 |
+
+ (
|
| 1235 |
+
+ "deadly_corridor",
|
| 1236 |
+
+ 8.75,
|
| 1237 |
+
+ 6,
|
| 1238 |
+
+ (11, None, "MOVE_FORWARD + MOVE_RIGHT + ATTACK"),
|
| 1239 |
+
+ [1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0],
|
| 1240 |
+
+ 7,
|
| 1241 |
+
+ ),
|
| 1242 |
+
+ ],
|
| 1243 |
+
+)
|
| 1244 |
+
+def test_starvla_lerobot_exporter_writes_bridge_carrier_with_raw_latency_prompt(
|
| 1245 |
+
+ tmp_path,
|
| 1246 |
+
+ env_name,
|
| 1247 |
+
+ obs_fps,
|
| 1248 |
+
+ latency,
|
| 1249 |
+
+ action_values,
|
| 1250 |
+
+ expected_action,
|
| 1251 |
+
+ active_action_dim,
|
| 1252 |
+
+):
|
| 1253 |
+
+ from latency_bench.data.action_layouts import action_spec_for_env
|
| 1254 |
+
+ from latency_bench.data.exporters.starvla_lerobot import convert_canonical_rollout_to_lerobot
|
| 1255 |
+
+ from latency_bench.data.hf_parquet import write_parquet_splits
|
| 1256 |
+
+
|
| 1257 |
+
+ image_path = tmp_path / "image.png"
|
| 1258 |
+
+ save_test_image(image_path, 9)
|
| 1259 |
+
+ raw_export = tmp_path / "raw"
|
| 1260 |
+
+ action_spec = action_spec_for_env(env_name)
|
| 1261 |
+
+ action_id, action, action_text = action_values
|
| 1262 |
+
+ row = {
|
| 1263 |
+
+ "image": str(image_path),
|
| 1264 |
+
+ "env_name": env_name,
|
| 1265 |
+
+ "episode_idx": 0,
|
| 1266 |
+
+ "trajectory_idx": 0,
|
| 1267 |
+
+ "decision_step": 0,
|
| 1268 |
+
+ "split": "train",
|
| 1269 |
+
+ "seed": 0,
|
| 1270 |
+
+ "prompt": f"The action latency is fixed at {latency} raw environment frames.",
|
| 1271 |
+
+ "latency_raw_frames": latency,
|
| 1272 |
+
+ "latency_ms": latency * 1000 / {"flappy": 30, "demon_attack": 60, "deadly_corridor": 35}[env_name],
|
| 1273 |
+
+ "raw_reward": 1.0,
|
| 1274 |
+
+ "action_id": action_id,
|
| 1275 |
+
+ "action_text": action_text,
|
| 1276 |
+
+ }
|
| 1277 |
+
+ if action is not None:
|
| 1278 |
+
+ row["action"] = action
|
| 1279 |
+
+ write_parquet_splits(raw_export, [row], [], action_spec=action_spec)
|
| 1280 |
+
+ (raw_export / "metadata.json").write_text(
|
| 1281 |
+
+ json.dumps(
|
| 1282 |
+
+ {
|
| 1283 |
+
+ "env_name": env_name,
|
| 1284 |
+
+ "action_layout": action_spec.layout,
|
| 1285 |
+
+ "reward_field": action_spec.reward_field,
|
| 1286 |
+
+ "action_labels": list(action_spec.labels),
|
| 1287 |
+
+ "obs_fps": obs_fps,
|
| 1288 |
+
+ }
|
| 1289 |
+
+ ),
|
| 1290 |
+
+ encoding="utf-8",
|
| 1291 |
+
+ )
|
| 1292 |
+
+
|
| 1293 |
+
+ manifest = convert_canonical_rollout_to_lerobot(
|
| 1294 |
+
+ raw_export,
|
| 1295 |
+
+ tmp_path / "lerobot",
|
| 1296 |
+
+ action_carrier="bridge",
|
| 1297 |
+
+ force=True,
|
| 1298 |
+
+ )
|
| 1299 |
+
+
|
| 1300 |
+
+ table = pq.read_table(tmp_path / "lerobot" / "data" / "chunk-000" / "episode_000000.parquet")
|
| 1301 |
+
+ info = json.loads((tmp_path / "lerobot" / "meta" / "info.json").read_text(encoding="utf-8"))
|
| 1302 |
+
+ task_lines = (tmp_path / "lerobot" / "meta" / "tasks.jsonl").read_text(
|
| 1303 |
+
+ encoding="utf-8"
|
| 1304 |
+
+ ).splitlines()
|
| 1305 |
+
+ tasks = [json.loads(line) for line in task_lines]
|
| 1306 |
+
+ converted_row = table.to_pylist()[0]
|
| 1307 |
+
+ assert converted_row["action"] == expected_action
|
| 1308 |
+
+ assert converted_row["observation.state"] == [0.0] * 7
|
| 1309 |
+
+ assert info["features"]["action"]["shape"] == [7]
|
| 1310 |
+
+ assert info["features"]["observation.state"]["shape"] == [7]
|
| 1311 |
+
+ assert tasks == [{"task_index": 0, "task": row["prompt"]}]
|
| 1312 |
+
+ assert manifest["action_carrier"] == "bridge"
|
| 1313 |
+
+ assert manifest["active_action_dim"] == active_action_dim
|
| 1314 |
+
+
|
| 1315 |
+
+
|
| 1316 |
+
+def test_starvla_lerobot_exporter_keeps_every_observation_decision(tmp_path):
|
| 1317 |
+
+ """Canonical rows already occur at the policy observation cadence."""
|
| 1318 |
+
from latency_bench.data.action_layouts import action_spec_for_env
|
| 1319 |
+
from latency_bench.data.exporters.starvla_lerobot import convert_canonical_rollout_to_lerobot
|
| 1320 |
+
from latency_bench.data.hf_parquet import write_parquet_splits
|
| 1321 |
+
@@ -66,12 +161,13 @@ def test_starvla_lerobot_exporter_subsamples_to_obs_cadence(tmp_path):
|
| 1322 |
+
save_test_image(image_path, 9)
|
| 1323 |
+
raw_export = tmp_path / "raw"
|
| 1324 |
+
action_spec = action_spec_for_env("deadly_corridor")
|
| 1325 |
+
- # One episode, 8 contiguous per-raw-frame decision steps; obs_stride = 4.
|
| 1326 |
+
+ # One trajectory with eight contiguous policy-decision observations.
|
| 1327 |
+
train_rows = [
|
| 1328 |
+
{
|
| 1329 |
+
"image": str(image_path),
|
| 1330 |
+
"env_name": "deadly_corridor",
|
| 1331 |
+
"episode_idx": 0,
|
| 1332 |
+
+ "trajectory_idx": 0,
|
| 1333 |
+
"decision_step": step,
|
| 1334 |
+
"split": "train",
|
| 1335 |
+
"seed": 7,
|
| 1336 |
+
@@ -92,6 +188,7 @@ def test_starvla_lerobot_exporter_subsamples_to_obs_cadence(tmp_path):
|
| 1337 |
+
"action_layout": "deadly_corridor_joint_54",
|
| 1338 |
+
"reward_field": "raw_reward",
|
| 1339 |
+
"action_labels": list(action_spec.labels),
|
| 1340 |
+
+ "obs_fps": 8.75,
|
| 1341 |
+
"obs_stride_raw_frames": 4,
|
| 1342 |
+
}
|
| 1343 |
+
),
|
| 1344 |
+
@@ -102,12 +199,73 @@ def test_starvla_lerobot_exporter_subsamples_to_obs_cadence(tmp_path):
|
| 1345 |
+
|
| 1346 |
+
table = pq.read_table(tmp_path / "lerobot" / "data" / "chunk-000" / "episode_000000.parquet")
|
| 1347 |
+
rows = table.to_pylist()
|
| 1348 |
+
- # Only decision_steps 0 and 4 survive; frame_index is contiguous obs index.
|
| 1349 |
+
- assert [r["frame_index"] for r in rows] == [0, 1]
|
| 1350 |
+
- assert [r["episode_index"] for r in rows] == [0, 0]
|
| 1351 |
+
+ assert [r["frame_index"] for r in rows] == list(range(8))
|
| 1352 |
+
+ assert [r["episode_index"] for r in rows] == [0] * 8
|
| 1353 |
+
assert rows[-1]["done"] is True
|
| 1354 |
+
|
| 1355 |
+
|
| 1356 |
+
+def test_starvla_lerobot_exporter_splits_life_trajectories(tmp_path):
|
| 1357 |
+
+ from latency_bench.data.action_layouts import action_spec_for_env
|
| 1358 |
+
+ from latency_bench.data.exporters.starvla_lerobot import convert_canonical_rollout_to_lerobot
|
| 1359 |
+
+ from latency_bench.data.hf_parquet import write_parquet_splits
|
| 1360 |
+
+
|
| 1361 |
+
+ image_path = tmp_path / "image.png"
|
| 1362 |
+
+ save_test_image(image_path, 9)
|
| 1363 |
+
+ raw_export = tmp_path / "raw"
|
| 1364 |
+
+ action_spec = action_spec_for_env("demon_attack")
|
| 1365 |
+
+ train_rows = [
|
| 1366 |
+
+ {
|
| 1367 |
+
+ "image": str(image_path),
|
| 1368 |
+
+ "env_name": "demon_attack",
|
| 1369 |
+
+ "episode_idx": 0,
|
| 1370 |
+
+ "trajectory_idx": trajectory_idx,
|
| 1371 |
+
+ "decision_step": decision_step,
|
| 1372 |
+
+ "split": "train",
|
| 1373 |
+
+ "seed": 7,
|
| 1374 |
+
+ "prompt": "pick action",
|
| 1375 |
+
+ "latency_raw_frames": 6,
|
| 1376 |
+
+ "latency_ms": 100.0,
|
| 1377 |
+
+ "raw_reward": 1.0,
|
| 1378 |
+
+ "action_id": 0,
|
| 1379 |
+
+ "action": [1.0, 0.0, 0.0, 0.0, 0.0, 0.0],
|
| 1380 |
+
+ "action_text": "NOOP",
|
| 1381 |
+
+ }
|
| 1382 |
+
+ for trajectory_idx, decision_step in ((0, 0), (0, 1), (1, 2), (1, 3))
|
| 1383 |
+
+ ]
|
| 1384 |
+
+ write_parquet_splits(raw_export, train_rows, [], action_spec=action_spec)
|
| 1385 |
+
+ (raw_export / "metadata.json").write_text(
|
| 1386 |
+
+ json.dumps(
|
| 1387 |
+
+ {
|
| 1388 |
+
+ "env_name": "demon_attack",
|
| 1389 |
+
+ "action_layout": action_spec.layout,
|
| 1390 |
+
+ "reward_field": action_spec.reward_field,
|
| 1391 |
+
+ "action_labels": list(action_spec.labels),
|
| 1392 |
+
+ "obs_fps": 15,
|
| 1393 |
+
+ }
|
| 1394 |
+
+ ),
|
| 1395 |
+
+ encoding="utf-8",
|
| 1396 |
+
+ )
|
| 1397 |
+
+
|
| 1398 |
+
+ manifest = convert_canonical_rollout_to_lerobot(
|
| 1399 |
+
+ raw_export,
|
| 1400 |
+
+ tmp_path / "lerobot",
|
| 1401 |
+
+ action_carrier="bridge",
|
| 1402 |
+
+ force=True,
|
| 1403 |
+
+ )
|
| 1404 |
+
+
|
| 1405 |
+
+ first = pq.read_table(
|
| 1406 |
+
+ tmp_path / "lerobot" / "data" / "chunk-000" / "episode_000000.parquet"
|
| 1407 |
+
+ ).to_pylist()
|
| 1408 |
+
+ second = pq.read_table(
|
| 1409 |
+
+ tmp_path / "lerobot" / "data" / "chunk-000" / "episode_000001.parquet"
|
| 1410 |
+
+ ).to_pylist()
|
| 1411 |
+
+ assert manifest["episodes"] == 2
|
| 1412 |
+
+ assert [row["frame_index"] for row in first] == [0, 1]
|
| 1413 |
+
+ assert [row["frame_index"] for row in second] == [0, 1]
|
| 1414 |
+
+ assert [row["done"] for row in first] == [False, True]
|
| 1415 |
+
+ assert [row["done"] for row in second] == [False, True]
|
| 1416 |
+
+
|
| 1417 |
+
+
|
| 1418 |
+
def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1419 |
+
from datasets import Dataset, Features, Image as HFImage, Sequence as HFSequence, Value
|
| 1420 |
+
from latency_bench.data.exporters.starvla_lerobot import convert_canonical_rollout_to_lerobot
|
| 1421 |
+
@@ -121,6 +279,7 @@ def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1422 |
+
"image": HFImage(),
|
| 1423 |
+
"env_name": Value("string"),
|
| 1424 |
+
"episode_idx": Value("int64"),
|
| 1425 |
+
+ "trajectory_idx": Value("int64"),
|
| 1426 |
+
"decision_step": Value("int64"),
|
| 1427 |
+
"split": Value("string"),
|
| 1428 |
+
"seed": Value("int64"),
|
| 1429 |
+
@@ -138,6 +297,7 @@ def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1430 |
+
"image": [str(image_path)],
|
| 1431 |
+
"env_name": ["flappy"],
|
| 1432 |
+
"episode_idx": [0],
|
| 1433 |
+
+ "trajectory_idx": [0],
|
| 1434 |
+
"decision_step": [0],
|
| 1435 |
+
"split": ["train"],
|
| 1436 |
+
"seed": [11],
|
| 1437 |
+
@@ -156,6 +316,7 @@ def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1438 |
+
"image": [str(image_path)],
|
| 1439 |
+
"env_name": ["flappy"],
|
| 1440 |
+
"episode_idx": [1],
|
| 1441 |
+
+ "trajectory_idx": [0],
|
| 1442 |
+
"decision_step": [0],
|
| 1443 |
+
"split": ["val"],
|
| 1444 |
+
"seed": [12],
|
| 1445 |
+
@@ -176,6 +337,7 @@ def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1446 |
+
"action_layout": "flappy_discrete",
|
| 1447 |
+
"reward_field": "raw_reward",
|
| 1448 |
+
"action_labels": ["NOOP", "FLAP"],
|
| 1449 |
+
+ "obs_fps": 30,
|
| 1450 |
+
}
|
| 1451 |
+
),
|
| 1452 |
+
encoding="utf-8",
|
| 1453 |
+
diff --git a/tests/scripts/test_generate_sweep_configs.py b/tests/scripts/test_generate_sweep_configs.py
|
| 1454 |
+
index 23d79cb..1fe6cef 100644
|
| 1455 |
+
--- a/tests/scripts/test_generate_sweep_configs.py
|
| 1456 |
+
+++ b/tests/scripts/test_generate_sweep_configs.py
|
| 1457 |
+
@@ -23,6 +23,73 @@ def _read_manifest(path: Path) -> list[dict[str, str]]:
|
| 1458 |
+
return [dict(zip(header, line.split("\t"))) for line in lines[1:]]
|
| 1459 |
+
|
| 1460 |
+
|
| 1461 |
+
+@pytest.mark.parametrize(
|
| 1462 |
+
+ ("env_name", "latency_label", "latency_frames", "obs_fps", "obs_fps_label"),
|
| 1463 |
+
+ [
|
| 1464 |
+
+ ("flappy", "fixed_l3", 3, 30, "30"),
|
| 1465 |
+
+ ("demon_attack", "fixed_l6", 6, 15, "15"),
|
| 1466 |
+
+ ("deadly_corridor", "fixed_l6", 6, 8.75, "8p75"),
|
| 1467 |
+
+ ],
|
| 1468 |
+
+)
|
| 1469 |
+
+def test_memory_rollout_teacher_spec_emits_single_uploadable_job(
|
| 1470 |
+
+ tmp_path,
|
| 1471 |
+
+ env_name,
|
| 1472 |
+
+ latency_label,
|
| 1473 |
+
+ latency_frames,
|
| 1474 |
+
+ obs_fps,
|
| 1475 |
+
+ obs_fps_label,
|
| 1476 |
+
+):
|
| 1477 |
+
+ generated_root = tmp_path / "configs"
|
| 1478 |
+
+ output_root = tmp_path / "outputs"
|
| 1479 |
+
+ train_dir = tmp_path / "checkpoints"
|
| 1480 |
+
+
|
| 1481 |
+
+ generate_sweep_configs(
|
| 1482 |
+
+ [
|
| 1483 |
+
+ "--spec",
|
| 1484 |
+
+ f"configs/experiments/memory/rollout_teacher/{env_name}.yaml",
|
| 1485 |
+
+ "--generated-root",
|
| 1486 |
+
+ str(generated_root),
|
| 1487 |
+
+ "--output-root",
|
| 1488 |
+
+ str(output_root),
|
| 1489 |
+
+ "--train-dir",
|
| 1490 |
+
+ str(train_dir),
|
| 1491 |
+
+ ]
|
| 1492 |
+
+ )
|
| 1493 |
+
+
|
| 1494 |
+
+ rows = _read_manifest(generated_root / "manifest.tsv")
|
| 1495 |
+
+ assert len(rows) == 1
|
| 1496 |
+
+ row = rows[0]
|
| 1497 |
+
+ assert row["env"] == env_name
|
| 1498 |
+
+ assert row["experiment_family"] == "memory_rollout_teacher"
|
| 1499 |
+
+ assert row["sweep_name"] == "teacher"
|
| 1500 |
+
+ assert row["seed"] == "0"
|
| 1501 |
+
+ assert row["frame_stack"] == "4"
|
| 1502 |
+
+ assert row["obs_fps"] == obs_fps_label
|
| 1503 |
+
+ assert row["latency_label"] == latency_label
|
| 1504 |
+
+ assert row["latency_kind"] == "fixed"
|
| 1505 |
+
+ assert row["latency_fixed_frames"] == str(latency_frames)
|
| 1506 |
+
+ assert row["train_upload_repo_id"] == "latency-sensitive-bench/paper-experiment-models"
|
| 1507 |
+
+ assert row["train_upload_repo_type"] == "model"
|
| 1508 |
+
+ assert row["eval_upload_repo_id"] == ""
|
| 1509 |
+
+ assert row["train_artifact_repo_path"].startswith(
|
| 1510 |
+
+ f"memory/rollout_teachers/{env_name}/train/"
|
| 1511 |
+
+ )
|
| 1512 |
+
+
|
| 1513 |
+
+ train_cfg = yaml.safe_load(Path(row["train_config"]).read_text(encoding="utf-8"))
|
| 1514 |
+
+ assert train_cfg["experiment"]["seed"] == 0
|
| 1515 |
+
+ assert train_cfg["env"]["frame_stack"] == 4
|
| 1516 |
+
+ assert train_cfg["env"]["obs_fps"] == pytest.approx(obs_fps)
|
| 1517 |
+
+ assert train_cfg["latency"]["method"] == "fixed"
|
| 1518 |
+
+ assert train_cfg["latency"]["fixed_latency_ms"] == pytest.approx(
|
| 1519 |
+
+ latency_frames * 1000 / train_cfg["env"]["env_fps"]
|
| 1520 |
+
+ )
|
| 1521 |
+
+ assert train_cfg["evaluation"]["eval_suites"] == {
|
| 1522 |
+
+ "fixed": [[latency_frames]],
|
| 1523 |
+
+ "normal": [],
|
| 1524 |
+
+ "uniform": [],
|
| 1525 |
+
+ }
|
| 1526 |
+
+
|
| 1527 |
+
+
|
| 1528 |
+
def test_latency_bench_eval_config_disables_full_trace_records(tmp_path):
|
| 1529 |
+
base_config = {
|
| 1530 |
+
"backend": {
|
| 1531 |
+
diff --git a/tests/scripts/test_manifest_jobs.py b/tests/scripts/test_manifest_jobs.py
|
| 1532 |
+
index bd7bf03..4546ac6 100644
|
| 1533 |
+
--- a/tests/scripts/test_manifest_jobs.py
|
| 1534 |
+
+++ b/tests/scripts/test_manifest_jobs.py
|
| 1535 |
+
@@ -1,8 +1,10 @@
|
| 1536 |
+
from __future__ import annotations
|
| 1537 |
+
|
| 1538 |
+
+import json
|
| 1539 |
+
import os
|
| 1540 |
+
-import subprocess
|
| 1541 |
+
+import shlex
|
| 1542 |
+
import signal
|
| 1543 |
+
+import subprocess
|
| 1544 |
+
import sys
|
| 1545 |
+
import threading
|
| 1546 |
+
import time
|
| 1547 |
+
@@ -10,6 +12,7 @@ import types
|
| 1548 |
+
from pathlib import Path
|
| 1549 |
+
|
| 1550 |
+
import pytest
|
| 1551 |
+
+from helpers import REPO_ROOT
|
| 1552 |
+
|
| 1553 |
+
import scripts.experiment_runner.run_manifest_jobs as run_manifest_jobs
|
| 1554 |
+
from scripts.experiment_runner.job_manifest import (
|
| 1555 |
+
@@ -310,6 +313,186 @@ def test_run_command_cleanup_terminates_child_process_group(tmp_path):
|
| 1556 |
+
os.kill(child_pid, 0)
|
| 1557 |
+
|
| 1558 |
+
|
| 1559 |
+
+def test_sigint_cancels_queue_and_kills_all_active_process_groups(tmp_path):
|
| 1560 |
+
+ helper_path = tmp_path / "ignore_term_job.py"
|
| 1561 |
+
+ helper_path.write_text(
|
| 1562 |
+
+ """from __future__ import annotations
|
| 1563 |
+
+
|
| 1564 |
+
+import json
|
| 1565 |
+
+import os
|
| 1566 |
+
+from pathlib import Path
|
| 1567 |
+
+import signal
|
| 1568 |
+
+import subprocess
|
| 1569 |
+
+import sys
|
| 1570 |
+
+import time
|
| 1571 |
+
+
|
| 1572 |
+
+signal.signal(signal.SIGTERM, signal.SIG_IGN)
|
| 1573 |
+
+child = subprocess.Popen(
|
| 1574 |
+
+ [
|
| 1575 |
+
+ sys.executable,
|
| 1576 |
+
+ "-c",
|
| 1577 |
+
+ "import signal, time; signal.signal(signal.SIGTERM, signal.SIG_IGN); time.sleep(60)",
|
| 1578 |
+
+ ]
|
| 1579 |
+
+)
|
| 1580 |
+
+Path(sys.argv[1]).write_text(
|
| 1581 |
+
+ json.dumps(
|
| 1582 |
+
+ {
|
| 1583 |
+
+ "leader_pid": os.getpid(),
|
| 1584 |
+
+ "leader_pgid": os.getpgid(0),
|
| 1585 |
+
+ "child_pid": child.pid,
|
| 1586 |
+
+ "child_pgid": os.getpgid(child.pid),
|
| 1587 |
+
+ }
|
| 1588 |
+
+ ),
|
| 1589 |
+
+ encoding="utf-8",
|
| 1590 |
+
+)
|
| 1591 |
+
+time.sleep(60)
|
| 1592 |
+
+""",
|
| 1593 |
+
+ encoding="utf-8",
|
| 1594 |
+
+ )
|
| 1595 |
+
+ manifest_path = tmp_path / "manifest.tsv"
|
| 1596 |
+
+ markers = [tmp_path / f"job_{idx}.json" for idx in range(4)]
|
| 1597 |
+
+ rows = []
|
| 1598 |
+
+ for idx, marker in enumerate(markers):
|
| 1599 |
+
+ row = {column: "" for column in MANIFEST_V2_COLUMNS}
|
| 1600 |
+
+ row.update(
|
| 1601 |
+
+ {
|
| 1602 |
+
+ "schema_version": "v2",
|
| 1603 |
+
+ "job_id": f"job{idx}",
|
| 1604 |
+
+ "train_command": f"exec {shlex.join([sys.executable, str(helper_path), str(marker)])}",
|
| 1605 |
+
+ }
|
| 1606 |
+
+ )
|
| 1607 |
+
+ rows.append(row)
|
| 1608 |
+
+ write_manifest(manifest_path, rows)
|
| 1609 |
+
+
|
| 1610 |
+
+ runner = subprocess.Popen(
|
| 1611 |
+
+ [
|
| 1612 |
+
+ sys.executable,
|
| 1613 |
+
+ "-m",
|
| 1614 |
+
+ "scripts.experiment_runner.run_manifest_jobs",
|
| 1615 |
+
+ "--manifest",
|
| 1616 |
+
+ str(manifest_path),
|
| 1617 |
+
+ "--stage",
|
| 1618 |
+
+ "train",
|
| 1619 |
+
+ "--gpus",
|
| 1620 |
+
+ "0,1",
|
| 1621 |
+
+ ],
|
| 1622 |
+
+ cwd=REPO_ROOT,
|
| 1623 |
+
+ stdout=subprocess.PIPE,
|
| 1624 |
+
+ stderr=subprocess.PIPE,
|
| 1625 |
+
+ text=True,
|
| 1626 |
+
+ )
|
| 1627 |
+
+ process_groups: set[int] = set()
|
| 1628 |
+
+ try:
|
| 1629 |
+
+ deadline = time.time() + 10.0
|
| 1630 |
+
+ while sum(marker.is_file() for marker in markers) < 2 and time.time() < deadline:
|
| 1631 |
+
+ time.sleep(0.05)
|
| 1632 |
+
+ assert [marker.is_file() for marker in markers] == [True, True, False, False]
|
| 1633 |
+
+ for marker in markers[:2]:
|
| 1634 |
+
+ process_info = json.loads(marker.read_text(encoding="utf-8"))
|
| 1635 |
+
+ assert process_info["leader_pgid"] == process_info["child_pgid"]
|
| 1636 |
+
+ process_groups.add(int(process_info["leader_pgid"]))
|
| 1637 |
+
+
|
| 1638 |
+
+ runner.send_signal(signal.SIGINT)
|
| 1639 |
+
+ time.sleep(0.1)
|
| 1640 |
+
+ runner.send_signal(signal.SIGINT)
|
| 1641 |
+
+ stdout, stderr = runner.communicate(timeout=10.0)
|
| 1642 |
+
+ assert runner.returncode != 0, (stdout, stderr)
|
| 1643 |
+
+ assert [marker.is_file() for marker in markers] == [True, True, False, False]
|
| 1644 |
+
+
|
| 1645 |
+
+ deadline = time.time() + 5.0
|
| 1646 |
+
+ while process_groups and time.time() < deadline:
|
| 1647 |
+
+ for process_group in list(process_groups):
|
| 1648 |
+
+ try:
|
| 1649 |
+
+ os.killpg(process_group, 0)
|
| 1650 |
+
+ except ProcessLookupError:
|
| 1651 |
+
+ process_groups.remove(process_group)
|
| 1652 |
+
+ time.sleep(0.05)
|
| 1653 |
+
+ assert not process_groups
|
| 1654 |
+
+
|
| 1655 |
+
+ events = load_events(event_log_path_for_manifest(manifest_path))
|
| 1656 |
+
+ assert [event["stage"] for event in events] == ["train_started", "train_started"]
|
| 1657 |
+
+ finally:
|
| 1658 |
+
+ if runner.poll() is None:
|
| 1659 |
+
+ runner.kill()
|
| 1660 |
+
+ runner.wait()
|
| 1661 |
+
+ for process_group in process_groups:
|
| 1662 |
+
+ try:
|
| 1663 |
+
+ os.killpg(process_group, signal.SIGKILL)
|
| 1664 |
+
+ except ProcessLookupError:
|
| 1665 |
+
+ pass
|
| 1666 |
+
+
|
| 1667 |
+
+
|
| 1668 |
+
+def test_sigint_does_not_wait_for_in_flight_upload(tmp_path):
|
| 1669 |
+
+ manifest_path = tmp_path / "manifest.tsv"
|
| 1670 |
+
+ row = {column: "" for column in MANIFEST_V2_COLUMNS}
|
| 1671 |
+
+ row.update(
|
| 1672 |
+
+ {
|
| 1673 |
+
+ "schema_version": "v2",
|
| 1674 |
+
+ "job_id": "job0",
|
| 1675 |
+
+ "train_upload_repo_id": "repo-model",
|
| 1676 |
+
+ "train_upload_repo_type": "model",
|
| 1677 |
+
+ }
|
| 1678 |
+
+ )
|
| 1679 |
+
+ write_manifest(manifest_path, [row])
|
| 1680 |
+
+ append_event(
|
| 1681 |
+
+ event_log_path_for_manifest(manifest_path),
|
| 1682 |
+
+ {"job_id": "job0", "stage": "eval_succeeded"},
|
| 1683 |
+
+ )
|
| 1684 |
+
+ upload_started = tmp_path / "upload_started"
|
| 1685 |
+
+ helper_path = tmp_path / "blocking_upload_runner.py"
|
| 1686 |
+
+ helper_path.write_text(
|
| 1687 |
+
+ """from pathlib import Path
|
| 1688 |
+
+import sys
|
| 1689 |
+
+import time
|
| 1690 |
+
+
|
| 1691 |
+
+from scripts.experiment_runner.run_manifest_jobs import run_jobs
|
| 1692 |
+
+
|
| 1693 |
+
+manifest_path = Path(sys.argv[1])
|
| 1694 |
+
+upload_started = Path(sys.argv[2])
|
| 1695 |
+
+
|
| 1696 |
+
+def blocking_uploader(job):
|
| 1697 |
+
+ del job
|
| 1698 |
+
+ upload_started.write_text("started", encoding="utf-8")
|
| 1699 |
+
+ time.sleep(60)
|
| 1700 |
+
+
|
| 1701 |
+
+raise SystemExit(
|
| 1702 |
+
+ run_jobs(
|
| 1703 |
+
+ manifest_path=manifest_path,
|
| 1704 |
+
+ gpus=[],
|
| 1705 |
+
+ upload_workers=1,
|
| 1706 |
+
+ max_upload_attempts=1,
|
| 1707 |
+
+ stage="upload",
|
| 1708 |
+
+ uploader=blocking_uploader,
|
| 1709 |
+
+ )
|
| 1710 |
+
+)
|
| 1711 |
+
+""",
|
| 1712 |
+
+ encoding="utf-8",
|
| 1713 |
+
+ )
|
| 1714 |
+
+ runner = subprocess.Popen(
|
| 1715 |
+
+ [sys.executable, str(helper_path), str(manifest_path), str(upload_started)],
|
| 1716 |
+
+ cwd=REPO_ROOT,
|
| 1717 |
+
+ env={**os.environ, "PYTHONPATH": str(REPO_ROOT)},
|
| 1718 |
+
+ stdout=subprocess.PIPE,
|
| 1719 |
+
+ stderr=subprocess.PIPE,
|
| 1720 |
+
+ text=True,
|
| 1721 |
+
+ )
|
| 1722 |
+
+ try:
|
| 1723 |
+
+ deadline = time.time() + 10.0
|
| 1724 |
+
+ while not upload_started.is_file() and time.time() < deadline:
|
| 1725 |
+
+ time.sleep(0.05)
|
| 1726 |
+
+ assert upload_started.is_file()
|
| 1727 |
+
+
|
| 1728 |
+
+ started_at = time.monotonic()
|
| 1729 |
+
+ runner.send_signal(signal.SIGINT)
|
| 1730 |
+
+ stdout, stderr = runner.communicate(timeout=5.0)
|
| 1731 |
+
+ assert runner.returncode != 0, (stdout, stderr)
|
| 1732 |
+
+ assert time.monotonic() - started_at < 3.0
|
| 1733 |
+
+ finally:
|
| 1734 |
+
+ if runner.poll() is None:
|
| 1735 |
+
+ runner.kill()
|
| 1736 |
+
+ runner.wait()
|
| 1737 |
+
+
|
| 1738 |
+
+
|
| 1739 |
+
def test_default_uploader_prefers_env_token_over_dotenv(monkeypatch, tmp_path):
|
| 1740 |
+
monkeypatch.chdir(tmp_path)
|
| 1741 |
+
(tmp_path / ".env").write_text("HF_TOKEN=dotenv-token\n", encoding="utf-8")
|
evaluations/deadly-corridor/memory_rollout_teacher:deadly_corridor:teacher:fixed_l6:fs4:obs8p75:stride4:seed0/train/memory_rollout_teacher:deadly_corridor:teacher:fixed_l6:fs4:obs8p75:stride4:seed0/sf_log.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluations/deadly-corridor/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/eval/fixed_6/eval_latency_6/episode_metrics.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"episode_id": 0, "episode_return": 145.67367553710938, "episode_return_env": 145.67367553710938, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 42, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 13, "num_dropped_actions": 1, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 50}
|
| 2 |
+
{"episode_id": 1, "episode_return": 46.77955627441406, "episode_return_env": 46.77955627441406, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 43, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 12, "num_dropped_actions": 1, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 46}
|
| 3 |
+
{"episode_id": 2, "episode_return": 382.1748809814453, "episode_return_env": 382.1748809814453, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 44, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 23, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 92}
|
| 4 |
+
{"episode_id": 3, "episode_return": 112.09428405761719, "episode_return_env": 112.09428405761719, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 45, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 13, "num_dropped_actions": 1, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 50}
|
| 5 |
+
{"episode_id": 4, "episode_return": 433.02099609375, "episode_return_env": 433.02099609375, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 46, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 23, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 92}
|
| 6 |
+
{"episode_id": 5, "episode_return": 318.6367950439453, "episode_return_env": 318.6367950439453, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 47, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 22, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 87}
|
| 7 |
+
{"episode_id": 6, "episode_return": 49.76713562011719, "episode_return_env": 49.76713562011719, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 48, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 12, "num_dropped_actions": 1, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 46}
|
| 8 |
+
{"episode_id": 7, "episode_return": 465.71104431152344, "episode_return_env": 465.71104431152344, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 49, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 24, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 96}
|
| 9 |
+
{"episode_id": 8, "episode_return": 97.55632019042969, "episode_return_env": 97.55632019042969, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 50, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 12, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 47}
|
| 10 |
+
{"episode_id": 9, "episode_return": 107.55245971679688, "episode_return_env": 107.55245971679688, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 51, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 13, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 52}
|
| 11 |
+
{"episode_id": 10, "episode_return": 73.88134765625, "episode_return_env": 73.88134765625, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 52, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 11, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 44}
|
| 12 |
+
{"episode_id": 11, "episode_return": 321.43589782714844, "episode_return_env": 321.43589782714844, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 53, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 21, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 83}
|
| 13 |
+
{"episode_id": 12, "episode_return": 340.1656494140625, "episode_return_env": 340.1656494140625, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 54, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 21, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 84}
|
| 14 |
+
{"episode_id": 13, "episode_return": 358.41978454589844, "episode_return_env": 358.41978454589844, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 55, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 22, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 88}
|
| 15 |
+
{"episode_id": 14, "episode_return": 433.22064208984375, "episode_return_env": 433.22064208984375, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 56, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 25, "num_dropped_actions": 1, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.4285714285714, "return_raw": null, "survival_steps": 97}
|
| 16 |
+
{"episode_id": 15, "episode_return": 420.3064727783203, "episode_return_env": 420.3064727783203, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 57, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 21, "num_dropped_actions": 1, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 82}
|
| 17 |
+
{"episode_id": 16, "episode_return": 409.05506896972656, "episode_return_env": 409.05506896972656, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 58, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 24, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 95}
|
| 18 |
+
{"episode_id": 17, "episode_return": 93.52970886230469, "episode_return_env": 93.52970886230469, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 59, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 13, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 51}
|
| 19 |
+
{"episode_id": 18, "episode_return": 102.85501098632812, "episode_return_env": 102.85501098632812, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 60, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 13, "num_dropped_actions": 1, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 49}
|
| 20 |
+
{"episode_id": 19, "episode_return": 67.03433227539062, "episode_return_env": 67.03433227539062, "game_score": null, "mean_latency_ms": 171.42857142857142, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "config_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "configured_latency_ms": 171.42857142857142, "env_fps": 35.0, "env_id": "doom_deadly_corridor", "episode_seed": 61, "eval_latency_steps": 6, "frame_ms": 28.571428571428573, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 8.75, "output_dir": "/workspace/evals/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/latency_bench_eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 11, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 171.42857142857142, "p99_latency_ms": 171.42857142857142, "return_raw": null, "survival_steps": 44}
|
evaluations/deadly-corridor/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/eval/fixed_6/queue_eval_latency_6.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt",
|
| 3 |
+
"configured_latency_ms": 171.42857142857142,
|
| 4 |
+
"eval_latency_steps": 6,
|
| 5 |
+
"experiment_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400",
|
| 6 |
+
"latency": 6,
|
| 7 |
+
"latency_type": "fixed_sweep",
|
| 8 |
+
"lengths": [
|
| 9 |
+
50,
|
| 10 |
+
46,
|
| 11 |
+
92,
|
| 12 |
+
50,
|
| 13 |
+
92,
|
| 14 |
+
87,
|
| 15 |
+
46,
|
| 16 |
+
96,
|
| 17 |
+
47,
|
| 18 |
+
52,
|
| 19 |
+
44,
|
| 20 |
+
83,
|
| 21 |
+
84,
|
| 22 |
+
88,
|
| 23 |
+
97,
|
| 24 |
+
82,
|
| 25 |
+
95,
|
| 26 |
+
51,
|
| 27 |
+
49,
|
| 28 |
+
44
|
| 29 |
+
],
|
| 30 |
+
"mean_length": 68.75,
|
| 31 |
+
"mean_return": 238.94355316162108,
|
| 32 |
+
"returns": [
|
| 33 |
+
145.67367553710938,
|
| 34 |
+
46.77955627441406,
|
| 35 |
+
382.1748809814453,
|
| 36 |
+
112.09428405761719,
|
| 37 |
+
433.02099609375,
|
| 38 |
+
318.6367950439453,
|
| 39 |
+
49.76713562011719,
|
| 40 |
+
465.71104431152344,
|
| 41 |
+
97.55632019042969,
|
| 42 |
+
107.55245971679688,
|
| 43 |
+
73.88134765625,
|
| 44 |
+
321.43589782714844,
|
| 45 |
+
340.1656494140625,
|
| 46 |
+
358.41978454589844,
|
| 47 |
+
433.22064208984375,
|
| 48 |
+
420.3064727783203,
|
| 49 |
+
409.05506896972656,
|
| 50 |
+
93.52970886230469,
|
| 51 |
+
102.85501098632812,
|
| 52 |
+
67.03433227539062
|
| 53 |
+
],
|
| 54 |
+
"seed": 42,
|
| 55 |
+
"std_return": 154.6087889571668,
|
| 56 |
+
"suite_name": "fixed_6",
|
| 57 |
+
"timestamp_utc": "2026-07-29T08:50:52.080822+00:00",
|
| 58 |
+
"train_latency_steps": 6
|
| 59 |
+
}
|
evaluations/deadly-corridor/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/eval/fixed_6/queue_eval_results.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_deadly_corridor_fix_latency_6_context5_standard_sft_1000_effbs128_224_currentbce/checkpoints/steps_1000_pytorch_model.pt", "configured_latency_ms": 171.42857142857142, "eval_latency_steps": 6, "experiment_name": "starvla_wan_oft_deadly_corridor_raw6_maxsteps14400", "latency": 6, "latency_type": "fixed_sweep", "lengths": [50, 46, 92, 50, 92, 87, 46, 96, 47, 52, 44, 83, 84, 88, 97, 82, 95, 51, 49, 44], "mean_length": 68.75, "mean_return": 238.94355316162108, "returns": [145.67367553710938, 46.77955627441406, 382.1748809814453, 112.09428405761719, 433.02099609375, 318.6367950439453, 49.76713562011719, 465.71104431152344, 97.55632019042969, 107.55245971679688, 73.88134765625, 321.43589782714844, 340.1656494140625, 358.41978454589844, 433.22064208984375, 420.3064727783203, 409.05506896972656, 93.52970886230469, 102.85501098632812, 67.03433227539062], "seed": 42, "std_return": 154.6087889571668, "suite_name": "fixed_6", "timestamp_utc": "2026-07-29T08:50:52.080822+00:00", "train_latency_steps": 6}
|
evaluations/demon-attack/memory_rollout_teacher:demon_attack:teacher:fixed_l6:fs4:obs15:stride4:seed0/train/memory_rollout_teacher:demon_attack:teacher:fixed_l6:fs4:obs15:stride4:seed0/episode_metrics.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluations/demon-attack/memory_rollout_teacher:demon_attack:teacher:fixed_l6:fs4:obs15:stride4:seed0/train/memory_rollout_teacher:demon_attack:teacher:fixed_l6:fs4:obs15:stride4:seed0/git.diff
ADDED
|
@@ -0,0 +1,1829 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/configs/experiments/fixed_latency_curve.yaml b/configs/experiments/fixed_latency_curve.yaml
|
| 2 |
+
deleted file mode 100644
|
| 3 |
+
index 3ab184f..0000000
|
| 4 |
+
--- a/configs/experiments/fixed_latency_curve.yaml
|
| 5 |
+
+++ /dev/null
|
| 6 |
+
@@ -1,17 +0,0 @@
|
| 7 |
+
-__base__: ../base/dummy.yaml
|
| 8 |
+
-
|
| 9 |
+
-experiment:
|
| 10 |
+
- name: fixed_latency_curve
|
| 11 |
+
-
|
| 12 |
+
-executor:
|
| 13 |
+
- mode: simulated
|
| 14 |
+
-
|
| 15 |
+
-latency:
|
| 16 |
+
- method: fixed
|
| 17 |
+
- fixed_latency_ms: 100
|
| 18 |
+
-
|
| 19 |
+
-evaluation:
|
| 20 |
+
- eval_episodes: 20
|
| 21 |
+
-
|
| 22 |
+
-logging:
|
| 23 |
+
- output_dir: outputs/fixed_latency_curve
|
| 24 |
+
diff --git a/configs/experiments/flappy/frame_stack/base.yaml b/configs/experiments/flappy/frame_stack/base.yaml
|
| 25 |
+
deleted file mode 100644
|
| 26 |
+
index f1557d5..0000000
|
| 27 |
+
--- a/configs/experiments/flappy/frame_stack/base.yaml
|
| 28 |
+
+++ /dev/null
|
| 29 |
+
@@ -1,123 +0,0 @@
|
| 30 |
+
-experiment:
|
| 31 |
+
- name: flappy_base
|
| 32 |
+
- seed: 0
|
| 33 |
+
-
|
| 34 |
+
-backend:
|
| 35 |
+
- type: sample_factory
|
| 36 |
+
- algo: APPO
|
| 37 |
+
- device: cuda
|
| 38 |
+
- train_dir: results/checkpoints
|
| 39 |
+
- restart_behavior: resume
|
| 40 |
+
- run_mode: train
|
| 41 |
+
-
|
| 42 |
+
-executor:
|
| 43 |
+
- mode: simulated
|
| 44 |
+
-
|
| 45 |
+
-env:
|
| 46 |
+
- name: flappy
|
| 47 |
+
- # note that env_fps must be an integer multiple of obs_fps!
|
| 48 |
+
- env_fps: 30
|
| 49 |
+
- obs_fps: 30
|
| 50 |
+
- gym_id: FlappyBird-v0
|
| 51 |
+
- render_mode: rgb_array
|
| 52 |
+
- observation_mode: image
|
| 53 |
+
- use_lidar: false
|
| 54 |
+
- normalize_obs: true
|
| 55 |
+
- audio_on: false
|
| 56 |
+
- frame_stack: 4
|
| 57 |
+
- obs_resize:
|
| 58 |
+
- - 84
|
| 59 |
+
- - 84
|
| 60 |
+
- # for training it could be true, but for realtime mode, THIS MUST BE FALSE!
|
| 61 |
+
- use_gpu_render: true
|
| 62 |
+
- simulator: gpu
|
| 63 |
+
- gpu_render_device: auto
|
| 64 |
+
- gpu_render_profile: false
|
| 65 |
+
- gpu_render_profile_interval: 200
|
| 66 |
+
- noop_action: noop
|
| 67 |
+
- action_map:
|
| 68 |
+
- noop: 0
|
| 69 |
+
- flap: 1
|
| 70 |
+
- oneshot_actions:
|
| 71 |
+
- - flap
|
| 72 |
+
-
|
| 73 |
+
-latency:
|
| 74 |
+
- method: normal
|
| 75 |
+
- mean_latency_ms: 66.7
|
| 76 |
+
- std_latency_ms: 33.3
|
| 77 |
+
- min_latency_ms: 0
|
| 78 |
+
- max_latency_ms: 500.0
|
| 79 |
+
-
|
| 80 |
+
-
|
| 81 |
+
-scheduler:
|
| 82 |
+
- # [one_frame_then_noop, hold]
|
| 83 |
+
- # if hold, default hold duration is: env_fps / obs_fps
|
| 84 |
+
- hold_policy: one_frame_then_noop
|
| 85 |
+
- # can be either `issue_order_fifo` or `latest ready`
|
| 86 |
+
- ordering_policy: latest_ready
|
| 87 |
+
-
|
| 88 |
+
-policy:
|
| 89 |
+
- type: random
|
| 90 |
+
- actions:
|
| 91 |
+
- - noop
|
| 92 |
+
- - flap
|
| 93 |
+
-
|
| 94 |
+
-training:
|
| 95 |
+
- train_for_env_steps: 25000000
|
| 96 |
+
- num_workers: 2
|
| 97 |
+
- num_envs_per_worker: 128
|
| 98 |
+
- worker_num_splits: 1
|
| 99 |
+
- num_policies: 1
|
| 100 |
+
- batch_size: 4096
|
| 101 |
+
- rollout: 128
|
| 102 |
+
- recurrence: 1
|
| 103 |
+
- num_epochs: 8
|
| 104 |
+
- num_batches_per_epoch: 8
|
| 105 |
+
- max_policy_lag: 400
|
| 106 |
+
- learning_rate: 0.00025
|
| 107 |
+
- gamma: 0.99
|
| 108 |
+
- gae_lambda: 0.95
|
| 109 |
+
- ppo_clip_ratio: 0.1
|
| 110 |
+
- ppo_clip_value: 0.2
|
| 111 |
+
- value_loss_coeff: 0.5
|
| 112 |
+
- max_grad_norm: 0.5
|
| 113 |
+
- async_rl: true
|
| 114 |
+
- use_rnn: false
|
| 115 |
+
- normalize_input: true
|
| 116 |
+
- normalize_returns: true
|
| 117 |
+
- stats_avg: 100
|
| 118 |
+
- experiment_summaries_interval: 1
|
| 119 |
+
- save_every_sec: 600
|
| 120 |
+
- keep_checkpoints: 5
|
| 121 |
+
-
|
| 122 |
+
-evaluation:
|
| 123 |
+
- eval_interval_steps: 1000000
|
| 124 |
+
- eval_episodes: 100
|
| 125 |
+
- eval_parallel_envs: 100
|
| 126 |
+
- eval_max_steps: 3600
|
| 127 |
+
- eval_deterministic: true
|
| 128 |
+
- eval_raw_reward: false
|
| 129 |
+
- eval_suites:
|
| 130 |
+
- fixed:
|
| 131 |
+
- - [0, 8] # [start, end]
|
| 132 |
+
- normal:
|
| 133 |
+
- - [2.0, 0.5, 0, 15] # low latency, low jitter
|
| 134 |
+
- - [2.0, 1.0, 0, 15] # low latency, medium jitter
|
| 135 |
+
- - [4.0, 0.5, 0, 15] # high latency, low jitter
|
| 136 |
+
- - [4.0, 1.0, 0, 15] # high latency, medium jitter
|
| 137 |
+
- - [4.0, 2.0, 0, 15] # high latency, high jitter
|
| 138 |
+
- uniform:
|
| 139 |
+
- - [1, 3] # low latency, low jitter
|
| 140 |
+
- - [0, 4] # low latency, high jitter
|
| 141 |
+
- - [3, 5] # high latency, low jitter
|
| 142 |
+
- - [2, 6] # high latency, high jitter
|
| 143 |
+
-
|
| 144 |
+
-logging:
|
| 145 |
+
- output_dir: outputs/flappy_base
|
| 146 |
+
- save_step_records: true
|
| 147 |
+
- save_action_records: true
|
| 148 |
+
- save_latency_records: true
|
| 149 |
+
- wandb_project: latency-sensitive-bench
|
| 150 |
+
- wandb_group: flappy-frame_stack
|
| 151 |
+
- wandb_job_type: sample_factory
|
| 152 |
+
- wandb_tags: ""
|
| 153 |
+
diff --git a/latency_bench/data/exporters/starvla_lerobot.py b/latency_bench/data/exporters/starvla_lerobot.py
|
| 154 |
+
index c693460..4ad276a 100644
|
| 155 |
+
--- a/latency_bench/data/exporters/starvla_lerobot.py
|
| 156 |
+
+++ b/latency_bench/data/exporters/starvla_lerobot.py
|
| 157 |
+
@@ -18,12 +18,17 @@ from latency_bench.utils.io import write_jsonl
|
| 158 |
+
from latency_bench.data.action_layouts import action_spec_for_env
|
| 159 |
+
from latency_bench.data.filters import density_weights_clean_v1
|
| 160 |
+
|
| 161 |
+
-FPS_BY_ENV = {
|
| 162 |
+
- "flappy": 30,
|
| 163 |
+
- "demon_attack": 60,
|
| 164 |
+
- "deadly_corridor": 35,
|
| 165 |
+
-}
|
| 166 |
+
STATE_DIM = 1
|
| 167 |
+
+BRIDGE_DIM = 7
|
| 168 |
+
+DEADLY_CORRIDOR_BRIDGE_ACTION_LABELS = (
|
| 169 |
+
+ "MOVE_FORWARD",
|
| 170 |
+
+ "MOVE_BACKWARD",
|
| 171 |
+
+ "MOVE_LEFT",
|
| 172 |
+
+ "MOVE_RIGHT",
|
| 173 |
+
+ "TURN_LEFT",
|
| 174 |
+
+ "TURN_RIGHT",
|
| 175 |
+
+ "ATTACK",
|
| 176 |
+
+)
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
def _png_bytes(image: Any) -> bytes:
|
| 180 |
+
@@ -64,30 +69,38 @@ def _load_rows(raw_export_dir: Path, split: str) -> list[dict[str, Any]]:
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
def _episode_groups(rows: list[dict[str, Any]]) -> list[list[dict[str, Any]]]:
|
| 184 |
+
- """Group canonical rows by episode and order by decision step.
|
| 185 |
+
+ """Group canonical rows by trajectory and order by decision step.
|
| 186 |
+
|
| 187 |
+
Args:
|
| 188 |
+
rows: Canonical rollout rows from one split.
|
| 189 |
+
|
| 190 |
+
Returns:
|
| 191 |
+
- Episode row groups sorted by episode index.
|
| 192 |
+
+ Trajectory row groups sorted by episode and trajectory index.
|
| 193 |
+
"""
|
| 194 |
+
- grouped: dict[int, list[dict[str, Any]]] = {}
|
| 195 |
+
+ grouped: dict[tuple[int, int], list[dict[str, Any]]] = {}
|
| 196 |
+
for row in rows:
|
| 197 |
+
- grouped.setdefault(int(row["episode_idx"]), []).append(row)
|
| 198 |
+
+ key = (int(row["episode_idx"]), int(row["trajectory_idx"]))
|
| 199 |
+
+ grouped.setdefault(key, []).append(row)
|
| 200 |
+
return [
|
| 201 |
+
sorted(episode_rows, key=lambda row: int(row["decision_step"]))
|
| 202 |
+
for _, episode_rows in sorted(grouped.items())
|
| 203 |
+
]
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
-def _write_episode(path: Path, rows: list[dict[str, Any]], *, action_dim: int) -> None:
|
| 207 |
+
+def _write_episode(
|
| 208 |
+
+ path: Path,
|
| 209 |
+
+ rows: list[dict[str, Any]],
|
| 210 |
+
+ *,
|
| 211 |
+
+ action_dim: int,
|
| 212 |
+
+ state_dim: int,
|
| 213 |
+
+) -> None:
|
| 214 |
+
"""Write one LeRobot episode parquet file.
|
| 215 |
+
|
| 216 |
+
Args:
|
| 217 |
+
path: Destination episode parquet path.
|
| 218 |
+
rows: Converted LeRobot frame rows.
|
| 219 |
+
action_dim: Expected action vector dimension.
|
| 220 |
+
+ state_dim: Expected state carrier dimension.
|
| 221 |
+
"""
|
| 222 |
+
path.parent.mkdir(parents=True, exist_ok=True)
|
| 223 |
+
table = pa.table(
|
| 224 |
+
@@ -97,8 +110,8 @@ def _write_episode(path: Path, rows: list[dict[str, Any]], *, action_dim: int) -
|
| 225 |
+
type=pa.struct([("bytes", pa.binary()), ("path", pa.string())]),
|
| 226 |
+
),
|
| 227 |
+
"observation.state": pa.array(
|
| 228 |
+
- [[0.0] * STATE_DIM for _ in rows],
|
| 229 |
+
- type=pa.list_(pa.float32(), STATE_DIM),
|
| 230 |
+
+ [[0.0] * state_dim for _ in rows],
|
| 231 |
+
+ type=pa.list_(pa.float32(), state_dim),
|
| 232 |
+
),
|
| 233 |
+
"action": pa.array(
|
| 234 |
+
[row["action"] for row in rows],
|
| 235 |
+
@@ -131,11 +144,47 @@ def _row_action_vector(row: dict[str, Any], *, action_dim: int) -> list[float]:
|
| 236 |
+
return [1.0 if idx == action_id else 0.0 for idx in range(action_dim)]
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
+def _bridge_action_vector(
|
| 240 |
+
+ row: dict[str, Any],
|
| 241 |
+
+ *,
|
| 242 |
+
+ env_name: str,
|
| 243 |
+
+ active_action_dim: int,
|
| 244 |
+
+) -> list[float]:
|
| 245 |
+
+ if env_name == "deadly_corridor":
|
| 246 |
+
+ action_text = str(row["action_text"]).upper()
|
| 247 |
+
+ return [
|
| 248 |
+
+ 1.0 if label in action_text else 0.0
|
| 249 |
+
+ for label in DEADLY_CORRIDOR_BRIDGE_ACTION_LABELS
|
| 250 |
+
+ ]
|
| 251 |
+
+ action = _row_action_vector(row, action_dim=active_action_dim)
|
| 252 |
+
+ return [*action, *([0.0] * (BRIDGE_DIM - active_action_dim))]
|
| 253 |
+
+
|
| 254 |
+
+
|
| 255 |
+
+def _target_action_labels(
|
| 256 |
+
+ *,
|
| 257 |
+
+ env_name: str,
|
| 258 |
+
+ source_action_labels: list[str],
|
| 259 |
+
+ action_carrier: str,
|
| 260 |
+
+) -> list[str]:
|
| 261 |
+
+ if action_carrier == "native":
|
| 262 |
+
+ return source_action_labels
|
| 263 |
+
+ if env_name == "deadly_corridor":
|
| 264 |
+
+ return list(DEADLY_CORRIDOR_BRIDGE_ACTION_LABELS)
|
| 265 |
+
+ return [
|
| 266 |
+
+ *source_action_labels,
|
| 267 |
+
+ *[
|
| 268 |
+
+ f"BRIDGE_PAD_{idx}"
|
| 269 |
+
+ for idx in range(len(source_action_labels), BRIDGE_DIM)
|
| 270 |
+
+ ],
|
| 271 |
+
+ ]
|
| 272 |
+
+
|
| 273 |
+
+
|
| 274 |
+
def _write_metadata(
|
| 275 |
+
dataset_dir: Path,
|
| 276 |
+
*,
|
| 277 |
+
- fps: int,
|
| 278 |
+
+ fps: float,
|
| 279 |
+
action_labels: list[str],
|
| 280 |
+
+ state_dim: int,
|
| 281 |
+
episode_lengths: list[int],
|
| 282 |
+
task_prompts: list[str],
|
| 283 |
+
) -> None:
|
| 284 |
+
@@ -144,7 +193,8 @@ def _write_metadata(
|
| 285 |
+
Args:
|
| 286 |
+
dataset_dir: LeRobot dataset split directory.
|
| 287 |
+
fps: Frame rate stored in metadata.
|
| 288 |
+
- action_labels: Canonical action labels in vector order.
|
| 289 |
+
+ action_labels: Target action labels in vector order.
|
| 290 |
+
+ state_dim: State carrier dimension.
|
| 291 |
+
episode_lengths: Number of frames per converted episode.
|
| 292 |
+
task_prompts: Unique prompts used as LeRobot tasks.
|
| 293 |
+
"""
|
| 294 |
+
@@ -155,10 +205,10 @@ def _write_metadata(
|
| 295 |
+
json.dumps(
|
| 296 |
+
{
|
| 297 |
+
"codebase_version": "v2.0",
|
| 298 |
+
- "fps": int(fps),
|
| 299 |
+
+ "fps": fps,
|
| 300 |
+
"features": {
|
| 301 |
+
"observation.image": {"dtype": "image"},
|
| 302 |
+
- "observation.state": {"dtype": "float32", "shape": [STATE_DIM]},
|
| 303 |
+
+ "observation.state": {"dtype": "float32", "shape": [state_dim]},
|
| 304 |
+
"action": {"dtype": "float32", "shape": [action_dim], "names": action_labels},
|
| 305 |
+
"timestamp": {"dtype": "float64", "shape": [1]},
|
| 306 |
+
"episode_index": {"dtype": "int64", "shape": [1]},
|
| 307 |
+
@@ -183,9 +233,11 @@ def _convert_split(
|
| 308 |
+
*,
|
| 309 |
+
env_name: str,
|
| 310 |
+
action_labels: list[str],
|
| 311 |
+
- fps: int,
|
| 312 |
+
+ fps: float,
|
| 313 |
+
reward_field: str,
|
| 314 |
+
- obs_stride: int = 1,
|
| 315 |
+
+ action_carrier: str,
|
| 316 |
+
+ active_action_dim: int,
|
| 317 |
+
+ state_dim: int,
|
| 318 |
+
density_weighting: bool = False,
|
| 319 |
+
) -> dict[str, Any]:
|
| 320 |
+
"""Convert one canonical rollout split into a LeRobot dataset directory.
|
| 321 |
+
@@ -195,13 +247,11 @@ def _convert_split(
|
| 322 |
+
output_dir: Destination LeRobot split directory.
|
| 323 |
+
env_name: Canonical benchmark environment name.
|
| 324 |
+
action_labels: Canonical action labels in vector order.
|
| 325 |
+
- fps: Frame rate used for timestamps.
|
| 326 |
+
+ fps: Observation frame rate used for timestamps.
|
| 327 |
+
reward_field: Source canonical reward column.
|
| 328 |
+
- obs_stride: Raw frames per observation decision (``round(env_fps/obs_fps)``).
|
| 329 |
+
- Canonical rows are recorded once per raw frame; keeping only the obs
|
| 330 |
+
- decisions (``decision_step % obs_stride == 0``) makes adjacent LeRobot
|
| 331 |
+
- rows adjacent observations, so KV-memory rollouts unroll at the eval
|
| 332 |
+
- observation cadence.
|
| 333 |
+
+ action_carrier: Target action/state carrier.
|
| 334 |
+
+ active_action_dim: Number of active environment action dimensions.
|
| 335 |
+
+ state_dim: Target state carrier dimension.
|
| 336 |
+
density_weighting: When True, write per-row ``density_weight`` from clean_v1's
|
| 337 |
+
event balancing (train split). When False, weights are uniform 1.0 (val
|
| 338 |
+
split keeps an unweighted held-out loss).
|
| 339 |
+
@@ -214,7 +264,6 @@ def _convert_split(
|
| 340 |
+
task_prompts: list[str] = []
|
| 341 |
+
episode_lengths: list[int] = []
|
| 342 |
+
for new_episode_idx, episode_rows in enumerate(_episode_groups(rows)):
|
| 343 |
+
- episode_rows = [row for row in episode_rows if int(row["decision_step"]) % obs_stride == 0]
|
| 344 |
+
density_weights = (
|
| 345 |
+
density_weights_clean_v1(env_name, episode_rows)
|
| 346 |
+
if density_weighting
|
| 347 |
+
@@ -231,8 +280,14 @@ def _convert_split(
|
| 348 |
+
out_rows.append(
|
| 349 |
+
{
|
| 350 |
+
"image_bytes": _png_bytes(row["image"]),
|
| 351 |
+
- "action": _row_action_vector(row, action_dim=len(action_labels)),
|
| 352 |
+
- "timestamp": float(frame_idx) / int(fps),
|
| 353 |
+
+ "action": _bridge_action_vector(
|
| 354 |
+
+ row,
|
| 355 |
+
+ env_name=env_name,
|
| 356 |
+
+ active_action_dim=active_action_dim,
|
| 357 |
+
+ )
|
| 358 |
+
+ if action_carrier == "bridge"
|
| 359 |
+
+ else _row_action_vector(row, action_dim=len(action_labels)),
|
| 360 |
+
+ "timestamp": float(frame_idx) / fps,
|
| 361 |
+
"episode_index": new_episode_idx,
|
| 362 |
+
"frame_index": frame_idx,
|
| 363 |
+
"task_index": prompt_to_task_index[prompt],
|
| 364 |
+
@@ -248,11 +303,13 @@ def _convert_split(
|
| 365 |
+
output_dir / f"data/chunk-{episode_chunk:03d}/episode_{new_episode_idx:06d}.parquet",
|
| 366 |
+
out_rows,
|
| 367 |
+
action_dim=len(action_labels),
|
| 368 |
+
+ state_dim=state_dim,
|
| 369 |
+
)
|
| 370 |
+
_write_metadata(
|
| 371 |
+
output_dir,
|
| 372 |
+
fps=fps,
|
| 373 |
+
action_labels=action_labels,
|
| 374 |
+
+ state_dim=state_dim,
|
| 375 |
+
episode_lengths=episode_lengths,
|
| 376 |
+
task_prompts=task_prompts,
|
| 377 |
+
)
|
| 378 |
+
@@ -269,6 +326,7 @@ def convert_canonical_rollout_to_lerobot(
|
| 379 |
+
raw_export_dir: Path | str,
|
| 380 |
+
output_dir: Path | str,
|
| 381 |
+
*,
|
| 382 |
+
+ action_carrier: str = "native",
|
| 383 |
+
force: bool = False,
|
| 384 |
+
) -> dict[str, Any]:
|
| 385 |
+
"""Convert a canonical rollout export into train/val LeRobot datasets.
|
| 386 |
+
@@ -276,6 +334,7 @@ def convert_canonical_rollout_to_lerobot(
|
| 387 |
+
Args:
|
| 388 |
+
raw_export_dir: Directory with canonical rollout parquet files and metadata.
|
| 389 |
+
output_dir: Destination LeRobot train dataset directory.
|
| 390 |
+
+ action_carrier: Target action/state carrier, ``native`` or ``bridge``.
|
| 391 |
+
force: Remove existing train/val output directories before writing.
|
| 392 |
+
|
| 393 |
+
Returns:
|
| 394 |
+
@@ -286,11 +345,20 @@ def convert_canonical_rollout_to_lerobot(
|
| 395 |
+
metadata = json.loads((raw_export_dir / "metadata.json").read_text(encoding="utf-8"))
|
| 396 |
+
env_name = str(metadata["env_name"])
|
| 397 |
+
action_spec = action_spec_for_env(env_name)
|
| 398 |
+
- action_labels = list(metadata["action_labels"])
|
| 399 |
+
+ source_action_labels = list(metadata["action_labels"])
|
| 400 |
+
+ action_labels = _target_action_labels(
|
| 401 |
+
+ env_name=env_name,
|
| 402 |
+
+ source_action_labels=source_action_labels,
|
| 403 |
+
+ action_carrier=action_carrier,
|
| 404 |
+
+ )
|
| 405 |
+
+ active_action_dim = {
|
| 406 |
+
+ "flappy": 2,
|
| 407 |
+
+ "demon_attack": 6,
|
| 408 |
+
+ "deadly_corridor": 7,
|
| 409 |
+
+ }[env_name]
|
| 410 |
+
+ state_dim = {"native": STATE_DIM, "bridge": BRIDGE_DIM}[action_carrier]
|
| 411 |
+
reward_field = str(metadata["reward_field"])
|
| 412 |
+
- obs_stride = int(metadata.get("obs_stride_raw_frames", 1))
|
| 413 |
+
- # Rows survive at the observation cadence, so timestamps advance at obs_fps.
|
| 414 |
+
- fps = max(1, int(FPS_BY_ENV[env_name]) // obs_stride)
|
| 415 |
+
+ fps = metadata["obs_fps"]
|
| 416 |
+
val_output_dir = output_dir.with_name(f"{output_dir.name}__val")
|
| 417 |
+
if output_dir.exists() and force:
|
| 418 |
+
shutil.rmtree(output_dir)
|
| 419 |
+
@@ -303,7 +371,9 @@ def convert_canonical_rollout_to_lerobot(
|
| 420 |
+
action_labels=action_labels,
|
| 421 |
+
fps=fps,
|
| 422 |
+
reward_field=reward_field,
|
| 423 |
+
- obs_stride=obs_stride,
|
| 424 |
+
+ action_carrier=action_carrier,
|
| 425 |
+
+ active_action_dim=active_action_dim,
|
| 426 |
+
+ state_dim=state_dim,
|
| 427 |
+
density_weighting=True,
|
| 428 |
+
)
|
| 429 |
+
val_manifest = _convert_split(
|
| 430 |
+
@@ -313,7 +383,9 @@ def convert_canonical_rollout_to_lerobot(
|
| 431 |
+
action_labels=action_labels,
|
| 432 |
+
fps=fps,
|
| 433 |
+
reward_field=reward_field,
|
| 434 |
+
- obs_stride=obs_stride,
|
| 435 |
+
+ action_carrier=action_carrier,
|
| 436 |
+
+ active_action_dim=active_action_dim,
|
| 437 |
+
+ state_dim=state_dim,
|
| 438 |
+
density_weighting=False,
|
| 439 |
+
)
|
| 440 |
+
manifest = {
|
| 441 |
+
@@ -321,9 +393,13 @@ def convert_canonical_rollout_to_lerobot(
|
| 442 |
+
"format": "starvla_lerobot_v2_image_parquet",
|
| 443 |
+
"source": str(raw_export_dir),
|
| 444 |
+
"action_layout": str(metadata["action_layout"]),
|
| 445 |
+
+ "action_carrier": action_carrier,
|
| 446 |
+
"action_labels": action_labels,
|
| 447 |
+
"action_dim": len(action_labels),
|
| 448 |
+
- "active_action_dim": len(action_spec.labels),
|
| 449 |
+
+ "active_action_dim": active_action_dim
|
| 450 |
+
+ if action_carrier == "bridge"
|
| 451 |
+
+ else len(action_spec.labels),
|
| 452 |
+
+ "state_dim": state_dim,
|
| 453 |
+
"validation_dataset_name": val_output_dir.name,
|
| 454 |
+
"validation_episodes": val_manifest["episodes"],
|
| 455 |
+
"validation_frames": val_manifest["frames"],
|
| 456 |
+
diff --git a/latency_bench/data/hf_parquet.py b/latency_bench/data/hf_parquet.py
|
| 457 |
+
index 7a26426..6163c0d 100644
|
| 458 |
+
--- a/latency_bench/data/hf_parquet.py
|
| 459 |
+
+++ b/latency_bench/data/hf_parquet.py
|
| 460 |
+
@@ -205,7 +205,9 @@ def completed_episode_indices_from_shards(output_dir: Path) -> set[int]:
|
| 461 |
+
with shard_path.open("r", encoding="utf-8") as handle:
|
| 462 |
+
for line in handle:
|
| 463 |
+
if line.strip():
|
| 464 |
+
- completed_episode_indices.add(int(json.loads(line)["episode_idx"]))
|
| 465 |
+
+ row = json.loads(line)
|
| 466 |
+
+ row["trajectory_idx"]
|
| 467 |
+
+ completed_episode_indices.add(int(row["episode_idx"]))
|
| 468 |
+
break
|
| 469 |
+
return completed_episode_indices
|
| 470 |
+
|
| 471 |
+
diff --git a/latency_bench/data/rollout_schema.py b/latency_bench/data/rollout_schema.py
|
| 472 |
+
index 11426b9..21d2bf5 100644
|
| 473 |
+
--- a/latency_bench/data/rollout_schema.py
|
| 474 |
+
+++ b/latency_bench/data/rollout_schema.py
|
| 475 |
+
@@ -7,11 +7,12 @@ from datasets import Features, Image as HFImage, Sequence as HFSequence, Value
|
| 476 |
+
from latency_bench.data.action_layouts import ActionSpec
|
| 477 |
+
|
| 478 |
+
|
| 479 |
+
-SCHEMA_VERSION = 2
|
| 480 |
+
+SCHEMA_VERSION = 3
|
| 481 |
+
CANONICAL_ROW_FIELDS = (
|
| 482 |
+
"image",
|
| 483 |
+
"env_name",
|
| 484 |
+
"episode_idx",
|
| 485 |
+
+ "trajectory_idx",
|
| 486 |
+
"decision_step",
|
| 487 |
+
"split",
|
| 488 |
+
"seed",
|
| 489 |
+
@@ -26,6 +27,7 @@ def _rollout_feature_map(action_spec: ActionSpec) -> dict[str, Any]:
|
| 490 |
+
"image": HFImage(),
|
| 491 |
+
"env_name": Value("string"),
|
| 492 |
+
"episode_idx": Value("int64"),
|
| 493 |
+
+ "trajectory_idx": Value("int64"),
|
| 494 |
+
"decision_step": Value("int64"),
|
| 495 |
+
"split": Value("string"),
|
| 496 |
+
"seed": Value("int64"),
|
| 497 |
+
diff --git a/latency_bench/data/sf_teacher_rollout.py b/latency_bench/data/sf_teacher_rollout.py
|
| 498 |
+
index af2b64f..bbbd157 100644
|
| 499 |
+
--- a/latency_bench/data/sf_teacher_rollout.py
|
| 500 |
+
+++ b/latency_bench/data/sf_teacher_rollout.py
|
| 501 |
+
@@ -355,6 +355,7 @@ def _write_filtered_episode_images(
|
| 502 |
+
image_writer: RolloutImageWriter,
|
| 503 |
+
rows: list[dict[str, Any]],
|
| 504 |
+
frames_by_decision_step: Mapping[int, np.ndarray],
|
| 505 |
+
+ trajectory_by_decision_step: Mapping[int, int],
|
| 506 |
+
*,
|
| 507 |
+
context_window: int,
|
| 508 |
+
) -> list[dict[str, Any]]:
|
| 509 |
+
@@ -364,6 +365,7 @@ def _write_filtered_episode_images(
|
| 510 |
+
image_writer: Image writer shared by the rollout run.
|
| 511 |
+
rows: Final rows selected for materialization.
|
| 512 |
+
frames_by_decision_step: Captured frames keyed by decision step.
|
| 513 |
+
+ trajectory_by_decision_step: Trajectory index keyed by decision step.
|
| 514 |
+
context_window: Total image window length including the current ``image`` field.
|
| 515 |
+
|
| 516 |
+
Returns:
|
| 517 |
+
@@ -371,10 +373,15 @@ def _write_filtered_episode_images(
|
| 518 |
+
"""
|
| 519 |
+
if not rows:
|
| 520 |
+
return []
|
| 521 |
+
- available_decision_steps = sorted(frames_by_decision_step)
|
| 522 |
+
required_steps: set[int] = set()
|
| 523 |
+
for row in rows:
|
| 524 |
+
decision_step = int(row["decision_step"])
|
| 525 |
+
+ trajectory_idx = int(row["trajectory_idx"])
|
| 526 |
+
+ available_decision_steps = sorted(
|
| 527 |
+
+ step
|
| 528 |
+
+ for step, step_trajectory_idx in trajectory_by_decision_step.items()
|
| 529 |
+
+ if step_trajectory_idx == trajectory_idx
|
| 530 |
+
+ )
|
| 531 |
+
required_steps.add(decision_step)
|
| 532 |
+
if int(context_window) > 1:
|
| 533 |
+
required_steps.update(
|
| 534 |
+
@@ -396,6 +403,12 @@ def _write_filtered_episode_images(
|
| 535 |
+
for row in rows:
|
| 536 |
+
written = dict(row)
|
| 537 |
+
decision_step = int(written["decision_step"])
|
| 538 |
+
+ trajectory_idx = int(written["trajectory_idx"])
|
| 539 |
+
+ available_decision_steps = sorted(
|
| 540 |
+
+ step
|
| 541 |
+
+ for step, step_trajectory_idx in trajectory_by_decision_step.items()
|
| 542 |
+
+ if step_trajectory_idx == trajectory_idx
|
| 543 |
+
+ )
|
| 544 |
+
written["image"] = written_paths_by_step[decision_step]
|
| 545 |
+
if int(context_window) > 1:
|
| 546 |
+
written["context_images"] = [
|
| 547 |
+
@@ -804,6 +817,7 @@ def _replay_accepted_specs(
|
| 548 |
+
active_episode_rows: list[list[dict[str, Any]]] = [[] for _ in range(driver.slot_count)]
|
| 549 |
+
active_episode_frames: list[list[np.ndarray]] = [[] for _ in range(driver.slot_count)]
|
| 550 |
+
active_decision_steps = [0 for _ in range(driver.slot_count)]
|
| 551 |
+
+ active_trajectory_indices = [0 for _ in range(driver.slot_count)]
|
| 552 |
+
active_ghost_streams: list[Any | None] = [None for _ in range(driver.slot_count)]
|
| 553 |
+
rnn_states = torch.zeros([driver.slot_count, rnn_size], dtype=torch.float32, device=device)
|
| 554 |
+
image_writer = RolloutImageWriter(
|
| 555 |
+
@@ -844,6 +858,7 @@ def _replay_accepted_specs(
|
| 556 |
+
active_episode_rows[slot] = []
|
| 557 |
+
active_episode_frames[slot] = []
|
| 558 |
+
active_decision_steps[slot] = 0
|
| 559 |
+
+ active_trajectory_indices[slot] = 0
|
| 560 |
+
rnn_states[slot].zero_()
|
| 561 |
+
|
| 562 |
+
with tqdm(total=len(specs_to_replay), initial=0, unit="episode") as progress:
|
| 563 |
+
@@ -881,21 +896,21 @@ def _replay_accepted_specs(
|
| 564 |
+
next_decision_step=next_decision_step,
|
| 565 |
+
max_steps_per_episode=int(max_steps_per_episode),
|
| 566 |
+
)
|
| 567 |
+
- if not life_loss_boundary:
|
| 568 |
+
- active_episode_frames[slot].append(np.array(image_frame, copy=True))
|
| 569 |
+
- row = teacher_dataset_row(
|
| 570 |
+
- env_name=env_name,
|
| 571 |
+
- spec=spec,
|
| 572 |
+
- decision_step=decision_step,
|
| 573 |
+
- image=str(image_path),
|
| 574 |
+
- raw_action=raw_actions[batch_idx],
|
| 575 |
+
- info=step_result.info,
|
| 576 |
+
- reward=step_result.reward,
|
| 577 |
+
- env_fps=env_fps,
|
| 578 |
+
- obs_fps=obs_fps,
|
| 579 |
+
- image_transform=image_transform_config.normalized_transform(),
|
| 580 |
+
- )
|
| 581 |
+
- active_episode_rows[slot].append(row)
|
| 582 |
+
+ active_episode_frames[slot].append(np.array(image_frame, copy=True))
|
| 583 |
+
+ row = teacher_dataset_row(
|
| 584 |
+
+ env_name=env_name,
|
| 585 |
+
+ spec=spec,
|
| 586 |
+
+ trajectory_idx=active_trajectory_indices[slot],
|
| 587 |
+
+ decision_step=decision_step,
|
| 588 |
+
+ image=str(image_path),
|
| 589 |
+
+ raw_action=raw_actions[batch_idx],
|
| 590 |
+
+ info=step_result.info,
|
| 591 |
+
+ reward=step_result.reward,
|
| 592 |
+
+ env_fps=env_fps,
|
| 593 |
+
+ obs_fps=obs_fps,
|
| 594 |
+
+ image_transform=image_transform_config.normalized_transform(),
|
| 595 |
+
+ )
|
| 596 |
+
+ active_episode_rows[slot].append(row)
|
| 597 |
+
rnn_states[slot] = new_rnn_states[batch_idx]
|
| 598 |
+
if episode_done:
|
| 599 |
+
final_rows = _finalize_attempt_rows(
|
| 600 |
+
@@ -931,6 +946,10 @@ def _replay_accepted_specs(
|
| 601 |
+
image_writer,
|
| 602 |
+
shard_rows,
|
| 603 |
+
frames_by_decision_step,
|
| 604 |
+
+ {
|
| 605 |
+
+ int(row["decision_step"]): int(row["trajectory_idx"])
|
| 606 |
+
+ for row in final_rows
|
| 607 |
+
+ },
|
| 608 |
+
context_window=int(context_window),
|
| 609 |
+
)
|
| 610 |
+
write_episode_row_shard(output_dir, shard_rows)
|
| 611 |
+
@@ -943,12 +962,14 @@ def _replay_accepted_specs(
|
| 612 |
+
active_episode_rows[slot] = []
|
| 613 |
+
active_episode_frames[slot] = []
|
| 614 |
+
active_decision_steps[slot] = 0
|
| 615 |
+
+ active_trajectory_indices[slot] = 0
|
| 616 |
+
if _is_demon_ghost_trail:
|
| 617 |
+
active_ghost_streams[slot] = None
|
| 618 |
+
rnn_states[slot].zero_()
|
| 619 |
+
else:
|
| 620 |
+
if life_loss_boundary:
|
| 621 |
+
active_obs[slot], reset_info = driver.continue_after_life_loss(slot)
|
| 622 |
+
+ active_trajectory_indices[slot] += 1
|
| 623 |
+
if _is_demon_ghost_trail:
|
| 624 |
+
active_ghost_streams[slot].clear()
|
| 625 |
+
active_image_frames[slot] = frame_from_env_raw_rgb_info(reset_info).copy()
|
| 626 |
+
@@ -981,6 +1002,7 @@ def _replay_accepted_specs(
|
| 627 |
+
active_episode_rows[slot] = []
|
| 628 |
+
active_episode_frames[slot] = []
|
| 629 |
+
active_decision_steps[slot] = 0
|
| 630 |
+
+ active_trajectory_indices[slot] = 0
|
| 631 |
+
rnn_states[slot].zero_()
|
| 632 |
+
else:
|
| 633 |
+
if isinstance(driver, BatchedTeacherRolloutDriver):
|
| 634 |
+
diff --git a/latency_bench/data/sf_teacher_rows.py b/latency_bench/data/sf_teacher_rows.py
|
| 635 |
+
index efa6f3e..4e7ce9a 100644
|
| 636 |
+
--- a/latency_bench/data/sf_teacher_rows.py
|
| 637 |
+
+++ b/latency_bench/data/sf_teacher_rows.py
|
| 638 |
+
@@ -14,6 +14,7 @@ def teacher_dataset_row(
|
| 639 |
+
*,
|
| 640 |
+
env_name: str,
|
| 641 |
+
spec: Mapping[str, Any],
|
| 642 |
+
+ trajectory_idx: int,
|
| 643 |
+
decision_step: int,
|
| 644 |
+
image: str,
|
| 645 |
+
raw_action: Any,
|
| 646 |
+
@@ -28,6 +29,7 @@ def teacher_dataset_row(
|
| 647 |
+
Args:
|
| 648 |
+
env_name: Canonical benchmark environment name.
|
| 649 |
+
spec: Episode spec containing index, split, and seed.
|
| 650 |
+
+ trajectory_idx: Zero-based trajectory index within the full-game episode.
|
| 651 |
+
decision_step: Zero-based policy decision step within the episode.
|
| 652 |
+
image: Path to the saved pre-step image.
|
| 653 |
+
raw_action: Raw teacher action for this decision.
|
| 654 |
+
@@ -48,6 +50,7 @@ def teacher_dataset_row(
|
| 655 |
+
"image": image,
|
| 656 |
+
"env_name": str(env_name),
|
| 657 |
+
"episode_idx": int(spec["episode_idx"]),
|
| 658 |
+
+ "trajectory_idx": int(trajectory_idx),
|
| 659 |
+
"decision_step": int(decision_step),
|
| 660 |
+
"split": str(spec["split"]),
|
| 661 |
+
"seed": int(spec["seed"]),
|
| 662 |
+
diff --git a/scripts/experiment_runner/run_manifest_jobs.py b/scripts/experiment_runner/run_manifest_jobs.py
|
| 663 |
+
index e2d1b5e..3ba106a 100644
|
| 664 |
+
--- a/scripts/experiment_runner/run_manifest_jobs.py
|
| 665 |
+
+++ b/scripts/experiment_runner/run_manifest_jobs.py
|
| 666 |
+
@@ -73,11 +73,6 @@ def _event_writer(event_log: Path) -> Callable[[dict[str, Any]], None]:
|
| 667 |
+
return write
|
| 668 |
+
|
| 669 |
+
|
| 670 |
+
-def _register_process(process: subprocess.Popen) -> None:
|
| 671 |
+
- with _ACTIVE_PROCESSES_LOCK:
|
| 672 |
+
- _ACTIVE_PROCESSES.add(process)
|
| 673 |
+
-
|
| 674 |
+
-
|
| 675 |
+
def _forget_process(process: subprocess.Popen) -> None:
|
| 676 |
+
with _ACTIVE_PROCESSES_LOCK:
|
| 677 |
+
_ACTIVE_PROCESSES.discard(process)
|
| 678 |
+
@@ -89,11 +84,10 @@ def _active_processes() -> list[subprocess.Popen]:
|
| 679 |
+
|
| 680 |
+
|
| 681 |
+
def _signal_process_group(process: subprocess.Popen, sig: int) -> None:
|
| 682 |
+
- if process.poll() is None:
|
| 683 |
+
- try:
|
| 684 |
+
- os.killpg(process.pid, sig)
|
| 685 |
+
- except ProcessLookupError:
|
| 686 |
+
- pass
|
| 687 |
+
+ try:
|
| 688 |
+
+ os.killpg(process.pid, sig)
|
| 689 |
+
+ except ProcessLookupError:
|
| 690 |
+
+ pass
|
| 691 |
+
|
| 692 |
+
|
| 693 |
+
def _terminate_active_processes(sig: int = signal.SIGTERM) -> None:
|
| 694 |
+
@@ -118,15 +112,24 @@ def _terminate_active_processes(sig: int = signal.SIGTERM) -> None:
|
| 695 |
+
pass
|
| 696 |
+
|
| 697 |
+
|
| 698 |
+
-def _run_command(command: str, *, gpu: str) -> None:
|
| 699 |
+
+def _run_command(
|
| 700 |
+
+ command: str,
|
| 701 |
+
+ *,
|
| 702 |
+
+ gpu: str,
|
| 703 |
+
+ cancel_event: threading.Event | None = None,
|
| 704 |
+
+) -> bool:
|
| 705 |
+
env = os.environ.copy()
|
| 706 |
+
env["CUDA_VISIBLE_DEVICES"] = str(gpu)
|
| 707 |
+
- process = subprocess.Popen(command, shell=True, env=env, start_new_session=True)
|
| 708 |
+
- _register_process(process)
|
| 709 |
+
+ with _ACTIVE_PROCESSES_LOCK:
|
| 710 |
+
+ if cancel_event is not None and cancel_event.is_set():
|
| 711 |
+
+ return False
|
| 712 |
+
+ process = subprocess.Popen(command, shell=True, env=env, start_new_session=True)
|
| 713 |
+
+ _ACTIVE_PROCESSES.add(process)
|
| 714 |
+
try:
|
| 715 |
+
returncode = process.wait()
|
| 716 |
+
if returncode != 0:
|
| 717 |
+
raise subprocess.CalledProcessError(returncode, command)
|
| 718 |
+
+ return True
|
| 719 |
+
finally:
|
| 720 |
+
_forget_process(process)
|
| 721 |
+
|
| 722 |
+
@@ -201,9 +204,9 @@ def _resume_stage(job: dict[str, str], states: dict[str, str]) -> str:
|
| 723 |
+
stage = states.get(str(job["job_id"]), "")
|
| 724 |
+
if stage in {"job_complete", "upload_skipped", "upload_succeeded"}:
|
| 725 |
+
return "complete"
|
| 726 |
+
- if stage in {"eval_succeeded", "upload_failed"}:
|
| 727 |
+
+ if stage in {"eval_succeeded", "upload_started", "upload_failed"}:
|
| 728 |
+
return "upload"
|
| 729 |
+
- if stage == "train_succeeded":
|
| 730 |
+
+ if stage in {"train_succeeded", "eval_started"}:
|
| 731 |
+
return "eval"
|
| 732 |
+
if stage == "eval_failed":
|
| 733 |
+
# Training already succeeded before eval ran; re-eval from the checkpoint
|
| 734 |
+
@@ -223,16 +226,6 @@ def run_jobs(
|
| 735 |
+
dry_run: bool = False,
|
| 736 |
+
uploader: Callable[[dict[str, str]], None] | None = None,
|
| 737 |
+
) -> int:
|
| 738 |
+
- previous_sigint = signal.getsignal(signal.SIGINT)
|
| 739 |
+
- previous_sigterm = signal.getsignal(signal.SIGTERM)
|
| 740 |
+
-
|
| 741 |
+
- def stop_active_processes(signum, frame):
|
| 742 |
+
- del frame
|
| 743 |
+
- _terminate_active_processes(signal.SIGTERM)
|
| 744 |
+
- raise KeyboardInterrupt(signum)
|
| 745 |
+
-
|
| 746 |
+
- signal.signal(signal.SIGINT, stop_active_processes)
|
| 747 |
+
- signal.signal(signal.SIGTERM, stop_active_processes)
|
| 748 |
+
manifest_file = Path(manifest_path).expanduser().resolve()
|
| 749 |
+
event_log = event_log_path_for_manifest(manifest_file)
|
| 750 |
+
write_event = _event_writer(event_log)
|
| 751 |
+
@@ -253,12 +246,16 @@ def run_jobs(
|
| 752 |
+
jobs = [
|
| 753 |
+
row
|
| 754 |
+
for row in rows
|
| 755 |
+
- if states.get(row["job_id"], "") in {"eval_succeeded", "upload_failed"}
|
| 756 |
+
+ if states.get(row["job_id"], "")
|
| 757 |
+
+ in {"eval_succeeded", "upload_started", "upload_failed"}
|
| 758 |
+
]
|
| 759 |
+
job_queue: queue.Queue[dict[str, str] | None] = queue.Queue()
|
| 760 |
+
upload_queue: queue.Queue[UploadTask | None] = queue.Queue()
|
| 761 |
+
failures: list[tuple[str, str]] = []
|
| 762 |
+
failure_lock = threading.Lock()
|
| 763 |
+
+ cancel_event = threading.Event()
|
| 764 |
+
+ signal_event = threading.Event()
|
| 765 |
+
+ cleanup_started = False
|
| 766 |
+
uploader_fn = _default_uploader if uploader is None else uploader
|
| 767 |
+
|
| 768 |
+
if stage != "upload":
|
| 769 |
+
@@ -280,28 +277,49 @@ def run_jobs(
|
| 770 |
+
if job is None:
|
| 771 |
+
job_queue.task_done()
|
| 772 |
+
break
|
| 773 |
+
+ if cancel_event.is_set():
|
| 774 |
+
+ job_queue.task_done()
|
| 775 |
+
+ continue
|
| 776 |
+
next_stage = _resume_stage(job, states) if stage == "all" else stage
|
| 777 |
+
job_id = str(job["job_id"])
|
| 778 |
+
try:
|
| 779 |
+
if next_stage == "train":
|
| 780 |
+
+ if cancel_event.is_set():
|
| 781 |
+
+ continue
|
| 782 |
+
if dry_run:
|
| 783 |
+
print(f"[dry-run] CUDA_VISIBLE_DEVICES={gpu} {job['train_command']}", flush=True)
|
| 784 |
+
else:
|
| 785 |
+
write_event({"job_id": job_id, "stage": "train_started", "gpu": gpu, "ts": _now()})
|
| 786 |
+
- _run_command(str(job["train_command"]), gpu=gpu)
|
| 787 |
+
+ started = _run_command(
|
| 788 |
+
+ str(job["train_command"]),
|
| 789 |
+
+ gpu=gpu,
|
| 790 |
+
+ cancel_event=cancel_event,
|
| 791 |
+
+ )
|
| 792 |
+
+ if not started or cancel_event.is_set():
|
| 793 |
+
+ continue
|
| 794 |
+
write_event({"job_id": job_id, "stage": "train_succeeded", "gpu": gpu, "ts": _now()})
|
| 795 |
+
next_stage = "eval" if stage == "all" else "complete"
|
| 796 |
+
if next_stage == "eval":
|
| 797 |
+
+ if cancel_event.is_set():
|
| 798 |
+
+ continue
|
| 799 |
+
if dry_run:
|
| 800 |
+
print(f"[dry-run] CUDA_VISIBLE_DEVICES={gpu} {job['eval_command']}", flush=True)
|
| 801 |
+
else:
|
| 802 |
+
write_event({"job_id": job_id, "stage": "eval_started", "gpu": gpu, "ts": _now()})
|
| 803 |
+
- _run_command(str(job["eval_command"]), gpu=gpu)
|
| 804 |
+
+ started = _run_command(
|
| 805 |
+
+ str(job["eval_command"]),
|
| 806 |
+
+ gpu=gpu,
|
| 807 |
+
+ cancel_event=cancel_event,
|
| 808 |
+
+ )
|
| 809 |
+
+ if not started or cancel_event.is_set():
|
| 810 |
+
+ continue
|
| 811 |
+
write_event({"job_id": job_id, "stage": "eval_succeeded", "gpu": gpu, "ts": _now()})
|
| 812 |
+
next_stage = "upload" if stage == "all" else "complete"
|
| 813 |
+
- if next_stage == "upload":
|
| 814 |
+
+ if next_stage == "upload" and not cancel_event.is_set():
|
| 815 |
+
upload_queue.put(UploadTask(job))
|
| 816 |
+
except subprocess.CalledProcessError:
|
| 817 |
+
+ if cancel_event.is_set():
|
| 818 |
+
+ continue
|
| 819 |
+
failed_stage = "train_failed" if next_stage == "train" else "eval_failed"
|
| 820 |
+
write_event({"job_id": job_id, "stage": failed_stage, "gpu": gpu, "ts": _now()})
|
| 821 |
+
record_failure(job_id, failed_stage)
|
| 822 |
+
@@ -311,48 +329,52 @@ def run_jobs(
|
| 823 |
+
def upload_worker() -> None:
|
| 824 |
+
while True:
|
| 825 |
+
task = upload_queue.get()
|
| 826 |
+
- if task is None:
|
| 827 |
+
- upload_queue.task_done()
|
| 828 |
+
- break
|
| 829 |
+
- job = task.job
|
| 830 |
+
- job_id = str(job["job_id"])
|
| 831 |
+
- train_repo_id = str(job["train_upload_repo_id"])
|
| 832 |
+
- eval_repo_id = str(job["eval_upload_repo_id"])
|
| 833 |
+
- if dry_run:
|
| 834 |
+
- targets = [repo_id for repo_id in (eval_repo_id, train_repo_id) if repo_id]
|
| 835 |
+
- print(f"[dry-run] upload {job_id}: {', '.join(targets) or 'no upload target'}", flush=True)
|
| 836 |
+
- upload_queue.task_done()
|
| 837 |
+
- continue
|
| 838 |
+
- if not train_repo_id and not eval_repo_id:
|
| 839 |
+
- write_event({"job_id": job_id, "stage": "upload_skipped", "ts": _now()})
|
| 840 |
+
- write_event({"job_id": job_id, "stage": "job_complete", "ts": _now()})
|
| 841 |
+
- upload_queue.task_done()
|
| 842 |
+
- continue
|
| 843 |
+
- attempt = 0
|
| 844 |
+
- success = False
|
| 845 |
+
- while attempt < max_upload_attempts and not success:
|
| 846 |
+
- attempt += 1
|
| 847 |
+
- write_event({"job_id": job_id, "stage": "upload_started", "attempt": attempt, "ts": _now()})
|
| 848 |
+
- try:
|
| 849 |
+
- if not dry_run:
|
| 850 |
+
- uploader_fn(job)
|
| 851 |
+
- write_event({"job_id": job_id, "stage": "upload_succeeded", "attempt": attempt, "ts": _now()})
|
| 852 |
+
+ try:
|
| 853 |
+
+ if task is None:
|
| 854 |
+
+ break
|
| 855 |
+
+ if cancel_event.is_set():
|
| 856 |
+
+ continue
|
| 857 |
+
+ job = task.job
|
| 858 |
+
+ job_id = str(job["job_id"])
|
| 859 |
+
+ train_repo_id = str(job["train_upload_repo_id"])
|
| 860 |
+
+ eval_repo_id = str(job["eval_upload_repo_id"])
|
| 861 |
+
+ if dry_run:
|
| 862 |
+
+ targets = [repo_id for repo_id in (eval_repo_id, train_repo_id) if repo_id]
|
| 863 |
+
+ print(f"[dry-run] upload {job_id}: {', '.join(targets) or 'no upload target'}", flush=True)
|
| 864 |
+
+ continue
|
| 865 |
+
+ if not train_repo_id and not eval_repo_id:
|
| 866 |
+
+ write_event({"job_id": job_id, "stage": "upload_skipped", "ts": _now()})
|
| 867 |
+
write_event({"job_id": job_id, "stage": "job_complete", "ts": _now()})
|
| 868 |
+
- success = True
|
| 869 |
+
- except Exception as error:
|
| 870 |
+
- write_event(
|
| 871 |
+
- {
|
| 872 |
+
- "job_id": job_id,
|
| 873 |
+
- "stage": "upload_failed",
|
| 874 |
+
- "attempt": attempt,
|
| 875 |
+
- "error": repr(error),
|
| 876 |
+
- "ts": _now(),
|
| 877 |
+
- }
|
| 878 |
+
- )
|
| 879 |
+
- print(f"upload failed for {job_id} (attempt {attempt}): {error!r}", file=sys.stderr)
|
| 880 |
+
- if not success:
|
| 881 |
+
- record_failure(job_id, "upload_failed")
|
| 882 |
+
- upload_queue.task_done()
|
| 883 |
+
+ continue
|
| 884 |
+
+ attempt = 0
|
| 885 |
+
+ success = False
|
| 886 |
+
+ while attempt < max_upload_attempts and not success and not cancel_event.is_set():
|
| 887 |
+
+ attempt += 1
|
| 888 |
+
+ write_event({"job_id": job_id, "stage": "upload_started", "attempt": attempt, "ts": _now()})
|
| 889 |
+
+ try:
|
| 890 |
+
+ uploader_fn(job)
|
| 891 |
+
+ if cancel_event.is_set():
|
| 892 |
+
+ continue
|
| 893 |
+
+ write_event({"job_id": job_id, "stage": "upload_succeeded", "attempt": attempt, "ts": _now()})
|
| 894 |
+
+ write_event({"job_id": job_id, "stage": "job_complete", "ts": _now()})
|
| 895 |
+
+ success = True
|
| 896 |
+
+ except Exception as error:
|
| 897 |
+
+ if cancel_event.is_set():
|
| 898 |
+
+ continue
|
| 899 |
+
+ write_event(
|
| 900 |
+
+ {
|
| 901 |
+
+ "job_id": job_id,
|
| 902 |
+
+ "stage": "upload_failed",
|
| 903 |
+
+ "attempt": attempt,
|
| 904 |
+
+ "error": repr(error),
|
| 905 |
+
+ "ts": _now(),
|
| 906 |
+
+ }
|
| 907 |
+
+ )
|
| 908 |
+
+ print(f"upload failed for {job_id} (attempt {attempt}): {error!r}", file=sys.stderr)
|
| 909 |
+
+ if not success and not cancel_event.is_set():
|
| 910 |
+
+ record_failure(job_id, "upload_failed")
|
| 911 |
+
+ finally:
|
| 912 |
+
+ upload_queue.task_done()
|
| 913 |
+
|
| 914 |
+
upload_threads = [
|
| 915 |
+
threading.Thread(target=upload_worker, name=f"upload-{idx}", daemon=True)
|
| 916 |
+
@@ -362,17 +384,44 @@ def run_jobs(
|
| 917 |
+
threading.Thread(target=train_worker, args=(gpu,), name=f"train-{gpu}", daemon=True)
|
| 918 |
+
for gpu in gpus if stage != "upload"
|
| 919 |
+
]
|
| 920 |
+
+ previous_sigint = signal.getsignal(signal.SIGINT)
|
| 921 |
+
+ previous_sigterm = signal.getsignal(signal.SIGTERM)
|
| 922 |
+
+
|
| 923 |
+
+ def stop_active_processes(signum, frame):
|
| 924 |
+
+ nonlocal cleanup_started
|
| 925 |
+
+ del frame
|
| 926 |
+
+ if signal_event.is_set():
|
| 927 |
+
+ return
|
| 928 |
+
+ signal_event.set()
|
| 929 |
+
+ cancel_event.set()
|
| 930 |
+
+ if cleanup_started:
|
| 931 |
+
+ return
|
| 932 |
+
+ raise KeyboardInterrupt(signum)
|
| 933 |
+
+
|
| 934 |
+
+ signal.signal(signal.SIGINT, stop_active_processes)
|
| 935 |
+
+ signal.signal(signal.SIGTERM, stop_active_processes)
|
| 936 |
+
try:
|
| 937 |
+
for thread in upload_threads + train_threads:
|
| 938 |
+
thread.start()
|
| 939 |
+
job_queue.join()
|
| 940 |
+
- for _ in upload_threads:
|
| 941 |
+
- upload_queue.put(None)
|
| 942 |
+
upload_queue.join()
|
| 943 |
+
- for thread in train_threads + upload_threads:
|
| 944 |
+
- thread.join()
|
| 945 |
+
return 1 if failures else 0
|
| 946 |
+
finally:
|
| 947 |
+
+ cleanup_started = True
|
| 948 |
+
+ cancel_event.set()
|
| 949 |
+
+ _terminate_active_processes(signal.SIGTERM)
|
| 950 |
+
+ for thread in train_threads:
|
| 951 |
+
+ thread.join()
|
| 952 |
+
+ _terminate_active_processes(signal.SIGTERM)
|
| 953 |
+
+ if signal_event.is_set():
|
| 954 |
+
+ for _ in upload_threads:
|
| 955 |
+
+ upload_queue.put(None)
|
| 956 |
+
+ else:
|
| 957 |
+
+ upload_queue.join()
|
| 958 |
+
+ for _ in upload_threads:
|
| 959 |
+
+ upload_queue.put(None)
|
| 960 |
+
+ for thread in upload_threads:
|
| 961 |
+
+ thread.join()
|
| 962 |
+
_terminate_active_processes(signal.SIGTERM)
|
| 963 |
+
signal.signal(signal.SIGINT, previous_sigint)
|
| 964 |
+
signal.signal(signal.SIGTERM, previous_sigterm)
|
| 965 |
+
diff --git a/scripts/rollout_data/prepare_starvla_lerobot_dataset.py b/scripts/rollout_data/prepare_starvla_lerobot_dataset.py
|
| 966 |
+
index e202657..2521899 100644
|
| 967 |
+
--- a/scripts/rollout_data/prepare_starvla_lerobot_dataset.py
|
| 968 |
+
+++ b/scripts/rollout_data/prepare_starvla_lerobot_dataset.py
|
| 969 |
+
@@ -26,6 +26,7 @@ def convert_raw_export_to_lerobot(
|
| 970 |
+
raw_export_dir: Path,
|
| 971 |
+
lerobot_root: Path,
|
| 972 |
+
data_mix: str,
|
| 973 |
+
+ action_carrier: str = "native",
|
| 974 |
+
) -> dict:
|
| 975 |
+
"""Convert a raw rollout export into a named LeRobot data mix.
|
| 976 |
+
|
| 977 |
+
@@ -33,6 +34,7 @@ def convert_raw_export_to_lerobot(
|
| 978 |
+
raw_export_dir: Canonical rollout export directory.
|
| 979 |
+
lerobot_root: Directory that will contain the LeRobot datasets.
|
| 980 |
+
data_mix: Train dataset directory name under ``lerobot_root``.
|
| 981 |
+
+ action_carrier: Target action/state carrier.
|
| 982 |
+
|
| 983 |
+
Returns:
|
| 984 |
+
Conversion manifest returned by the LeRobot adapter.
|
| 985 |
+
@@ -41,6 +43,7 @@ def convert_raw_export_to_lerobot(
|
| 986 |
+
return convert_canonical_rollout_to_lerobot(
|
| 987 |
+
raw_export_dir,
|
| 988 |
+
output_dir,
|
| 989 |
+
+ action_carrier=action_carrier,
|
| 990 |
+
force=True,
|
| 991 |
+
)
|
| 992 |
+
|
| 993 |
+
@@ -92,6 +95,7 @@ def build_parser() -> argparse.ArgumentParser:
|
| 994 |
+
parser.add_argument("raw_export_dir")
|
| 995 |
+
parser.add_argument("lerobot_root")
|
| 996 |
+
parser.add_argument("data_mix")
|
| 997 |
+
+ parser.add_argument("--action-carrier", choices=("native", "bridge"), default="native")
|
| 998 |
+
parser.add_argument("--push-to-hub", default="")
|
| 999 |
+
parser.add_argument("--private", action="store_true")
|
| 1000 |
+
return parser
|
| 1001 |
+
@@ -115,6 +119,7 @@ def main(argv: Sequence[str] | None = None) -> int:
|
| 1002 |
+
raw_export_dir=raw_export_dir,
|
| 1003 |
+
lerobot_root=lerobot_root,
|
| 1004 |
+
data_mix=data_mix,
|
| 1005 |
+
+ action_carrier=args.action_carrier,
|
| 1006 |
+
)
|
| 1007 |
+
if args.push_to_hub:
|
| 1008 |
+
push_lerobot_dataset(
|
| 1009 |
+
diff --git a/scripts/sweeps/generate_sweep_configs.py b/scripts/sweeps/generate_sweep_configs.py
|
| 1010 |
+
index 8074c79..bd5fafe 100644
|
| 1011 |
+
--- a/scripts/sweeps/generate_sweep_configs.py
|
| 1012 |
+
+++ b/scripts/sweeps/generate_sweep_configs.py
|
| 1013 |
+
@@ -116,6 +116,7 @@ ENV_KEYS_BY_NAME = {
|
| 1014 |
+
"obs_fps",
|
| 1015 |
+
"screen_size",
|
| 1016 |
+
"noop_max",
|
| 1017 |
+
+ "reset_mode",
|
| 1018 |
+
"frame_stack",
|
| 1019 |
+
"terminal_on_life_loss",
|
| 1020 |
+
"clip_reward",
|
| 1021 |
+
diff --git a/tests/data/test_rollout_dataset_schema.py b/tests/data/test_rollout_dataset_schema.py
|
| 1022 |
+
index 06a6091..55ccebf 100644
|
| 1023 |
+
--- a/tests/data/test_rollout_dataset_schema.py
|
| 1024 |
+
+++ b/tests/data/test_rollout_dataset_schema.py
|
| 1025 |
+
@@ -8,6 +8,7 @@ def test_canonical_rollout_fields_exclude_legacy_aliases():
|
| 1026 |
+
"image",
|
| 1027 |
+
"env_name",
|
| 1028 |
+
"episode_idx",
|
| 1029 |
+
+ "trajectory_idx",
|
| 1030 |
+
"decision_step",
|
| 1031 |
+
"split",
|
| 1032 |
+
"seed",
|
| 1033 |
+
@@ -36,6 +37,7 @@ def test_rollout_features_include_env_specific_action_fields():
|
| 1034 |
+
assert "action_tuple" not in deadly_features
|
| 1035 |
+
assert "action" not in deadly_features
|
| 1036 |
+
for features in (flappy_features, deadly_features):
|
| 1037 |
+
+ assert "trajectory_idx" in features
|
| 1038 |
+
assert "decision_step" in features
|
| 1039 |
+
assert "latency_raw_frames" in features
|
| 1040 |
+
assert "raw_reward" in features
|
| 1041 |
+
diff --git a/tests/data/test_rollout_hf_parquet.py b/tests/data/test_rollout_hf_parquet.py
|
| 1042 |
+
index 9fa4c48..4e56de6 100644
|
| 1043 |
+
--- a/tests/data/test_rollout_hf_parquet.py
|
| 1044 |
+
+++ b/tests/data/test_rollout_hf_parquet.py
|
| 1045 |
+
@@ -15,6 +15,7 @@ def test_hf_parquet_writes_canonical_columns_only(tmp_path):
|
| 1046 |
+
"image": str(image_path),
|
| 1047 |
+
"env_name": "flappy",
|
| 1048 |
+
"episode_idx": 0,
|
| 1049 |
+
+ "trajectory_idx": 0,
|
| 1050 |
+
"decision_step": 0,
|
| 1051 |
+
"split": "train",
|
| 1052 |
+
"seed": 11,
|
| 1053 |
+
@@ -56,6 +57,7 @@ def test_hf_parquet_shards_sort_by_decision_step(tmp_path):
|
| 1054 |
+
"image": str(image_path),
|
| 1055 |
+
"env_name": "flappy",
|
| 1056 |
+
"episode_idx": 0,
|
| 1057 |
+
+ "trajectory_idx": 0,
|
| 1058 |
+
"decision_step": decision_step,
|
| 1059 |
+
"split": "train",
|
| 1060 |
+
"seed": 11,
|
| 1061 |
+
@@ -92,6 +94,7 @@ def test_hf_parquet_embeds_context_images_when_rows_provide_them(tmp_path):
|
| 1062 |
+
"context_images": [str(path) for path in context_paths],
|
| 1063 |
+
"env_name": "flappy",
|
| 1064 |
+
"episode_idx": 0,
|
| 1065 |
+
+ "trajectory_idx": 0,
|
| 1066 |
+
"decision_step": 0,
|
| 1067 |
+
"split": "train",
|
| 1068 |
+
"seed": 11,
|
| 1069 |
+
@@ -116,3 +119,18 @@ def test_hf_parquet_embeds_context_images_when_rows_provide_them(tmp_path):
|
| 1070 |
+
assert "context_images" in table.column_names
|
| 1071 |
+
assert len(exported["context_images"]) == 3
|
| 1072 |
+
assert exported["context_images"][0]["bytes"].startswith(b"\x89PNG\r\n\x1a\n")
|
| 1073 |
+
+
|
| 1074 |
+
+
|
| 1075 |
+
+def test_completed_episode_shards_require_trajectory_identity(tmp_path):
|
| 1076 |
+
+ import json
|
| 1077 |
+
+
|
| 1078 |
+
+ import pytest
|
| 1079 |
+
+
|
| 1080 |
+
+ from latency_bench.data.hf_parquet import completed_episode_indices_from_shards
|
| 1081 |
+
+
|
| 1082 |
+
+ shard_path = tmp_path / "episode_rows" / "train" / "episode_000000.jsonl"
|
| 1083 |
+
+ shard_path.parent.mkdir(parents=True)
|
| 1084 |
+
+ shard_path.write_text(json.dumps({"episode_idx": 0}) + "\n", encoding="utf-8")
|
| 1085 |
+
+
|
| 1086 |
+
+ with pytest.raises(KeyError, match="trajectory_idx"):
|
| 1087 |
+
+ completed_episode_indices_from_shards(tmp_path)
|
| 1088 |
+
diff --git a/tests/data/test_sf_teacher_dataset_export.py b/tests/data/test_sf_teacher_dataset_export.py
|
| 1089 |
+
index 62b30a6..ba4644b 100644
|
| 1090 |
+
--- a/tests/data/test_sf_teacher_dataset_export.py
|
| 1091 |
+
+++ b/tests/data/test_sf_teacher_dataset_export.py
|
| 1092 |
+
@@ -1299,7 +1299,7 @@ def test_write_filtered_episode_images_preserves_empty_filtered_episode(tmp_path
|
| 1093 |
+
|
| 1094 |
+
image_writer = RolloutImageWriter(max_workers=0, row_buffer_size=1, export_image_size=None)
|
| 1095 |
+
|
| 1096 |
+
- rows = _write_filtered_episode_images(image_writer, [], {}, context_window=5)
|
| 1097 |
+
+ rows = _write_filtered_episode_images(image_writer, [], {}, {}, context_window=5)
|
| 1098 |
+
|
| 1099 |
+
assert rows == []
|
| 1100 |
+
|
| 1101 |
+
@@ -1314,6 +1314,7 @@ def test_write_filtered_episode_images_resets_context_after_decision_step_gap(tm
|
| 1102 |
+
{
|
| 1103 |
+
"image": str(tmp_path / "images" / "train" / "episode_000000" / f"decision_step_{step:06d}.png"),
|
| 1104 |
+
"decision_step": step,
|
| 1105 |
+
+ "trajectory_idx": 0,
|
| 1106 |
+
}
|
| 1107 |
+
for step in [0, 1, 4, 5]
|
| 1108 |
+
]
|
| 1109 |
+
@@ -1326,6 +1327,7 @@ def test_write_filtered_episode_images_resets_context_after_decision_step_gap(tm
|
| 1110 |
+
image_writer,
|
| 1111 |
+
rows,
|
| 1112 |
+
frames_by_decision_step,
|
| 1113 |
+
+ {step: 0 for step in frames_by_decision_step},
|
| 1114 |
+
context_window=4,
|
| 1115 |
+
)
|
| 1116 |
+
|
| 1117 |
+
@@ -1733,13 +1735,24 @@ def test_collect_teacher_dataset_demon_attack_exports_full_game_across_life_loss
|
| 1118 |
+
image_writer_workers=0,
|
| 1119 |
+
row_buffer_size=1,
|
| 1120 |
+
filter_preset="none",
|
| 1121 |
+
+ context_window=3,
|
| 1122 |
+
)
|
| 1123 |
+
train_rows = _read_shard_rows(output_dir, "train")
|
| 1124 |
+
state = json.loads((output_dir / "probe_state.json").read_text(encoding="utf-8"))
|
| 1125 |
+
|
| 1126 |
+
assert ScriptedDemonEnv.reset_seeds == [100, None, None, 100, None, None]
|
| 1127 |
+
- assert [row["decision_step"] for row in train_rows] == [2]
|
| 1128 |
+
- assert train_rows[0]["raw_reward"] == 30.0
|
| 1129 |
+
+ assert [row["decision_step"] for row in train_rows] == [0, 1, 2]
|
| 1130 |
+
+ assert [row["trajectory_idx"] for row in train_rows] == [0, 1, 2]
|
| 1131 |
+
+ assert [row["action_id"] for row in train_rows] == [1, 1, 1]
|
| 1132 |
+
+ assert [row["raw_reward"] for row in train_rows] == [10.0, 20.0, 30.0]
|
| 1133 |
+
+ from PIL import Image
|
| 1134 |
+
+
|
| 1135 |
+
+ context_values = [
|
| 1136 |
+
+ [np.asarray(Image.open(path))[0, 0, 0].item() for path in row["context_images"]]
|
| 1137 |
+
+ for row in train_rows
|
| 1138 |
+
+ ]
|
| 1139 |
+
+ current_values = [np.asarray(Image.open(row["image"]))[0, 0, 0].item() for row in train_rows]
|
| 1140 |
+
+ assert context_values == [[value, value] for value in current_values]
|
| 1141 |
+
assert state["accepted_specs"] == [
|
| 1142 |
+
{
|
| 1143 |
+
"attempt_idx": 0,
|
| 1144 |
+
@@ -1900,6 +1913,7 @@ def test_collect_teacher_dataset_skips_runtime_when_probe_and_shards_complete(mo
|
| 1145 |
+
"image": str(image_path),
|
| 1146 |
+
"env_name": "flappy",
|
| 1147 |
+
"episode_idx": 0,
|
| 1148 |
+
+ "trajectory_idx": 0,
|
| 1149 |
+
"decision_step": 0,
|
| 1150 |
+
"split": "train",
|
| 1151 |
+
"seed": 100,
|
| 1152 |
+
@@ -2264,6 +2278,7 @@ def test_write_parquet_splits_handles_empty_validation_rows(tmp_path):
|
| 1153 |
+
"image": str(image_path),
|
| 1154 |
+
"env_name": "flappy",
|
| 1155 |
+
"episode_idx": 0,
|
| 1156 |
+
+ "trajectory_idx": 0,
|
| 1157 |
+
"decision_step": 0,
|
| 1158 |
+
"split": "train",
|
| 1159 |
+
"seed": 11,
|
| 1160 |
+
@@ -2300,6 +2315,7 @@ def test_write_parquet_splits_embeds_image_bytes(tmp_path):
|
| 1161 |
+
"image": str(image_path),
|
| 1162 |
+
"env_name": "flappy",
|
| 1163 |
+
"episode_idx": 0,
|
| 1164 |
+
+ "trajectory_idx": 0,
|
| 1165 |
+
"decision_step": 0,
|
| 1166 |
+
"split": "train",
|
| 1167 |
+
"seed": 11,
|
| 1168 |
+
@@ -2336,6 +2352,7 @@ def test_write_parquet_splits_preserves_rows_across_large_exports(tmp_path):
|
| 1169 |
+
"image": str(image_path),
|
| 1170 |
+
"env_name": "flappy",
|
| 1171 |
+
"episode_idx": episode_idx,
|
| 1172 |
+
+ "trajectory_idx": 0,
|
| 1173 |
+
"decision_step": 0,
|
| 1174 |
+
"split": "train",
|
| 1175 |
+
"seed": 11 + episode_idx,
|
| 1176 |
+
@@ -2390,6 +2407,7 @@ def test_write_parquet_splits_from_shards_writes_train_and_val_rows(tmp_path):
|
| 1177 |
+
"image": str(image_path),
|
| 1178 |
+
"env_name": "flappy",
|
| 1179 |
+
"episode_idx": episode_idx,
|
| 1180 |
+
+ "trajectory_idx": 0,
|
| 1181 |
+
"decision_step": decision_step,
|
| 1182 |
+
"split": split,
|
| 1183 |
+
"seed": 11 + episode_idx,
|
| 1184 |
+
@@ -2432,6 +2450,7 @@ def test_write_parquet_splits_from_shards_replaces_stale_partial_file(tmp_path):
|
| 1185 |
+
"image": str(stale_image_path),
|
| 1186 |
+
"env_name": "flappy",
|
| 1187 |
+
"episode_idx": 99,
|
| 1188 |
+
+ "trajectory_idx": 0,
|
| 1189 |
+
"decision_step": 0,
|
| 1190 |
+
"split": "train",
|
| 1191 |
+
"seed": 99,
|
| 1192 |
+
@@ -2452,6 +2471,7 @@ def test_write_parquet_splits_from_shards_replaces_stale_partial_file(tmp_path):
|
| 1193 |
+
"image": str(image_path),
|
| 1194 |
+
"env_name": "flappy",
|
| 1195 |
+
"episode_idx": 0,
|
| 1196 |
+
+ "trajectory_idx": 0,
|
| 1197 |
+
"decision_step": 0,
|
| 1198 |
+
"split": "train",
|
| 1199 |
+
"seed": 11,
|
| 1200 |
+
@@ -2536,6 +2556,8 @@ def test_prepare_starvla_lerobot_dataset_converts_from_raw_export(monkeypatch, t
|
| 1201 |
+
str(raw_export),
|
| 1202 |
+
str(tmp_path / "lerobot"),
|
| 1203 |
+
"demon_attack_train",
|
| 1204 |
+
+ "--action-carrier",
|
| 1205 |
+
+ "bridge",
|
| 1206 |
+
])
|
| 1207 |
+
|
| 1208 |
+
assert result == 0
|
| 1209 |
+
@@ -2543,7 +2565,7 @@ def test_prepare_starvla_lerobot_dataset_converts_from_raw_export(monkeypatch, t
|
| 1210 |
+
(
|
| 1211 |
+
raw_export,
|
| 1212 |
+
tmp_path / "lerobot" / "demon_attack_train",
|
| 1213 |
+
- {"force": True},
|
| 1214 |
+
+ {"action_carrier": "bridge", "force": True},
|
| 1215 |
+
)
|
| 1216 |
+
]
|
| 1217 |
+
|
| 1218 |
+
diff --git a/tests/data/test_starvla_lerobot_exporter.py b/tests/data/test_starvla_lerobot_exporter.py
|
| 1219 |
+
index 64b5f47..58391c7 100644
|
| 1220 |
+
--- a/tests/data/test_starvla_lerobot_exporter.py
|
| 1221 |
+
+++ b/tests/data/test_starvla_lerobot_exporter.py
|
| 1222 |
+
@@ -3,6 +3,7 @@ from __future__ import annotations
|
| 1223 |
+
import json
|
| 1224 |
+
|
| 1225 |
+
import pyarrow.parquet as pq
|
| 1226 |
+
+import pytest
|
| 1227 |
+
|
| 1228 |
+
from helpers import save_test_image
|
| 1229 |
+
|
| 1230 |
+
@@ -20,6 +21,7 @@ def test_starvla_lerobot_exporter_reads_canonical_rollout_schema(tmp_path):
|
| 1231 |
+
"image": str(image_path),
|
| 1232 |
+
"env_name": "deadly_corridor",
|
| 1233 |
+
"episode_idx": 3,
|
| 1234 |
+
+ "trajectory_idx": 0,
|
| 1235 |
+
"decision_step": 0,
|
| 1236 |
+
"split": "train",
|
| 1237 |
+
"seed": 14,
|
| 1238 |
+
@@ -38,6 +40,7 @@ def test_starvla_lerobot_exporter_reads_canonical_rollout_schema(tmp_path):
|
| 1239 |
+
"action_layout": "deadly_corridor_joint_54",
|
| 1240 |
+
"reward_field": "raw_reward",
|
| 1241 |
+
"action_labels": list(action_spec.labels),
|
| 1242 |
+
+ "obs_fps": 8.75,
|
| 1243 |
+
}
|
| 1244 |
+
),
|
| 1245 |
+
encoding="utf-8",
|
| 1246 |
+
@@ -54,10 +57,102 @@ def test_starvla_lerobot_exporter_reads_canonical_rollout_schema(tmp_path):
|
| 1247 |
+
assert table.to_pylist()[0]["done"] is True
|
| 1248 |
+
|
| 1249 |
+
|
| 1250 |
+
-def test_starvla_lerobot_exporter_subsamples_to_obs_cadence(tmp_path):
|
| 1251 |
+
- """Adjacent LeRobot rows must be adjacent obs decisions (every obs_stride raw
|
| 1252 |
+
- frames), with contiguous frame_index, so KV-memory rollouts unroll at the eval
|
| 1253 |
+
- observation cadence rather than at every raw frame."""
|
| 1254 |
+
+@pytest.mark.parametrize(
|
| 1255 |
+
+ ("env_name", "obs_fps", "latency", "action_values", "expected_action", "active_action_dim"),
|
| 1256 |
+
+ [
|
| 1257 |
+
+ ("flappy", 30, 3, (1, [0.0, 1.0], "FLAP"), [0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0], 2),
|
| 1258 |
+
+ (
|
| 1259 |
+
+ "demon_attack",
|
| 1260 |
+
+ 15,
|
| 1261 |
+
+ 6,
|
| 1262 |
+
+ (5, [0.0, 0.0, 0.0, 0.0, 0.0, 1.0], "LEFTFIRE"),
|
| 1263 |
+
+ [0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0],
|
| 1264 |
+
+ 6,
|
| 1265 |
+
+ ),
|
| 1266 |
+
+ (
|
| 1267 |
+
+ "deadly_corridor",
|
| 1268 |
+
+ 8.75,
|
| 1269 |
+
+ 6,
|
| 1270 |
+
+ (11, None, "MOVE_FORWARD + MOVE_RIGHT + ATTACK"),
|
| 1271 |
+
+ [1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0],
|
| 1272 |
+
+ 7,
|
| 1273 |
+
+ ),
|
| 1274 |
+
+ ],
|
| 1275 |
+
+)
|
| 1276 |
+
+def test_starvla_lerobot_exporter_writes_bridge_carrier_with_raw_latency_prompt(
|
| 1277 |
+
+ tmp_path,
|
| 1278 |
+
+ env_name,
|
| 1279 |
+
+ obs_fps,
|
| 1280 |
+
+ latency,
|
| 1281 |
+
+ action_values,
|
| 1282 |
+
+ expected_action,
|
| 1283 |
+
+ active_action_dim,
|
| 1284 |
+
+):
|
| 1285 |
+
+ from latency_bench.data.action_layouts import action_spec_for_env
|
| 1286 |
+
+ from latency_bench.data.exporters.starvla_lerobot import convert_canonical_rollout_to_lerobot
|
| 1287 |
+
+ from latency_bench.data.hf_parquet import write_parquet_splits
|
| 1288 |
+
+
|
| 1289 |
+
+ image_path = tmp_path / "image.png"
|
| 1290 |
+
+ save_test_image(image_path, 9)
|
| 1291 |
+
+ raw_export = tmp_path / "raw"
|
| 1292 |
+
+ action_spec = action_spec_for_env(env_name)
|
| 1293 |
+
+ action_id, action, action_text = action_values
|
| 1294 |
+
+ row = {
|
| 1295 |
+
+ "image": str(image_path),
|
| 1296 |
+
+ "env_name": env_name,
|
| 1297 |
+
+ "episode_idx": 0,
|
| 1298 |
+
+ "trajectory_idx": 0,
|
| 1299 |
+
+ "decision_step": 0,
|
| 1300 |
+
+ "split": "train",
|
| 1301 |
+
+ "seed": 0,
|
| 1302 |
+
+ "prompt": f"The action latency is fixed at {latency} raw environment frames.",
|
| 1303 |
+
+ "latency_raw_frames": latency,
|
| 1304 |
+
+ "latency_ms": latency * 1000 / {"flappy": 30, "demon_attack": 60, "deadly_corridor": 35}[env_name],
|
| 1305 |
+
+ "raw_reward": 1.0,
|
| 1306 |
+
+ "action_id": action_id,
|
| 1307 |
+
+ "action_text": action_text,
|
| 1308 |
+
+ }
|
| 1309 |
+
+ if action is not None:
|
| 1310 |
+
+ row["action"] = action
|
| 1311 |
+
+ write_parquet_splits(raw_export, [row], [], action_spec=action_spec)
|
| 1312 |
+
+ (raw_export / "metadata.json").write_text(
|
| 1313 |
+
+ json.dumps(
|
| 1314 |
+
+ {
|
| 1315 |
+
+ "env_name": env_name,
|
| 1316 |
+
+ "action_layout": action_spec.layout,
|
| 1317 |
+
+ "reward_field": action_spec.reward_field,
|
| 1318 |
+
+ "action_labels": list(action_spec.labels),
|
| 1319 |
+
+ "obs_fps": obs_fps,
|
| 1320 |
+
+ }
|
| 1321 |
+
+ ),
|
| 1322 |
+
+ encoding="utf-8",
|
| 1323 |
+
+ )
|
| 1324 |
+
+
|
| 1325 |
+
+ manifest = convert_canonical_rollout_to_lerobot(
|
| 1326 |
+
+ raw_export,
|
| 1327 |
+
+ tmp_path / "lerobot",
|
| 1328 |
+
+ action_carrier="bridge",
|
| 1329 |
+
+ force=True,
|
| 1330 |
+
+ )
|
| 1331 |
+
+
|
| 1332 |
+
+ table = pq.read_table(tmp_path / "lerobot" / "data" / "chunk-000" / "episode_000000.parquet")
|
| 1333 |
+
+ info = json.loads((tmp_path / "lerobot" / "meta" / "info.json").read_text(encoding="utf-8"))
|
| 1334 |
+
+ task_lines = (tmp_path / "lerobot" / "meta" / "tasks.jsonl").read_text(
|
| 1335 |
+
+ encoding="utf-8"
|
| 1336 |
+
+ ).splitlines()
|
| 1337 |
+
+ tasks = [json.loads(line) for line in task_lines]
|
| 1338 |
+
+ converted_row = table.to_pylist()[0]
|
| 1339 |
+
+ assert converted_row["action"] == expected_action
|
| 1340 |
+
+ assert converted_row["observation.state"] == [0.0] * 7
|
| 1341 |
+
+ assert info["features"]["action"]["shape"] == [7]
|
| 1342 |
+
+ assert info["features"]["observation.state"]["shape"] == [7]
|
| 1343 |
+
+ assert tasks == [{"task_index": 0, "task": row["prompt"]}]
|
| 1344 |
+
+ assert manifest["action_carrier"] == "bridge"
|
| 1345 |
+
+ assert manifest["active_action_dim"] == active_action_dim
|
| 1346 |
+
+
|
| 1347 |
+
+
|
| 1348 |
+
+def test_starvla_lerobot_exporter_keeps_every_observation_decision(tmp_path):
|
| 1349 |
+
+ """Canonical rows already occur at the policy observation cadence."""
|
| 1350 |
+
from latency_bench.data.action_layouts import action_spec_for_env
|
| 1351 |
+
from latency_bench.data.exporters.starvla_lerobot import convert_canonical_rollout_to_lerobot
|
| 1352 |
+
from latency_bench.data.hf_parquet import write_parquet_splits
|
| 1353 |
+
@@ -66,12 +161,13 @@ def test_starvla_lerobot_exporter_subsamples_to_obs_cadence(tmp_path):
|
| 1354 |
+
save_test_image(image_path, 9)
|
| 1355 |
+
raw_export = tmp_path / "raw"
|
| 1356 |
+
action_spec = action_spec_for_env("deadly_corridor")
|
| 1357 |
+
- # One episode, 8 contiguous per-raw-frame decision steps; obs_stride = 4.
|
| 1358 |
+
+ # One trajectory with eight contiguous policy-decision observations.
|
| 1359 |
+
train_rows = [
|
| 1360 |
+
{
|
| 1361 |
+
"image": str(image_path),
|
| 1362 |
+
"env_name": "deadly_corridor",
|
| 1363 |
+
"episode_idx": 0,
|
| 1364 |
+
+ "trajectory_idx": 0,
|
| 1365 |
+
"decision_step": step,
|
| 1366 |
+
"split": "train",
|
| 1367 |
+
"seed": 7,
|
| 1368 |
+
@@ -92,6 +188,7 @@ def test_starvla_lerobot_exporter_subsamples_to_obs_cadence(tmp_path):
|
| 1369 |
+
"action_layout": "deadly_corridor_joint_54",
|
| 1370 |
+
"reward_field": "raw_reward",
|
| 1371 |
+
"action_labels": list(action_spec.labels),
|
| 1372 |
+
+ "obs_fps": 8.75,
|
| 1373 |
+
"obs_stride_raw_frames": 4,
|
| 1374 |
+
}
|
| 1375 |
+
),
|
| 1376 |
+
@@ -102,12 +199,73 @@ def test_starvla_lerobot_exporter_subsamples_to_obs_cadence(tmp_path):
|
| 1377 |
+
|
| 1378 |
+
table = pq.read_table(tmp_path / "lerobot" / "data" / "chunk-000" / "episode_000000.parquet")
|
| 1379 |
+
rows = table.to_pylist()
|
| 1380 |
+
- # Only decision_steps 0 and 4 survive; frame_index is contiguous obs index.
|
| 1381 |
+
- assert [r["frame_index"] for r in rows] == [0, 1]
|
| 1382 |
+
- assert [r["episode_index"] for r in rows] == [0, 0]
|
| 1383 |
+
+ assert [r["frame_index"] for r in rows] == list(range(8))
|
| 1384 |
+
+ assert [r["episode_index"] for r in rows] == [0] * 8
|
| 1385 |
+
assert rows[-1]["done"] is True
|
| 1386 |
+
|
| 1387 |
+
|
| 1388 |
+
+def test_starvla_lerobot_exporter_splits_life_trajectories(tmp_path):
|
| 1389 |
+
+ from latency_bench.data.action_layouts import action_spec_for_env
|
| 1390 |
+
+ from latency_bench.data.exporters.starvla_lerobot import convert_canonical_rollout_to_lerobot
|
| 1391 |
+
+ from latency_bench.data.hf_parquet import write_parquet_splits
|
| 1392 |
+
+
|
| 1393 |
+
+ image_path = tmp_path / "image.png"
|
| 1394 |
+
+ save_test_image(image_path, 9)
|
| 1395 |
+
+ raw_export = tmp_path / "raw"
|
| 1396 |
+
+ action_spec = action_spec_for_env("demon_attack")
|
| 1397 |
+
+ train_rows = [
|
| 1398 |
+
+ {
|
| 1399 |
+
+ "image": str(image_path),
|
| 1400 |
+
+ "env_name": "demon_attack",
|
| 1401 |
+
+ "episode_idx": 0,
|
| 1402 |
+
+ "trajectory_idx": trajectory_idx,
|
| 1403 |
+
+ "decision_step": decision_step,
|
| 1404 |
+
+ "split": "train",
|
| 1405 |
+
+ "seed": 7,
|
| 1406 |
+
+ "prompt": "pick action",
|
| 1407 |
+
+ "latency_raw_frames": 6,
|
| 1408 |
+
+ "latency_ms": 100.0,
|
| 1409 |
+
+ "raw_reward": 1.0,
|
| 1410 |
+
+ "action_id": 0,
|
| 1411 |
+
+ "action": [1.0, 0.0, 0.0, 0.0, 0.0, 0.0],
|
| 1412 |
+
+ "action_text": "NOOP",
|
| 1413 |
+
+ }
|
| 1414 |
+
+ for trajectory_idx, decision_step in ((0, 0), (0, 1), (1, 2), (1, 3))
|
| 1415 |
+
+ ]
|
| 1416 |
+
+ write_parquet_splits(raw_export, train_rows, [], action_spec=action_spec)
|
| 1417 |
+
+ (raw_export / "metadata.json").write_text(
|
| 1418 |
+
+ json.dumps(
|
| 1419 |
+
+ {
|
| 1420 |
+
+ "env_name": "demon_attack",
|
| 1421 |
+
+ "action_layout": action_spec.layout,
|
| 1422 |
+
+ "reward_field": action_spec.reward_field,
|
| 1423 |
+
+ "action_labels": list(action_spec.labels),
|
| 1424 |
+
+ "obs_fps": 15,
|
| 1425 |
+
+ }
|
| 1426 |
+
+ ),
|
| 1427 |
+
+ encoding="utf-8",
|
| 1428 |
+
+ )
|
| 1429 |
+
+
|
| 1430 |
+
+ manifest = convert_canonical_rollout_to_lerobot(
|
| 1431 |
+
+ raw_export,
|
| 1432 |
+
+ tmp_path / "lerobot",
|
| 1433 |
+
+ action_carrier="bridge",
|
| 1434 |
+
+ force=True,
|
| 1435 |
+
+ )
|
| 1436 |
+
+
|
| 1437 |
+
+ first = pq.read_table(
|
| 1438 |
+
+ tmp_path / "lerobot" / "data" / "chunk-000" / "episode_000000.parquet"
|
| 1439 |
+
+ ).to_pylist()
|
| 1440 |
+
+ second = pq.read_table(
|
| 1441 |
+
+ tmp_path / "lerobot" / "data" / "chunk-000" / "episode_000001.parquet"
|
| 1442 |
+
+ ).to_pylist()
|
| 1443 |
+
+ assert manifest["episodes"] == 2
|
| 1444 |
+
+ assert [row["frame_index"] for row in first] == [0, 1]
|
| 1445 |
+
+ assert [row["frame_index"] for row in second] == [0, 1]
|
| 1446 |
+
+ assert [row["done"] for row in first] == [False, True]
|
| 1447 |
+
+ assert [row["done"] for row in second] == [False, True]
|
| 1448 |
+
+
|
| 1449 |
+
+
|
| 1450 |
+
def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1451 |
+
from datasets import Dataset, Features, Image as HFImage, Sequence as HFSequence, Value
|
| 1452 |
+
from latency_bench.data.exporters.starvla_lerobot import convert_canonical_rollout_to_lerobot
|
| 1453 |
+
@@ -121,6 +279,7 @@ def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1454 |
+
"image": HFImage(),
|
| 1455 |
+
"env_name": Value("string"),
|
| 1456 |
+
"episode_idx": Value("int64"),
|
| 1457 |
+
+ "trajectory_idx": Value("int64"),
|
| 1458 |
+
"decision_step": Value("int64"),
|
| 1459 |
+
"split": Value("string"),
|
| 1460 |
+
"seed": Value("int64"),
|
| 1461 |
+
@@ -138,6 +297,7 @@ def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1462 |
+
"image": [str(image_path)],
|
| 1463 |
+
"env_name": ["flappy"],
|
| 1464 |
+
"episode_idx": [0],
|
| 1465 |
+
+ "trajectory_idx": [0],
|
| 1466 |
+
"decision_step": [0],
|
| 1467 |
+
"split": ["train"],
|
| 1468 |
+
"seed": [11],
|
| 1469 |
+
@@ -156,6 +316,7 @@ def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1470 |
+
"image": [str(image_path)],
|
| 1471 |
+
"env_name": ["flappy"],
|
| 1472 |
+
"episode_idx": [1],
|
| 1473 |
+
+ "trajectory_idx": [0],
|
| 1474 |
+
"decision_step": [0],
|
| 1475 |
+
"split": ["val"],
|
| 1476 |
+
"seed": [12],
|
| 1477 |
+
@@ -176,6 +337,7 @@ def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1478 |
+
"action_layout": "flappy_discrete",
|
| 1479 |
+
"reward_field": "raw_reward",
|
| 1480 |
+
"action_labels": ["NOOP", "FLAP"],
|
| 1481 |
+
+ "obs_fps": 30,
|
| 1482 |
+
}
|
| 1483 |
+
),
|
| 1484 |
+
encoding="utf-8",
|
| 1485 |
+
diff --git a/tests/scripts/test_generate_sweep_configs.py b/tests/scripts/test_generate_sweep_configs.py
|
| 1486 |
+
index 23d79cb..438b296 100644
|
| 1487 |
+
--- a/tests/scripts/test_generate_sweep_configs.py
|
| 1488 |
+
+++ b/tests/scripts/test_generate_sweep_configs.py
|
| 1489 |
+
@@ -23,6 +23,75 @@ def _read_manifest(path: Path) -> list[dict[str, str]]:
|
| 1490 |
+
return [dict(zip(header, line.split("\t"))) for line in lines[1:]]
|
| 1491 |
+
|
| 1492 |
+
|
| 1493 |
+
+@pytest.mark.parametrize(
|
| 1494 |
+
+ ("env_name", "latency_label", "latency_frames", "obs_fps", "obs_fps_label"),
|
| 1495 |
+
+ [
|
| 1496 |
+
+ ("flappy", "fixed_l3", 3, 30, "30"),
|
| 1497 |
+
+ ("demon_attack", "fixed_l6", 6, 15, "15"),
|
| 1498 |
+
+ ("deadly_corridor", "fixed_l6", 6, 8.75, "8p75"),
|
| 1499 |
+
+ ],
|
| 1500 |
+
+)
|
| 1501 |
+
+def test_memory_rollout_teacher_spec_emits_single_uploadable_job(
|
| 1502 |
+
+ tmp_path,
|
| 1503 |
+
+ env_name,
|
| 1504 |
+
+ latency_label,
|
| 1505 |
+
+ latency_frames,
|
| 1506 |
+
+ obs_fps,
|
| 1507 |
+
+ obs_fps_label,
|
| 1508 |
+
+):
|
| 1509 |
+
+ generated_root = tmp_path / "configs"
|
| 1510 |
+
+ output_root = tmp_path / "outputs"
|
| 1511 |
+
+ train_dir = tmp_path / "checkpoints"
|
| 1512 |
+
+
|
| 1513 |
+
+ generate_sweep_configs(
|
| 1514 |
+
+ [
|
| 1515 |
+
+ "--spec",
|
| 1516 |
+
+ f"configs/experiments/memory/rollout_teacher/{env_name}.yaml",
|
| 1517 |
+
+ "--generated-root",
|
| 1518 |
+
+ str(generated_root),
|
| 1519 |
+
+ "--output-root",
|
| 1520 |
+
+ str(output_root),
|
| 1521 |
+
+ "--train-dir",
|
| 1522 |
+
+ str(train_dir),
|
| 1523 |
+
+ ]
|
| 1524 |
+
+ )
|
| 1525 |
+
+
|
| 1526 |
+
+ rows = _read_manifest(generated_root / "manifest.tsv")
|
| 1527 |
+
+ assert len(rows) == 1
|
| 1528 |
+
+ row = rows[0]
|
| 1529 |
+
+ assert row["env"] == env_name
|
| 1530 |
+
+ assert row["experiment_family"] == "memory_rollout_teacher"
|
| 1531 |
+
+ assert row["sweep_name"] == "teacher"
|
| 1532 |
+
+ assert row["seed"] == "0"
|
| 1533 |
+
+ assert row["frame_stack"] == "4"
|
| 1534 |
+
+ assert row["obs_fps"] == obs_fps_label
|
| 1535 |
+
+ assert row["latency_label"] == latency_label
|
| 1536 |
+
+ assert row["latency_kind"] == "fixed"
|
| 1537 |
+
+ assert row["latency_fixed_frames"] == str(latency_frames)
|
| 1538 |
+
+ assert row["train_upload_repo_id"] == "latency-sensitive-bench/paper-experiment-models"
|
| 1539 |
+
+ assert row["train_upload_repo_type"] == "model"
|
| 1540 |
+
+ assert row["eval_upload_repo_id"] == ""
|
| 1541 |
+
+ assert row["train_artifact_repo_path"].startswith(
|
| 1542 |
+
+ f"memory/rollout_teachers/{env_name}/train/"
|
| 1543 |
+
+ )
|
| 1544 |
+
+
|
| 1545 |
+
+ train_cfg = yaml.safe_load(Path(row["train_config"]).read_text(encoding="utf-8"))
|
| 1546 |
+
+ assert train_cfg["experiment"]["seed"] == 0
|
| 1547 |
+
+ assert train_cfg["env"]["frame_stack"] == 4
|
| 1548 |
+
+ assert train_cfg["env"]["obs_fps"] == pytest.approx(obs_fps)
|
| 1549 |
+
+ if env_name == "demon_attack":
|
| 1550 |
+
+ assert train_cfg["env"]["reset_mode"] == "fire"
|
| 1551 |
+
+ assert train_cfg["latency"]["method"] == "fixed"
|
| 1552 |
+
+ assert train_cfg["latency"]["fixed_latency_ms"] == pytest.approx(
|
| 1553 |
+
+ latency_frames * 1000 / train_cfg["env"]["env_fps"]
|
| 1554 |
+
+ )
|
| 1555 |
+
+ assert train_cfg["evaluation"]["eval_suites"] == {
|
| 1556 |
+
+ "fixed": [[latency_frames]],
|
| 1557 |
+
+ "normal": [],
|
| 1558 |
+
+ "uniform": [],
|
| 1559 |
+
+ }
|
| 1560 |
+
+
|
| 1561 |
+
+
|
| 1562 |
+
def test_latency_bench_eval_config_disables_full_trace_records(tmp_path):
|
| 1563 |
+
base_config = {
|
| 1564 |
+
"backend": {
|
| 1565 |
+
diff --git a/tests/scripts/test_manifest_jobs.py b/tests/scripts/test_manifest_jobs.py
|
| 1566 |
+
index bd7bf03..74e4f73 100644
|
| 1567 |
+
--- a/tests/scripts/test_manifest_jobs.py
|
| 1568 |
+
+++ b/tests/scripts/test_manifest_jobs.py
|
| 1569 |
+
@@ -1,8 +1,10 @@
|
| 1570 |
+
from __future__ import annotations
|
| 1571 |
+
|
| 1572 |
+
+import json
|
| 1573 |
+
import os
|
| 1574 |
+
-import subprocess
|
| 1575 |
+
+import shlex
|
| 1576 |
+
import signal
|
| 1577 |
+
+import subprocess
|
| 1578 |
+
import sys
|
| 1579 |
+
import threading
|
| 1580 |
+
import time
|
| 1581 |
+
@@ -10,6 +12,7 @@ import types
|
| 1582 |
+
from pathlib import Path
|
| 1583 |
+
|
| 1584 |
+
import pytest
|
| 1585 |
+
+from helpers import REPO_ROOT
|
| 1586 |
+
|
| 1587 |
+
import scripts.experiment_runner.run_manifest_jobs as run_manifest_jobs
|
| 1588 |
+
from scripts.experiment_runner.job_manifest import (
|
| 1589 |
+
@@ -68,6 +71,26 @@ def test_train_stage_only_trains_and_resumes_from_success(tmp_path):
|
| 1590 |
+
assert [event["stage"] for event in events] == ["train_started", "train_succeeded"]
|
| 1591 |
+
|
| 1592 |
+
|
| 1593 |
+
+@pytest.mark.parametrize(
|
| 1594 |
+
+ ("recorded_stage", "expected_stage"),
|
| 1595 |
+
+ [
|
| 1596 |
+
+ ("train_started", "train"),
|
| 1597 |
+
+ ("train_succeeded", "eval"),
|
| 1598 |
+
+ ("eval_started", "eval"),
|
| 1599 |
+
+ ("eval_succeeded", "upload"),
|
| 1600 |
+
+ ("upload_started", "upload"),
|
| 1601 |
+
+ ],
|
| 1602 |
+
+)
|
| 1603 |
+
+def test_resume_stage_keeps_interrupted_job_at_its_current_pipeline_stage(
|
| 1604 |
+
+ recorded_stage,
|
| 1605 |
+
+ expected_stage,
|
| 1606 |
+
+):
|
| 1607 |
+
+ assert run_manifest_jobs._resume_stage(
|
| 1608 |
+
+ {"job_id": "job1"},
|
| 1609 |
+
+ {"job1": recorded_stage},
|
| 1610 |
+
+ ) == expected_stage
|
| 1611 |
+
+
|
| 1612 |
+
+
|
| 1613 |
+
def test_eval_stage_does_not_train_or_upload(tmp_path):
|
| 1614 |
+
manifest_path, train_mark, eval_mark = _write_single_job(tmp_path)
|
| 1615 |
+
uploads: list[str] = []
|
| 1616 |
+
@@ -134,6 +157,26 @@ def test_upload_stage_needs_no_gpu_and_retries_failed_upload(tmp_path):
|
| 1617 |
+
]
|
| 1618 |
+
|
| 1619 |
+
|
| 1620 |
+
+def test_upload_stage_resumes_interrupted_upload(tmp_path):
|
| 1621 |
+
+ manifest_path, _, _ = _write_single_job(tmp_path)
|
| 1622 |
+
+ append_event(
|
| 1623 |
+
+ event_log_path_for_manifest(manifest_path),
|
| 1624 |
+
+ {"job_id": "job1", "stage": "upload_started", "ts": 1.0},
|
| 1625 |
+
+ )
|
| 1626 |
+
+ uploads: list[str] = []
|
| 1627 |
+
+
|
| 1628 |
+
+ assert run_jobs(
|
| 1629 |
+
+ manifest_path=manifest_path,
|
| 1630 |
+
+ gpus=[],
|
| 1631 |
+
+ upload_workers=1,
|
| 1632 |
+
+ max_upload_attempts=1,
|
| 1633 |
+
+ stage="upload",
|
| 1634 |
+
+ uploader=lambda job: uploads.append(job["job_id"]),
|
| 1635 |
+
+ ) == 0
|
| 1636 |
+
+
|
| 1637 |
+
+ assert uploads == ["job1"]
|
| 1638 |
+
+
|
| 1639 |
+
+
|
| 1640 |
+
def test_dry_run_does_not_execute_or_record_success(tmp_path, capsys):
|
| 1641 |
+
manifest_path, train_mark, eval_mark = _write_single_job(tmp_path)
|
| 1642 |
+
|
| 1643 |
+
@@ -310,6 +353,186 @@ def test_run_command_cleanup_terminates_child_process_group(tmp_path):
|
| 1644 |
+
os.kill(child_pid, 0)
|
| 1645 |
+
|
| 1646 |
+
|
| 1647 |
+
+def test_sigint_cancels_queue_and_kills_all_active_process_groups(tmp_path):
|
| 1648 |
+
+ helper_path = tmp_path / "ignore_term_job.py"
|
| 1649 |
+
+ helper_path.write_text(
|
| 1650 |
+
+ """from __future__ import annotations
|
| 1651 |
+
+
|
| 1652 |
+
+import json
|
| 1653 |
+
+import os
|
| 1654 |
+
+from pathlib import Path
|
| 1655 |
+
+import signal
|
| 1656 |
+
+import subprocess
|
| 1657 |
+
+import sys
|
| 1658 |
+
+import time
|
| 1659 |
+
+
|
| 1660 |
+
+signal.signal(signal.SIGTERM, signal.SIG_IGN)
|
| 1661 |
+
+child = subprocess.Popen(
|
| 1662 |
+
+ [
|
| 1663 |
+
+ sys.executable,
|
| 1664 |
+
+ "-c",
|
| 1665 |
+
+ "import signal, time; signal.signal(signal.SIGTERM, signal.SIG_IGN); time.sleep(60)",
|
| 1666 |
+
+ ]
|
| 1667 |
+
+)
|
| 1668 |
+
+Path(sys.argv[1]).write_text(
|
| 1669 |
+
+ json.dumps(
|
| 1670 |
+
+ {
|
| 1671 |
+
+ "leader_pid": os.getpid(),
|
| 1672 |
+
+ "leader_pgid": os.getpgid(0),
|
| 1673 |
+
+ "child_pid": child.pid,
|
| 1674 |
+
+ "child_pgid": os.getpgid(child.pid),
|
| 1675 |
+
+ }
|
| 1676 |
+
+ ),
|
| 1677 |
+
+ encoding="utf-8",
|
| 1678 |
+
+)
|
| 1679 |
+
+time.sleep(60)
|
| 1680 |
+
+""",
|
| 1681 |
+
+ encoding="utf-8",
|
| 1682 |
+
+ )
|
| 1683 |
+
+ manifest_path = tmp_path / "manifest.tsv"
|
| 1684 |
+
+ markers = [tmp_path / f"job_{idx}.json" for idx in range(4)]
|
| 1685 |
+
+ rows = []
|
| 1686 |
+
+ for idx, marker in enumerate(markers):
|
| 1687 |
+
+ row = {column: "" for column in MANIFEST_V2_COLUMNS}
|
| 1688 |
+
+ row.update(
|
| 1689 |
+
+ {
|
| 1690 |
+
+ "schema_version": "v2",
|
| 1691 |
+
+ "job_id": f"job{idx}",
|
| 1692 |
+
+ "train_command": f"exec {shlex.join([sys.executable, str(helper_path), str(marker)])}",
|
| 1693 |
+
+ }
|
| 1694 |
+
+ )
|
| 1695 |
+
+ rows.append(row)
|
| 1696 |
+
+ write_manifest(manifest_path, rows)
|
| 1697 |
+
+
|
| 1698 |
+
+ runner = subprocess.Popen(
|
| 1699 |
+
+ [
|
| 1700 |
+
+ sys.executable,
|
| 1701 |
+
+ "-m",
|
| 1702 |
+
+ "scripts.experiment_runner.run_manifest_jobs",
|
| 1703 |
+
+ "--manifest",
|
| 1704 |
+
+ str(manifest_path),
|
| 1705 |
+
+ "--stage",
|
| 1706 |
+
+ "train",
|
| 1707 |
+
+ "--gpus",
|
| 1708 |
+
+ "0,1",
|
| 1709 |
+
+ ],
|
| 1710 |
+
+ cwd=REPO_ROOT,
|
| 1711 |
+
+ stdout=subprocess.PIPE,
|
| 1712 |
+
+ stderr=subprocess.PIPE,
|
| 1713 |
+
+ text=True,
|
| 1714 |
+
+ )
|
| 1715 |
+
+ process_groups: set[int] = set()
|
| 1716 |
+
+ try:
|
| 1717 |
+
+ deadline = time.time() + 10.0
|
| 1718 |
+
+ while sum(marker.is_file() for marker in markers) < 2 and time.time() < deadline:
|
| 1719 |
+
+ time.sleep(0.05)
|
| 1720 |
+
+ assert [marker.is_file() for marker in markers] == [True, True, False, False]
|
| 1721 |
+
+ for marker in markers[:2]:
|
| 1722 |
+
+ process_info = json.loads(marker.read_text(encoding="utf-8"))
|
| 1723 |
+
+ assert process_info["leader_pgid"] == process_info["child_pgid"]
|
| 1724 |
+
+ process_groups.add(int(process_info["leader_pgid"]))
|
| 1725 |
+
+
|
| 1726 |
+
+ runner.send_signal(signal.SIGINT)
|
| 1727 |
+
+ time.sleep(0.1)
|
| 1728 |
+
+ runner.send_signal(signal.SIGINT)
|
| 1729 |
+
+ stdout, stderr = runner.communicate(timeout=10.0)
|
| 1730 |
+
+ assert runner.returncode != 0, (stdout, stderr)
|
| 1731 |
+
+ assert [marker.is_file() for marker in markers] == [True, True, False, False]
|
| 1732 |
+
+
|
| 1733 |
+
+ deadline = time.time() + 5.0
|
| 1734 |
+
+ while process_groups and time.time() < deadline:
|
| 1735 |
+
+ for process_group in list(process_groups):
|
| 1736 |
+
+ try:
|
| 1737 |
+
+ os.killpg(process_group, 0)
|
| 1738 |
+
+ except ProcessLookupError:
|
| 1739 |
+
+ process_groups.remove(process_group)
|
| 1740 |
+
+ time.sleep(0.05)
|
| 1741 |
+
+ assert not process_groups
|
| 1742 |
+
+
|
| 1743 |
+
+ events = load_events(event_log_path_for_manifest(manifest_path))
|
| 1744 |
+
+ assert [event["stage"] for event in events] == ["train_started", "train_started"]
|
| 1745 |
+
+ finally:
|
| 1746 |
+
+ if runner.poll() is None:
|
| 1747 |
+
+ runner.kill()
|
| 1748 |
+
+ runner.wait()
|
| 1749 |
+
+ for process_group in process_groups:
|
| 1750 |
+
+ try:
|
| 1751 |
+
+ os.killpg(process_group, signal.SIGKILL)
|
| 1752 |
+
+ except ProcessLookupError:
|
| 1753 |
+
+ pass
|
| 1754 |
+
+
|
| 1755 |
+
+
|
| 1756 |
+
+def test_sigint_does_not_wait_for_in_flight_upload(tmp_path):
|
| 1757 |
+
+ manifest_path = tmp_path / "manifest.tsv"
|
| 1758 |
+
+ row = {column: "" for column in MANIFEST_V2_COLUMNS}
|
| 1759 |
+
+ row.update(
|
| 1760 |
+
+ {
|
| 1761 |
+
+ "schema_version": "v2",
|
| 1762 |
+
+ "job_id": "job0",
|
| 1763 |
+
+ "train_upload_repo_id": "repo-model",
|
| 1764 |
+
+ "train_upload_repo_type": "model",
|
| 1765 |
+
+ }
|
| 1766 |
+
+ )
|
| 1767 |
+
+ write_manifest(manifest_path, [row])
|
| 1768 |
+
+ append_event(
|
| 1769 |
+
+ event_log_path_for_manifest(manifest_path),
|
| 1770 |
+
+ {"job_id": "job0", "stage": "eval_succeeded"},
|
| 1771 |
+
+ )
|
| 1772 |
+
+ upload_started = tmp_path / "upload_started"
|
| 1773 |
+
+ helper_path = tmp_path / "blocking_upload_runner.py"
|
| 1774 |
+
+ helper_path.write_text(
|
| 1775 |
+
+ """from pathlib import Path
|
| 1776 |
+
+import sys
|
| 1777 |
+
+import time
|
| 1778 |
+
+
|
| 1779 |
+
+from scripts.experiment_runner.run_manifest_jobs import run_jobs
|
| 1780 |
+
+
|
| 1781 |
+
+manifest_path = Path(sys.argv[1])
|
| 1782 |
+
+upload_started = Path(sys.argv[2])
|
| 1783 |
+
+
|
| 1784 |
+
+def blocking_uploader(job):
|
| 1785 |
+
+ del job
|
| 1786 |
+
+ upload_started.write_text("started", encoding="utf-8")
|
| 1787 |
+
+ time.sleep(60)
|
| 1788 |
+
+
|
| 1789 |
+
+raise SystemExit(
|
| 1790 |
+
+ run_jobs(
|
| 1791 |
+
+ manifest_path=manifest_path,
|
| 1792 |
+
+ gpus=[],
|
| 1793 |
+
+ upload_workers=1,
|
| 1794 |
+
+ max_upload_attempts=1,
|
| 1795 |
+
+ stage="upload",
|
| 1796 |
+
+ uploader=blocking_uploader,
|
| 1797 |
+
+ )
|
| 1798 |
+
+)
|
| 1799 |
+
+""",
|
| 1800 |
+
+ encoding="utf-8",
|
| 1801 |
+
+ )
|
| 1802 |
+
+ runner = subprocess.Popen(
|
| 1803 |
+
+ [sys.executable, str(helper_path), str(manifest_path), str(upload_started)],
|
| 1804 |
+
+ cwd=REPO_ROOT,
|
| 1805 |
+
+ env={**os.environ, "PYTHONPATH": str(REPO_ROOT)},
|
| 1806 |
+
+ stdout=subprocess.PIPE,
|
| 1807 |
+
+ stderr=subprocess.PIPE,
|
| 1808 |
+
+ text=True,
|
| 1809 |
+
+ )
|
| 1810 |
+
+ try:
|
| 1811 |
+
+ deadline = time.time() + 10.0
|
| 1812 |
+
+ while not upload_started.is_file() and time.time() < deadline:
|
| 1813 |
+
+ time.sleep(0.05)
|
| 1814 |
+
+ assert upload_started.is_file()
|
| 1815 |
+
+
|
| 1816 |
+
+ started_at = time.monotonic()
|
| 1817 |
+
+ runner.send_signal(signal.SIGINT)
|
| 1818 |
+
+ stdout, stderr = runner.communicate(timeout=5.0)
|
| 1819 |
+
+ assert runner.returncode != 0, (stdout, stderr)
|
| 1820 |
+
+ assert time.monotonic() - started_at < 3.0
|
| 1821 |
+
+ finally:
|
| 1822 |
+
+ if runner.poll() is None:
|
| 1823 |
+
+ runner.kill()
|
| 1824 |
+
+ runner.wait()
|
| 1825 |
+
+
|
| 1826 |
+
+
|
| 1827 |
+
def test_default_uploader_prefers_env_token_over_dotenv(monkeypatch, tmp_path):
|
| 1828 |
+
monkeypatch.chdir(tmp_path)
|
| 1829 |
+
(tmp_path / ".env").write_text("HF_TOKEN=dotenv-token\n", encoding="utf-8")
|
evaluations/demon-attack/memory_rollout_teacher:demon_attack:teacher:fixed_l6:fs4:obs15:stride4:seed0/train/memory_rollout_teacher:demon_attack:teacher:fixed_l6:fs4:obs15:stride4:seed0/sf_log.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluations/demon-attack/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6/episode_metrics.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"episode_id": 0, "episode_return": 1440.0, "episode_return_env": 1440.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 42, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 1786, "num_dropped_actions": 1, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 7141}
|
| 2 |
+
{"episode_id": 1, "episode_return": 7070.0, "episode_return_env": 7070.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 43, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3600, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 14400}
|
| 3 |
+
{"episode_id": 2, "episode_return": 5170.0, "episode_return_env": 5170.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 44, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3600, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 14400}
|
| 4 |
+
{"episode_id": 3, "episode_return": 4970.0, "episode_return_env": 4970.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 45, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3600, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 14400}
|
| 5 |
+
{"episode_id": 4, "episode_return": 6300.0, "episode_return_env": 6300.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 46, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3600, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 14400}
|
| 6 |
+
{"episode_id": 5, "episode_return": 1600.0, "episode_return_env": 1600.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 47, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 2233, "num_dropped_actions": 1, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 8930}
|
| 7 |
+
{"episode_id": 6, "episode_return": 2560.0, "episode_return_env": 2560.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 48, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 2387, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 9548}
|
| 8 |
+
{"episode_id": 7, "episode_return": 5920.0, "episode_return_env": 5920.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 49, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3390, "num_dropped_actions": 1, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 13557}
|
| 9 |
+
{"episode_id": 8, "episode_return": 5070.0, "episode_return_env": 5070.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 50, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3600, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 14400}
|
| 10 |
+
{"episode_id": 9, "episode_return": 5670.0, "episode_return_env": 5670.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 51, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3600, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 14400}
|
| 11 |
+
{"episode_id": 10, "episode_return": 3250.0, "episode_return_env": 3250.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 52, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 2804, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 11215}
|
| 12 |
+
{"episode_id": 11, "episode_return": 5060.0, "episode_return_env": 5060.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 53, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3387, "num_dropped_actions": 1, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 13546}
|
| 13 |
+
{"episode_id": 12, "episode_return": 4500.0, "episode_return_env": 4500.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 54, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3600, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 14400}
|
| 14 |
+
{"episode_id": 13, "episode_return": 4650.0, "episode_return_env": 4650.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 55, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3600, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 14400}
|
| 15 |
+
{"episode_id": 14, "episode_return": 2585.0, "episode_return_env": 2585.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 56, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 2358, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 9431}
|
| 16 |
+
{"episode_id": 15, "episode_return": 5570.0, "episode_return_env": 5570.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 57, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3103, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 12412}
|
| 17 |
+
{"episode_id": 16, "episode_return": 5300.0, "episode_return_env": 5300.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 58, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3600, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 14400}
|
| 18 |
+
{"episode_id": 17, "episode_return": 5450.0, "episode_return_env": 5450.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 59, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3600, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 14400}
|
| 19 |
+
{"episode_id": 18, "episode_return": 5030.0, "episode_return_env": 5030.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 60, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3600, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 14400}
|
| 20 |
+
{"episode_id": 19, "episode_return": 5010.0, "episode_return_env": 5010.0, "game_score": null, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "config_name": "starvla_wan_oft_demon_attack_raw6", "configured_latency_ms": 100.0, "env_fps": 60.0, "env_id": "ALE/DemonAttack-v5", "episode_seed": 61, "eval_latency_steps": 6, "frame_ms": 16.666666666666668, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 15.0, "output_dir": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/eval_latency_6", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_demon_attack_raw6", "suite_name": "fixed_6", "target_device": null, "train_latency_steps": 6}, "num_actions": 3600, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 14400}
|
evaluations/demon-attack/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/queue_eval_latency_6.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt",
|
| 3 |
+
"configured_latency_ms": 100.0,
|
| 4 |
+
"eval_latency_steps": 6,
|
| 5 |
+
"experiment_name": "starvla_wan_oft_demon_attack_raw6",
|
| 6 |
+
"latency": 6,
|
| 7 |
+
"latency_type": "fixed_sweep",
|
| 8 |
+
"lengths": [
|
| 9 |
+
7141,
|
| 10 |
+
14400,
|
| 11 |
+
14400,
|
| 12 |
+
14400,
|
| 13 |
+
14400,
|
| 14 |
+
8930,
|
| 15 |
+
9548,
|
| 16 |
+
13557,
|
| 17 |
+
14400,
|
| 18 |
+
14400,
|
| 19 |
+
11215,
|
| 20 |
+
13546,
|
| 21 |
+
14400,
|
| 22 |
+
14400,
|
| 23 |
+
9431,
|
| 24 |
+
12412,
|
| 25 |
+
14400,
|
| 26 |
+
14400,
|
| 27 |
+
14400,
|
| 28 |
+
14400
|
| 29 |
+
],
|
| 30 |
+
"mean_length": 12929.0,
|
| 31 |
+
"mean_return": 4608.75,
|
| 32 |
+
"returns": [
|
| 33 |
+
1440.0,
|
| 34 |
+
7070.0,
|
| 35 |
+
5170.0,
|
| 36 |
+
4970.0,
|
| 37 |
+
6300.0,
|
| 38 |
+
1600.0,
|
| 39 |
+
2560.0,
|
| 40 |
+
5920.0,
|
| 41 |
+
5070.0,
|
| 42 |
+
5670.0,
|
| 43 |
+
3250.0,
|
| 44 |
+
5060.0,
|
| 45 |
+
4500.0,
|
| 46 |
+
4650.0,
|
| 47 |
+
2585.0,
|
| 48 |
+
5570.0,
|
| 49 |
+
5300.0,
|
| 50 |
+
5450.0,
|
| 51 |
+
5030.0,
|
| 52 |
+
5010.0
|
| 53 |
+
],
|
| 54 |
+
"seed": 42,
|
| 55 |
+
"std_return": 1488.6200614999113,
|
| 56 |
+
"suite_name": "fixed_6",
|
| 57 |
+
"timestamp_utc": "2026-07-31T03:38:14.217776+00:00",
|
| 58 |
+
"train_latency_steps": 6
|
| 59 |
+
}
|
evaluations/demon-attack/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/eval/fixed_6/queue_eval_results.jsonl
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "configured_latency_ms": 100.0, "eval_latency_steps": 6, "experiment_name": "starvla_wan_oft_demon_attack_raw6", "latency": 6, "latency_type": "fixed_sweep", "lengths": [7141, 14400, 14400, 14400, 14400, 8930, 9548, 13557, 14400, 14400, 11215, 13546, 14400, 14400, 9431, 12412, 14400, 14400, 14400, 14400], "mean_length": 12929.0, "mean_return": 4608.75, "returns": [1440.0, 7070.0, 5170.0, 4970.0, 6300.0, 1600.0, 2560.0, 5920.0, 5070.0, 5670.0, 3250.0, 5060.0, 4500.0, 4650.0, 2585.0, 5570.0, 5300.0, 5450.0, 5030.0, 5010.0], "seed": 42, "std_return": 1488.6200614999113, "suite_name": "fixed_6", "timestamp_utc": "2026-07-31T03:38:07.619471+00:00", "train_latency_steps": 6}
|
| 2 |
+
{"checkpoint_path": "/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_5000_pytorch_model.pt", "configured_latency_ms": 100.0, "eval_latency_steps": 6, "experiment_name": "starvla_wan_oft_demon_attack_raw6", "latency": 6, "latency_type": "fixed_sweep", "lengths": [7141, 14400, 14400, 14400, 14400, 8930, 9548, 13557, 14400, 14400, 11215, 13546, 14400, 14400, 9431, 12412, 14400, 14400, 14400, 14400], "mean_length": 12929.0, "mean_return": 4608.75, "returns": [1440.0, 7070.0, 5170.0, 4970.0, 6300.0, 1600.0, 2560.0, 5920.0, 5070.0, 5670.0, 3250.0, 5060.0, 4500.0, 4650.0, 2585.0, 5570.0, 5300.0, 5450.0, 5030.0, 5010.0], "seed": 42, "std_return": 1488.6200614999113, "suite_name": "fixed_6", "timestamp_utc": "2026-07-31T03:38:14.217776+00:00", "train_latency_steps": 6}
|
evaluations/demon-attack/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/hydra/.hydra/hydra.yaml
ADDED
|
@@ -0,0 +1,379 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
hydra:
|
| 2 |
+
run:
|
| 3 |
+
dir: ${run_root_dir}/${run_id}/hydra
|
| 4 |
+
sweep:
|
| 5 |
+
dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 6 |
+
subdir: ${hydra.job.num}
|
| 7 |
+
launcher:
|
| 8 |
+
_target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
|
| 9 |
+
sweeper:
|
| 10 |
+
_target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
|
| 11 |
+
max_batch_size: null
|
| 12 |
+
params: null
|
| 13 |
+
help:
|
| 14 |
+
app_name: ${hydra.job.name}
|
| 15 |
+
header: '${hydra.help.app_name} is powered by Hydra.
|
| 16 |
+
|
| 17 |
+
'
|
| 18 |
+
footer: 'Powered by Hydra (https://hydra.cc)
|
| 19 |
+
|
| 20 |
+
Use --hydra-help to view Hydra specific help
|
| 21 |
+
|
| 22 |
+
'
|
| 23 |
+
template: '${hydra.help.header}
|
| 24 |
+
|
| 25 |
+
== Configuration groups ==
|
| 26 |
+
|
| 27 |
+
Compose your configuration from those groups (group=option)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
$APP_CONFIG_GROUPS
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
== Config ==
|
| 34 |
+
|
| 35 |
+
Override anything in the config (foo.bar=value)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
$CONFIG
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
${hydra.help.footer}
|
| 42 |
+
|
| 43 |
+
'
|
| 44 |
+
hydra_help:
|
| 45 |
+
template: 'Hydra (${hydra.runtime.version})
|
| 46 |
+
|
| 47 |
+
See https://hydra.cc for more info.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
== Flags ==
|
| 51 |
+
|
| 52 |
+
$FLAGS_HELP
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
== Configuration groups ==
|
| 56 |
+
|
| 57 |
+
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
|
| 58 |
+
to command line)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
$HYDRA_CONFIG_GROUPS
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
Use ''--cfg hydra'' to Show the Hydra config.
|
| 65 |
+
|
| 66 |
+
'
|
| 67 |
+
hydra_help: ???
|
| 68 |
+
hydra_logging:
|
| 69 |
+
version: 1
|
| 70 |
+
formatters:
|
| 71 |
+
simple:
|
| 72 |
+
format: '[%(asctime)s][HYDRA] %(message)s'
|
| 73 |
+
handlers:
|
| 74 |
+
console:
|
| 75 |
+
class: logging.StreamHandler
|
| 76 |
+
formatter: simple
|
| 77 |
+
stream: ext://sys.stdout
|
| 78 |
+
root:
|
| 79 |
+
level: INFO
|
| 80 |
+
handlers:
|
| 81 |
+
- console
|
| 82 |
+
loggers:
|
| 83 |
+
logging_example:
|
| 84 |
+
level: DEBUG
|
| 85 |
+
disable_existing_loggers: false
|
| 86 |
+
job_logging:
|
| 87 |
+
version: 1
|
| 88 |
+
formatters:
|
| 89 |
+
simple:
|
| 90 |
+
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
|
| 91 |
+
handlers:
|
| 92 |
+
console:
|
| 93 |
+
class: logging.StreamHandler
|
| 94 |
+
formatter: simple
|
| 95 |
+
stream: ext://sys.stdout
|
| 96 |
+
file:
|
| 97 |
+
class: logging.FileHandler
|
| 98 |
+
formatter: simple
|
| 99 |
+
filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
|
| 100 |
+
root:
|
| 101 |
+
level: INFO
|
| 102 |
+
handlers:
|
| 103 |
+
- console
|
| 104 |
+
- file
|
| 105 |
+
disable_existing_loggers: false
|
| 106 |
+
env: {}
|
| 107 |
+
mode: RUN
|
| 108 |
+
searchpath: []
|
| 109 |
+
callbacks: {}
|
| 110 |
+
output_subdir: .hydra
|
| 111 |
+
overrides:
|
| 112 |
+
hydra:
|
| 113 |
+
- hydra.mode=RUN
|
| 114 |
+
task:
|
| 115 |
+
- model=wan_oft
|
| 116 |
+
- env=demon_attack
|
| 117 |
+
- init=wan_oft_libero
|
| 118 |
+
- mode=single
|
| 119 |
+
- ++framework.qwenvl.base_vlm=playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers
|
| 120 |
+
- ++framework.qwenvl.attn_implementation=sdpa
|
| 121 |
+
- ++framework.qwenvl.flex_backend=triton
|
| 122 |
+
- ++framework.qwenvl.enable_gradient_checkpointing=true
|
| 123 |
+
- ++framework.action_model.state_dim=7
|
| 124 |
+
- ++framework.action_model.loss_type=current_discrete_ce
|
| 125 |
+
- ++framework.action_model.action_horizon=8
|
| 126 |
+
- ++framework.action_model.future_action_window_size=7
|
| 127 |
+
- ++framework.action_model.past_action_window_size=0
|
| 128 |
+
- ++framework.action_model.action_model_type=MLP
|
| 129 |
+
- ++framework.action_model.action_dim=7
|
| 130 |
+
- ++framework.action_model.action_env_dim=6
|
| 131 |
+
- ++framework.action_model.action_query_source=mean
|
| 132 |
+
- ++framework.action_model.action_query_num_heads=24
|
| 133 |
+
- ++framework.kv_memory.enabled=false
|
| 134 |
+
- ++framework.kv_memory.window=4
|
| 135 |
+
- ++framework.kv_memory.rollout_len=8
|
| 136 |
+
- ++framework.kv_memory.packed_train=false
|
| 137 |
+
- ++framework.kv_memory.rebased_sink=true
|
| 138 |
+
- ++framework.name=WanOFT
|
| 139 |
+
- ++framework.world_model.base_wm=playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers
|
| 140 |
+
- ++framework.world_model.extract_layers=[-1]
|
| 141 |
+
- ++framework.world_model.num_frames=5
|
| 142 |
+
- ++datasets.vla_data.dataset_py=lerobot_datasets
|
| 143 |
+
- ++datasets.vla_data.include_state=true
|
| 144 |
+
- ++datasets.vla_data.data_root_dir=playground/Datasets/rl_games
|
| 145 |
+
- ++datasets.vla_data.data_mix=demon_attack_train__bridge
|
| 146 |
+
- ++datasets.vla_data.eval_data_mix=null
|
| 147 |
+
- ++datasets.vla_data.custom_mixtures_path=null
|
| 148 |
+
- ++datasets.vla_data.action_type=discrete
|
| 149 |
+
- ++datasets.vla_data.sequential_step_sampling=false
|
| 150 |
+
- ++datasets.vla_data.eval_sequential_step_sampling=null
|
| 151 |
+
- ++datasets.vla_data.num_workers=8
|
| 152 |
+
- ++datasets.vla_data.eval_num_workers=8
|
| 153 |
+
- ++datasets.vla_data.prefetch_factor=4
|
| 154 |
+
- ++datasets.vla_data.persistent_workers=true
|
| 155 |
+
- ++datasets.vla_data.pin_memory=true
|
| 156 |
+
- ++datasets.vla_data.shuffle=true
|
| 157 |
+
- ++datasets.vla_data.action_balance.enabled=false
|
| 158 |
+
- ++datasets.vla_data.action_balance.strategy=balanced_epoch
|
| 159 |
+
- ++datasets.vla_data.action_balance.action_key=action_id
|
| 160 |
+
- ++datasets.vla_data.action_balance.target_flap_fraction=0.3
|
| 161 |
+
- ++datasets.vla_data.action_balance.noop_id=0
|
| 162 |
+
- ++datasets.vla_data.action_balance.flap_id=1
|
| 163 |
+
- ++datasets.vla_data.latency_curriculum.enabled=false
|
| 164 |
+
- ++datasets.vla_data.latency_curriculum.strategy=exclusive
|
| 165 |
+
- ++datasets.vla_data.latency_curriculum.latencies=null
|
| 166 |
+
- ++datasets.vla_data.latency_curriculum.phase_steps=null
|
| 167 |
+
- ++datasets.vla_data.latency_curriculum.phase_distributions=null
|
| 168 |
+
- ++datasets.vla_data.latency_curriculum.new_latency_passes=1.0
|
| 169 |
+
- ++datasets.vla_data.latency_curriculum.replay_passes=0.25
|
| 170 |
+
- ++datasets.vla_data.latency_curriculum.target_total_passes=2.0
|
| 171 |
+
- ++datasets.vla_data.latency_curriculum.final_equalization=true
|
| 172 |
+
- ++datasets.vla_data.latency_curriculum.step_budget_mode=auto
|
| 173 |
+
- ++datasets.vla_data.latency_curriculum.eval_at_phase_end=false
|
| 174 |
+
- ++datasets.vla_data.latency_curriculum.save_at_phase_end=false
|
| 175 |
+
- ++datasets.vla_data.latency_curriculum.computed_plan=null
|
| 176 |
+
- ++datasets.vla_data.per_device_batch_size=1
|
| 177 |
+
- ++datasets.vla_data.load_all_data_for_training=true
|
| 178 |
+
- ++datasets.vla_data.num_obs_frames=1
|
| 179 |
+
- ++datasets.vla_data.image_mode=single
|
| 180 |
+
- ++datasets.vla_data.prompt_mode=raw
|
| 181 |
+
- ++datasets.vla_data.stitch_grid=[2,2]
|
| 182 |
+
- ++datasets.vla_data.obs_image_size=[224,224]
|
| 183 |
+
- ++datasets.vla_data.video_backend=torchvision_av
|
| 184 |
+
- ++datasets.vla_data.observation_indices=[-4,-3,-2,-1,0]
|
| 185 |
+
- ++datasets.vla_data.language_indices=[0]
|
| 186 |
+
- ++datasets.vla_data.state_indices=[0]
|
| 187 |
+
- ++datasets.vla_data.action_indices=[0,1,2,3,4,5,6,7]
|
| 188 |
+
- ++datasets.vla_data.pack_image_sequence=true
|
| 189 |
+
- ++datasets.vla_data.image_sequence_length=5
|
| 190 |
+
- ++datasets.vla_data.context_images_column=observation.context_images
|
| 191 |
+
- ++dataset.source_hf=latency-sensitive-bench/memory-rollouts
|
| 192 |
+
- ++dataset.config_name=demon_attack_fixed_latency_6_200ep_7k2steps
|
| 193 |
+
- ++dataset.source_subdir=null
|
| 194 |
+
- ++dataset.converted_name=demon_attack_train__bridge
|
| 195 |
+
- ++dataset.single_source_hf=
|
| 196 |
+
- ++dataset.mixed_source_hf=
|
| 197 |
+
- ++dataset.single_converted_name=demon_attack_train__bridge
|
| 198 |
+
- ++dataset.mixed_converted_name=demon_attack_mixed_latency_train__bridge
|
| 199 |
+
- ++dataset.single_latency_filter=null
|
| 200 |
+
- ++dataset.mixed_latency_filter=null
|
| 201 |
+
- ++dataset.force_download=false
|
| 202 |
+
- ++dataset.setup_force=false
|
| 203 |
+
- ++dataset.skip_verification=false
|
| 204 |
+
- ++dataset.target_latency_unit=observation_steps
|
| 205 |
+
- ++dataset.verify_rows=200
|
| 206 |
+
- ++dataset.max_episodes=200
|
| 207 |
+
- ++dataset.episodes_per_latency=null
|
| 208 |
+
- ++dataset.latency_filter=null
|
| 209 |
+
- ++dataset.debug_subset.enabled=false
|
| 210 |
+
- ++dataset.debug_subset.max_episodes=5
|
| 211 |
+
- ++dataset.debug_subset.suffix=debug
|
| 212 |
+
- ++base_model.repo_id=Wan-AI/Wan2.2-TI2V-5B-Diffusers
|
| 213 |
+
- ++initialization.checkpoint_local_dir=playground/Pretrained_models/WM4A-Wan2d2-OFT-LIBERO-4in1
|
| 214 |
+
- ++initialization.checkpoint_hf_repo_id=StarVLA/WM4A-Wan2d2-OFT-LIBERO-4in1
|
| 215 |
+
- ++initialization.checkpoint_filename=checkpoints/steps_60000_pytorch_model.pt
|
| 216 |
+
- ++trainer.max_train_steps=5000
|
| 217 |
+
- ++trainer.num_warmup_steps=0
|
| 218 |
+
- ++trainer.save_interval=500
|
| 219 |
+
- ++trainer.eval_interval=100
|
| 220 |
+
- ++trainer.eval_num_batches=100
|
| 221 |
+
- ++trainer.per_latency_eval_num_batches=null
|
| 222 |
+
- ++trainer.eval_action_classification=false
|
| 223 |
+
- ++trainer.eval_action_classification_interval=null
|
| 224 |
+
- ++trainer.cc_f1_tolerance=1
|
| 225 |
+
- ++trainer.learning_rate.base=2.5e-05
|
| 226 |
+
- ++trainer.learning_rate.qwen_vl_interface=1e-05
|
| 227 |
+
- ++trainer.learning_rate.action_model=0.0001
|
| 228 |
+
- ++trainer.learning_rate.action_query_proj=0.0001
|
| 229 |
+
- ++trainer.lr_scheduler_type=cosine_with_min_lr
|
| 230 |
+
- ++trainer.scheduler_specific_kwargs.min_lr=1e-06
|
| 231 |
+
- ++trainer.freeze_modules=
|
| 232 |
+
- ++trainer.freeze_vit=false
|
| 233 |
+
- ++trainer.freeze_tied_embedding=false
|
| 234 |
+
- ++trainer.freeze_llm_layers=[]
|
| 235 |
+
- ++trainer.loss_scale.vla=1.0
|
| 236 |
+
- ++trainer.loss_scale.vlm=0.1
|
| 237 |
+
- ++trainer.max_grad_norm=1.0
|
| 238 |
+
- ++trainer.weight_decay=0.0
|
| 239 |
+
- ++trainer.logging_frequency=1
|
| 240 |
+
- ++trainer.profile_timing.enabled=false
|
| 241 |
+
- ++trainer.profile_timing.log_interval=10
|
| 242 |
+
- ++trainer.gradient_clipping=1.0
|
| 243 |
+
- ++trainer.gradient_accumulation_steps=16
|
| 244 |
+
- ++trainer.distributed_backend=deepspeed
|
| 245 |
+
- ++trainer.is_resume=false
|
| 246 |
+
- ++trainer.pretrained_checkpoint=null
|
| 247 |
+
- ++trainer.resume_step=0
|
| 248 |
+
- ++trainer.reload_modules=null
|
| 249 |
+
- ++trainer.optimizer.name=AdamW
|
| 250 |
+
- ++trainer.optimizer.betas=[0.9,0.95]
|
| 251 |
+
- ++trainer.optimizer.eps=1e-08
|
| 252 |
+
- ++trainer.optimizer.weight_decay=1e-08
|
| 253 |
+
- ++trainer.optimizer.fused=true
|
| 254 |
+
- ++trainer.save_format=pt
|
| 255 |
+
- ++workspace_dir=WORKSPACE_DIR
|
| 256 |
+
- ++run_root_dir=results/Checkpoints
|
| 257 |
+
- ++seed=42
|
| 258 |
+
- ++auth.env_file=null
|
| 259 |
+
- ++auth.hf_token_env=HF_TOKEN
|
| 260 |
+
- ++auth.wandb_api_key_env=WANDB_API_KEY
|
| 261 |
+
- ++paths.run_root_dir=results/Checkpoints
|
| 262 |
+
- ++paths.dataset_local_dir=data/demon_attack_fix_latency_6_200ep_context5
|
| 263 |
+
- ++paths.dataset_cache_dir=null
|
| 264 |
+
- ++paths.base_model_dir=playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers
|
| 265 |
+
- ++paths.accelerate_config=starVLA/config/deepseeds/deepspeed_zero2.yaml
|
| 266 |
+
- ++rl_games.model_alias=wan_oft
|
| 267 |
+
- ++rl_games.env_eval.image_size=224
|
| 268 |
+
- ++rl_games.env_eval.frameskip=4
|
| 269 |
+
- ++rl_games.env_eval.image_transform=raw_rgb
|
| 270 |
+
- ++rl_games.env_eval.prompt_mode=raw
|
| 271 |
+
- ++rl_games.env_eval.ghost_trail.history_frames=5
|
| 272 |
+
- ++rl_games.env_eval.ghost_trail.gamma=1.3
|
| 273 |
+
- ++rl_games.env_eval.ghost_trail.min_alpha=35
|
| 274 |
+
- ++rl_games.env_eval.ghost_trail.scroll_px_per_step=4.0
|
| 275 |
+
- ++rl_games.env_eval.ghost_trail.ground_fraction=0.22
|
| 276 |
+
- ++rl_games.env_eval.seed=42
|
| 277 |
+
- ++rl_games.env_eval.fixed_episode_seeds=true
|
| 278 |
+
- ++rl_games.env_eval.latency_seed_stride=0
|
| 279 |
+
- ++rl_games.env_eval.task_seed_stride=0
|
| 280 |
+
- '++rl_games.env_eval.task_description=''You are playing Demon Attack from a
|
| 281 |
+
single game image. Choose exactly one action from: NOOP, FIRE, RIGHT, LEFT,
|
| 282 |
+
RIGHTFIRE, LEFTFIRE.'''
|
| 283 |
+
- ++rl_games.env_eval.eval_parallel_envs=5
|
| 284 |
+
- ++rl_games.env_eval.action_chunk_execution.enabled=false
|
| 285 |
+
- ++rl_games.env_eval.action_chunk_execution.chunk_size=null
|
| 286 |
+
- ++rl_games.env_eval.demon_attack.noop_max=30
|
| 287 |
+
- ++rl_games.env_eval.enabled=true
|
| 288 |
+
- ++rl_games.env_eval.eval_backend=eval_core
|
| 289 |
+
- ++rl_games.env_eval.distributed_mode=rank_sharded
|
| 290 |
+
- ++rl_games.env_eval.vectorized.enabled=false
|
| 291 |
+
- ++rl_games.env_eval.vectorized.batch_size=1
|
| 292 |
+
- ++rl_games.env_eval.latency.prompt_map_path=data/demon_attack_fix_latency_6_200ep_context5/demon_attack_train__bridge/latency_prompt_map.json
|
| 293 |
+
- ++rl_games.env_eval.latency.mode=single
|
| 294 |
+
- ++rl_games.env_eval.latency.values=[0]
|
| 295 |
+
- ++rl_games.env_eval.mid_train.enabled=false
|
| 296 |
+
- ++rl_games.env_eval.mid_train.interval_steps=100
|
| 297 |
+
- ++rl_games.env_eval.mid_train.latencies=[0]
|
| 298 |
+
- ++rl_games.env_eval.mid_train.num_episodes=5
|
| 299 |
+
- ++rl_games.env_eval.mid_train.max_steps_per_episode=3600
|
| 300 |
+
- ++rl_games.env_eval.post_train.enabled=false
|
| 301 |
+
- ++rl_games.env_eval.post_train.latencies=[6]
|
| 302 |
+
- ++rl_games.env_eval.post_train.num_episodes=20
|
| 303 |
+
- ++rl_games.env_eval.post_train.max_steps_per_episode=3600
|
| 304 |
+
- ++rl_games.task=demon_attack
|
| 305 |
+
- ++rl_games.initialization_mode=bridge
|
| 306 |
+
- ++rl_games.action_carrier=bridge
|
| 307 |
+
- ++checkpoint.load=auto
|
| 308 |
+
- ++checkpoint.hf_repo_id=null
|
| 309 |
+
- ++checkpoint.save_best_model=false
|
| 310 |
+
- ++checkpoint.save_final_model=true
|
| 311 |
+
- ++checkpoint.save_pt_file=true
|
| 312 |
+
- ++checkpoint.save_training_state=true
|
| 313 |
+
- ++checkpoint.save_safetensors_file=false
|
| 314 |
+
- ++checkpoint.local.keep_last_n=1
|
| 315 |
+
- ++checkpoint.sync.enabled=false
|
| 316 |
+
- ++checkpoint.sync.repo_id=null
|
| 317 |
+
- ++checkpoint.sync.keep_last_n=0
|
| 318 |
+
- ++checkpoint.sync.sync_every_n_checkpoints=1
|
| 319 |
+
- ++checkpoint.sync.resume_policy=local_latest
|
| 320 |
+
- ++run_id=wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce
|
| 321 |
+
- ++output_dir=null
|
| 322 |
+
- ++config_yaml=null
|
| 323 |
+
- ++is_debug=false
|
| 324 |
+
- ++version_id=0.21
|
| 325 |
+
- ++run_root_dir=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints
|
| 326 |
+
- ++trainer.is_resume=true
|
| 327 |
+
- ++trainer.pretrained_checkpoint=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_4000_state
|
| 328 |
+
- ++trainer.resume_step=4000
|
| 329 |
+
- ++datasets.vla_data.data_root_dir=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/data/demon_attack_fix_latency_6_200ep_context5
|
| 330 |
+
- ++framework.qwenvl.base_vlm=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers
|
| 331 |
+
- ++framework.world_model.base_wm=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers
|
| 332 |
+
job:
|
| 333 |
+
name: train_starvla_hydra
|
| 334 |
+
chdir: false
|
| 335 |
+
override_dirname: '++auth.env_file=null,++auth.hf_token_env=HF_TOKEN,++auth.wandb_api_key_env=WANDB_API_KEY,++base_model.repo_id=Wan-AI/Wan2.2-TI2V-5B-Diffusers,++checkpoint.hf_repo_id=null,++checkpoint.load=auto,++checkpoint.local.keep_last_n=1,++checkpoint.save_best_model=false,++checkpoint.save_final_model=true,++checkpoint.save_pt_file=true,++checkpoint.save_safetensors_file=false,++checkpoint.save_training_state=true,++checkpoint.sync.enabled=false,++checkpoint.sync.keep_last_n=0,++checkpoint.sync.repo_id=null,++checkpoint.sync.resume_policy=local_latest,++checkpoint.sync.sync_every_n_checkpoints=1,++config_yaml=null,++dataset.config_name=demon_attack_fixed_latency_6_200ep_7k2steps,++dataset.converted_name=demon_attack_train__bridge,++dataset.debug_subset.enabled=false,++dataset.debug_subset.max_episodes=5,++dataset.debug_subset.suffix=debug,++dataset.episodes_per_latency=null,++dataset.force_download=false,++dataset.latency_filter=null,++dataset.max_episodes=200,++dataset.mixed_converted_name=demon_attack_mixed_latency_train__bridge,++dataset.mixed_latency_filter=null,++dataset.mixed_source_hf=,++dataset.setup_force=false,++dataset.single_converted_name=demon_attack_train__bridge,++dataset.single_latency_filter=null,++dataset.single_source_hf=,++dataset.skip_verification=false,++dataset.source_hf=latency-sensitive-bench/memory-rollouts,++dataset.source_subdir=null,++dataset.target_latency_unit=observation_steps,++dataset.verify_rows=200,++datasets.vla_data.action_balance.action_key=action_id,++datasets.vla_data.action_balance.enabled=false,++datasets.vla_data.action_balance.flap_id=1,++datasets.vla_data.action_balance.noop_id=0,++datasets.vla_data.action_balance.strategy=balanced_epoch,++datasets.vla_data.action_balance.target_flap_fraction=0.3,++datasets.vla_data.action_indices=[0,1,2,3,4,5,6,7],++datasets.vla_data.action_type=discrete,++datasets.vla_data.context_images_column=observation.context_images,++datasets.vla_data.custom_mixtures_path=null,++datasets.vla_data.data_mix=demon_attack_train__bridge,++datasets.vla_data.data_root_dir=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/data/demon_attack_fix_latency_6_200ep_context5,++datasets.vla_data.data_root_dir=playground/Datasets/rl_games,++datasets.vla_data.dataset_py=lerobot_datasets,++datasets.vla_data.eval_data_mix=null,++datasets.vla_data.eval_num_workers=8,++datasets.vla_data.eval_sequential_step_sampling=null,++datasets.vla_data.image_mode=single,++datasets.vla_data.image_sequence_length=5,++datasets.vla_data.include_state=true,++datasets.vla_data.language_indices=[0],++datasets.vla_data.latency_curriculum.computed_plan=null,++datasets.vla_data.latency_curriculum.enabled=false,++datasets.vla_data.latency_curriculum.eval_at_phase_end=false,++datasets.vla_data.latency_curriculum.final_equalization=true,++datasets.vla_data.latency_curriculum.latencies=null,++datasets.vla_data.latency_curriculum.new_latency_passes=1.0,++datasets.vla_data.latency_curriculum.phase_distributions=null,++datasets.vla_data.latency_curriculum.phase_steps=null,++datasets.vla_data.latency_curriculum.replay_passes=0.25,++datasets.vla_data.latency_curriculum.save_at_phase_end=false,++datasets.vla_data.latency_curriculum.step_budget_mode=auto,++datasets.vla_data.latency_curriculum.strategy=exclusive,++datasets.vla_data.latency_curriculum.target_total_passes=2.0,++datasets.vla_data.load_all_data_for_training=true,++datasets.vla_data.num_obs_frames=1,++datasets.vla_data.num_workers=8,++datasets.vla_data.obs_image_size=[224,224],++datasets.vla_data.observation_indices=[-4,-3,-2,-1,0],++datasets.vla_data.pack_image_sequence=true,++datasets.vla_data.per_device_batch_size=1,++datasets.vla_data.persistent_workers=true,++datasets.vla_data.pin_memory=true,++datasets.vla_data.prefetch_factor=4,++datasets.vla_data.prompt_mode=raw,++datasets.vla_data.sequential_step_sampling=false,++datasets.vla_data.shuffle=true,++datasets.vla_data.state_indices=[0],++datasets.vla_data.stitch_grid=[2,2],++datasets.vla_data.video_backend=torchvision_av,++framework.action_model.action_dim=7,++framework.action_model.action_env_dim=6,++framework.action_model.action_horizon=8,++framework.action_model.action_model_type=MLP,++framework.action_model.action_query_num_heads=24,++framework.action_model.action_query_source=mean,++framework.action_model.future_action_window_size=7,++framework.action_model.loss_type=current_discrete_ce,++framework.action_model.past_action_window_size=0,++framework.action_model.state_dim=7,++framework.kv_memory.enabled=false,++framework.kv_memory.packed_train=false,++framework.kv_memory.rebased_sink=true,++framework.kv_memory.rollout_len=8,++framework.kv_memory.window=4,++framework.name=WanOFT,++framework.qwenvl.attn_implementation=sdpa,++framework.qwenvl.base_vlm=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers,++framework.qwenvl.base_vlm=playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers,++framework.qwenvl.enable_gradient_checkpointing=true,++framework.qwenvl.flex_backend=triton,++framework.world_model.base_wm=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers,++framework.world_model.base_wm=playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers,++framework.world_model.extract_layers=[-1],++framework.world_model.num_frames=5,++initialization.checkpoint_filename=checkpoints/steps_60000_pytorch_model.pt,++initialization.checkpoint_hf_repo_id=StarVLA/WM4A-Wan2d2-OFT-LIBERO-4in1,++initialization.checkpoint_local_dir=playground/Pretrained_models/WM4A-Wan2d2-OFT-LIBERO-4in1,++is_debug=false,++output_dir=null,++paths.accelerate_config=starVLA/config/deepseeds/deepspeed_zero2.yaml,++paths.base_model_dir=playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers,++paths.dataset_cache_dir=null,++paths.dataset_local_dir=data/demon_attack_fix_latency_6_200ep_context5,++paths.run_root_dir=results/Checkpoints,++rl_games.action_carrier=bridge,++rl_games.env_eval.action_chunk_execution.chunk_size=null,++rl_games.env_eval.action_chunk_execution.enabled=false,++rl_games.env_eval.demon_attack.noop_max=30,++rl_games.env_eval.distributed_mode=rank_sharded,++rl_games.env_eval.enabled=true,++rl_games.env_eval.eval_backend=eval_core,++rl_games.env_eval.eval_parallel_envs=5,++rl_games.env_eval.fixed_episode_seeds=true,++rl_games.env_eval.frameskip=4,++rl_games.env_eval.ghost_trail.gamma=1.3,++rl_games.env_eval.ghost_trail.ground_fraction=0.22,++rl_games.env_eval.ghost_trail.history_frames=5,++rl_games.env_eval.ghost_trail.min_alpha=35,++rl_games.env_eval.ghost_trail.scroll_px_per_step=4.0,++rl_games.env_eval.image_size=224,++rl_games.env_eval.image_transform=raw_rgb,++rl_games.env_eval.latency.mode=single,++rl_games.env_eval.latency.prompt_map_path=data/demon_attack_fix_latency_6_200ep_context5/demon_attack_train__bridge/latency_prompt_map.json,++rl_games.env_eval.latency.values=[0],++rl_games.env_eval.latency_seed_stride=0,++rl_games.env_eval.mid_train.enabled=false,++rl_games.env_eval.mid_train.interval_steps=100,++rl_games.env_eval.mid_train.latencies=[0],++rl_games.env_eval.mid_train.max_steps_per_episode=3600,++rl_games.env_eval.mid_train.num_episodes=5,++rl_games.env_eval.post_train.enabled=false,++rl_games.env_eval.post_train.latencies=[6],++rl_games.env_eval.post_train.max_steps_per_episode=3600,++rl_games.env_eval.post_train.num_episodes=20,++rl_games.env_eval.prompt_mode=raw,++rl_games.env_eval.seed=42,++rl_games.env_eval.task_description=''You
|
| 336 |
+
are playing Demon Attack from a single game image. Choose exactly one action
|
| 337 |
+
from: NOOP, FIRE, RIGHT, LEFT, RIGHTFIRE, LEFTFIRE.'',++rl_games.env_eval.task_seed_stride=0,++rl_games.env_eval.vectorized.batch_size=1,++rl_games.env_eval.vectorized.enabled=false,++rl_games.initialization_mode=bridge,++rl_games.model_alias=wan_oft,++rl_games.task=demon_attack,++run_id=wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce,++run_root_dir=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints,++run_root_dir=results/Checkpoints,++seed=42,++trainer.cc_f1_tolerance=1,++trainer.distributed_backend=deepspeed,++trainer.eval_action_classification=false,++trainer.eval_action_classification_interval=null,++trainer.eval_interval=100,++trainer.eval_num_batches=100,++trainer.freeze_llm_layers=[],++trainer.freeze_modules=,++trainer.freeze_tied_embedding=false,++trainer.freeze_vit=false,++trainer.gradient_accumulation_steps=16,++trainer.gradient_clipping=1.0,++trainer.is_resume=false,++trainer.is_resume=true,++trainer.learning_rate.action_model=0.0001,++trainer.learning_rate.action_query_proj=0.0001,++trainer.learning_rate.base=2.5e-05,++trainer.learning_rate.qwen_vl_interface=1e-05,++trainer.logging_frequency=1,++trainer.loss_scale.vla=1.0,++trainer.loss_scale.vlm=0.1,++trainer.lr_scheduler_type=cosine_with_min_lr,++trainer.max_grad_norm=1.0,++trainer.max_train_steps=5000,++trainer.num_warmup_steps=0,++trainer.optimizer.betas=[0.9,0.95],++trainer.optimizer.eps=1e-08,++trainer.optimizer.fused=true,++trainer.optimizer.name=AdamW,++trainer.optimizer.weight_decay=1e-08,++trainer.per_latency_eval_num_batches=null,++trainer.pretrained_checkpoint=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_4000_state,++trainer.pretrained_checkpoint=null,++trainer.profile_timing.enabled=false,++trainer.profile_timing.log_interval=10,++trainer.reload_modules=null,++trainer.resume_step=0,++trainer.resume_step=4000,++trainer.save_format=pt,++trainer.save_interval=500,++trainer.scheduler_specific_kwargs.min_lr=1e-06,++trainer.weight_decay=0.0,++version_id=0.21,++workspace_dir=WORKSPACE_DIR,env=demon_attack,init=wan_oft_libero,mode=single,model=wan_oft'
|
| 338 |
+
id: ???
|
| 339 |
+
num: ???
|
| 340 |
+
config_name: train
|
| 341 |
+
env_set: {}
|
| 342 |
+
env_copy: []
|
| 343 |
+
config:
|
| 344 |
+
override_dirname:
|
| 345 |
+
kv_sep: '='
|
| 346 |
+
item_sep: ','
|
| 347 |
+
exclude_keys: []
|
| 348 |
+
runtime:
|
| 349 |
+
version: 1.3.4
|
| 350 |
+
version_base: '1.1'
|
| 351 |
+
cwd: /lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA
|
| 352 |
+
config_sources:
|
| 353 |
+
- path: hydra.conf
|
| 354 |
+
schema: pkg
|
| 355 |
+
provider: hydra
|
| 356 |
+
- path: /lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/examples/rl_games/config
|
| 357 |
+
schema: file
|
| 358 |
+
provider: main
|
| 359 |
+
- path: ''
|
| 360 |
+
schema: structured
|
| 361 |
+
provider: schema
|
| 362 |
+
output_dir: /lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/hydra
|
| 363 |
+
choices:
|
| 364 |
+
cross_task_setup: null
|
| 365 |
+
checkpoint: default
|
| 366 |
+
mode: single
|
| 367 |
+
init: wan_oft_libero
|
| 368 |
+
env: demon_attack
|
| 369 |
+
model: wan_oft
|
| 370 |
+
hydra/env: default
|
| 371 |
+
hydra/callbacks: null
|
| 372 |
+
hydra/job_logging: default
|
| 373 |
+
hydra/hydra_logging: default
|
| 374 |
+
hydra/hydra_help: default
|
| 375 |
+
hydra/help: default
|
| 376 |
+
hydra/sweeper: basic
|
| 377 |
+
hydra/launcher: basic
|
| 378 |
+
hydra/output: default
|
| 379 |
+
verbose: false
|
evaluations/demon-attack/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/hydra/.hydra/overrides.yaml
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- model=wan_oft
|
| 2 |
+
- env=demon_attack
|
| 3 |
+
- init=wan_oft_libero
|
| 4 |
+
- mode=single
|
| 5 |
+
- ++framework.qwenvl.base_vlm=playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers
|
| 6 |
+
- ++framework.qwenvl.attn_implementation=sdpa
|
| 7 |
+
- ++framework.qwenvl.flex_backend=triton
|
| 8 |
+
- ++framework.qwenvl.enable_gradient_checkpointing=true
|
| 9 |
+
- ++framework.action_model.state_dim=7
|
| 10 |
+
- ++framework.action_model.loss_type=current_discrete_ce
|
| 11 |
+
- ++framework.action_model.action_horizon=8
|
| 12 |
+
- ++framework.action_model.future_action_window_size=7
|
| 13 |
+
- ++framework.action_model.past_action_window_size=0
|
| 14 |
+
- ++framework.action_model.action_model_type=MLP
|
| 15 |
+
- ++framework.action_model.action_dim=7
|
| 16 |
+
- ++framework.action_model.action_env_dim=6
|
| 17 |
+
- ++framework.action_model.action_query_source=mean
|
| 18 |
+
- ++framework.action_model.action_query_num_heads=24
|
| 19 |
+
- ++framework.kv_memory.enabled=false
|
| 20 |
+
- ++framework.kv_memory.window=4
|
| 21 |
+
- ++framework.kv_memory.rollout_len=8
|
| 22 |
+
- ++framework.kv_memory.packed_train=false
|
| 23 |
+
- ++framework.kv_memory.rebased_sink=true
|
| 24 |
+
- ++framework.name=WanOFT
|
| 25 |
+
- ++framework.world_model.base_wm=playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers
|
| 26 |
+
- ++framework.world_model.extract_layers=[-1]
|
| 27 |
+
- ++framework.world_model.num_frames=5
|
| 28 |
+
- ++datasets.vla_data.dataset_py=lerobot_datasets
|
| 29 |
+
- ++datasets.vla_data.include_state=true
|
| 30 |
+
- ++datasets.vla_data.data_root_dir=playground/Datasets/rl_games
|
| 31 |
+
- ++datasets.vla_data.data_mix=demon_attack_train__bridge
|
| 32 |
+
- ++datasets.vla_data.eval_data_mix=null
|
| 33 |
+
- ++datasets.vla_data.custom_mixtures_path=null
|
| 34 |
+
- ++datasets.vla_data.action_type=discrete
|
| 35 |
+
- ++datasets.vla_data.sequential_step_sampling=false
|
| 36 |
+
- ++datasets.vla_data.eval_sequential_step_sampling=null
|
| 37 |
+
- ++datasets.vla_data.num_workers=8
|
| 38 |
+
- ++datasets.vla_data.eval_num_workers=8
|
| 39 |
+
- ++datasets.vla_data.prefetch_factor=4
|
| 40 |
+
- ++datasets.vla_data.persistent_workers=true
|
| 41 |
+
- ++datasets.vla_data.pin_memory=true
|
| 42 |
+
- ++datasets.vla_data.shuffle=true
|
| 43 |
+
- ++datasets.vla_data.action_balance.enabled=false
|
| 44 |
+
- ++datasets.vla_data.action_balance.strategy=balanced_epoch
|
| 45 |
+
- ++datasets.vla_data.action_balance.action_key=action_id
|
| 46 |
+
- ++datasets.vla_data.action_balance.target_flap_fraction=0.3
|
| 47 |
+
- ++datasets.vla_data.action_balance.noop_id=0
|
| 48 |
+
- ++datasets.vla_data.action_balance.flap_id=1
|
| 49 |
+
- ++datasets.vla_data.latency_curriculum.enabled=false
|
| 50 |
+
- ++datasets.vla_data.latency_curriculum.strategy=exclusive
|
| 51 |
+
- ++datasets.vla_data.latency_curriculum.latencies=null
|
| 52 |
+
- ++datasets.vla_data.latency_curriculum.phase_steps=null
|
| 53 |
+
- ++datasets.vla_data.latency_curriculum.phase_distributions=null
|
| 54 |
+
- ++datasets.vla_data.latency_curriculum.new_latency_passes=1.0
|
| 55 |
+
- ++datasets.vla_data.latency_curriculum.replay_passes=0.25
|
| 56 |
+
- ++datasets.vla_data.latency_curriculum.target_total_passes=2.0
|
| 57 |
+
- ++datasets.vla_data.latency_curriculum.final_equalization=true
|
| 58 |
+
- ++datasets.vla_data.latency_curriculum.step_budget_mode=auto
|
| 59 |
+
- ++datasets.vla_data.latency_curriculum.eval_at_phase_end=false
|
| 60 |
+
- ++datasets.vla_data.latency_curriculum.save_at_phase_end=false
|
| 61 |
+
- ++datasets.vla_data.latency_curriculum.computed_plan=null
|
| 62 |
+
- ++datasets.vla_data.per_device_batch_size=1
|
| 63 |
+
- ++datasets.vla_data.load_all_data_for_training=true
|
| 64 |
+
- ++datasets.vla_data.num_obs_frames=1
|
| 65 |
+
- ++datasets.vla_data.image_mode=single
|
| 66 |
+
- ++datasets.vla_data.prompt_mode=raw
|
| 67 |
+
- ++datasets.vla_data.stitch_grid=[2,2]
|
| 68 |
+
- ++datasets.vla_data.obs_image_size=[224,224]
|
| 69 |
+
- ++datasets.vla_data.video_backend=torchvision_av
|
| 70 |
+
- ++datasets.vla_data.observation_indices=[-4,-3,-2,-1,0]
|
| 71 |
+
- ++datasets.vla_data.language_indices=[0]
|
| 72 |
+
- ++datasets.vla_data.state_indices=[0]
|
| 73 |
+
- ++datasets.vla_data.action_indices=[0,1,2,3,4,5,6,7]
|
| 74 |
+
- ++datasets.vla_data.pack_image_sequence=true
|
| 75 |
+
- ++datasets.vla_data.image_sequence_length=5
|
| 76 |
+
- ++datasets.vla_data.context_images_column=observation.context_images
|
| 77 |
+
- ++dataset.source_hf=latency-sensitive-bench/memory-rollouts
|
| 78 |
+
- ++dataset.config_name=demon_attack_fixed_latency_6_200ep_7k2steps
|
| 79 |
+
- ++dataset.source_subdir=null
|
| 80 |
+
- ++dataset.converted_name=demon_attack_train__bridge
|
| 81 |
+
- ++dataset.single_source_hf=
|
| 82 |
+
- ++dataset.mixed_source_hf=
|
| 83 |
+
- ++dataset.single_converted_name=demon_attack_train__bridge
|
| 84 |
+
- ++dataset.mixed_converted_name=demon_attack_mixed_latency_train__bridge
|
| 85 |
+
- ++dataset.single_latency_filter=null
|
| 86 |
+
- ++dataset.mixed_latency_filter=null
|
| 87 |
+
- ++dataset.force_download=false
|
| 88 |
+
- ++dataset.setup_force=false
|
| 89 |
+
- ++dataset.skip_verification=false
|
| 90 |
+
- ++dataset.target_latency_unit=observation_steps
|
| 91 |
+
- ++dataset.verify_rows=200
|
| 92 |
+
- ++dataset.max_episodes=200
|
| 93 |
+
- ++dataset.episodes_per_latency=null
|
| 94 |
+
- ++dataset.latency_filter=null
|
| 95 |
+
- ++dataset.debug_subset.enabled=false
|
| 96 |
+
- ++dataset.debug_subset.max_episodes=5
|
| 97 |
+
- ++dataset.debug_subset.suffix=debug
|
| 98 |
+
- ++base_model.repo_id=Wan-AI/Wan2.2-TI2V-5B-Diffusers
|
| 99 |
+
- ++initialization.checkpoint_local_dir=playground/Pretrained_models/WM4A-Wan2d2-OFT-LIBERO-4in1
|
| 100 |
+
- ++initialization.checkpoint_hf_repo_id=StarVLA/WM4A-Wan2d2-OFT-LIBERO-4in1
|
| 101 |
+
- ++initialization.checkpoint_filename=checkpoints/steps_60000_pytorch_model.pt
|
| 102 |
+
- ++trainer.max_train_steps=5000
|
| 103 |
+
- ++trainer.num_warmup_steps=0
|
| 104 |
+
- ++trainer.save_interval=500
|
| 105 |
+
- ++trainer.eval_interval=100
|
| 106 |
+
- ++trainer.eval_num_batches=100
|
| 107 |
+
- ++trainer.per_latency_eval_num_batches=null
|
| 108 |
+
- ++trainer.eval_action_classification=false
|
| 109 |
+
- ++trainer.eval_action_classification_interval=null
|
| 110 |
+
- ++trainer.cc_f1_tolerance=1
|
| 111 |
+
- ++trainer.learning_rate.base=2.5e-05
|
| 112 |
+
- ++trainer.learning_rate.qwen_vl_interface=1e-05
|
| 113 |
+
- ++trainer.learning_rate.action_model=0.0001
|
| 114 |
+
- ++trainer.learning_rate.action_query_proj=0.0001
|
| 115 |
+
- ++trainer.lr_scheduler_type=cosine_with_min_lr
|
| 116 |
+
- ++trainer.scheduler_specific_kwargs.min_lr=1e-06
|
| 117 |
+
- ++trainer.freeze_modules=
|
| 118 |
+
- ++trainer.freeze_vit=false
|
| 119 |
+
- ++trainer.freeze_tied_embedding=false
|
| 120 |
+
- ++trainer.freeze_llm_layers=[]
|
| 121 |
+
- ++trainer.loss_scale.vla=1.0
|
| 122 |
+
- ++trainer.loss_scale.vlm=0.1
|
| 123 |
+
- ++trainer.max_grad_norm=1.0
|
| 124 |
+
- ++trainer.weight_decay=0.0
|
| 125 |
+
- ++trainer.logging_frequency=1
|
| 126 |
+
- ++trainer.profile_timing.enabled=false
|
| 127 |
+
- ++trainer.profile_timing.log_interval=10
|
| 128 |
+
- ++trainer.gradient_clipping=1.0
|
| 129 |
+
- ++trainer.gradient_accumulation_steps=16
|
| 130 |
+
- ++trainer.distributed_backend=deepspeed
|
| 131 |
+
- ++trainer.is_resume=false
|
| 132 |
+
- ++trainer.pretrained_checkpoint=null
|
| 133 |
+
- ++trainer.resume_step=0
|
| 134 |
+
- ++trainer.reload_modules=null
|
| 135 |
+
- ++trainer.optimizer.name=AdamW
|
| 136 |
+
- ++trainer.optimizer.betas=[0.9,0.95]
|
| 137 |
+
- ++trainer.optimizer.eps=1e-08
|
| 138 |
+
- ++trainer.optimizer.weight_decay=1e-08
|
| 139 |
+
- ++trainer.optimizer.fused=true
|
| 140 |
+
- ++trainer.save_format=pt
|
| 141 |
+
- ++workspace_dir=WORKSPACE_DIR
|
| 142 |
+
- ++run_root_dir=results/Checkpoints
|
| 143 |
+
- ++seed=42
|
| 144 |
+
- ++auth.env_file=null
|
| 145 |
+
- ++auth.hf_token_env=HF_TOKEN
|
| 146 |
+
- ++auth.wandb_api_key_env=WANDB_API_KEY
|
| 147 |
+
- ++paths.run_root_dir=results/Checkpoints
|
| 148 |
+
- ++paths.dataset_local_dir=data/demon_attack_fix_latency_6_200ep_context5
|
| 149 |
+
- ++paths.dataset_cache_dir=null
|
| 150 |
+
- ++paths.base_model_dir=playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers
|
| 151 |
+
- ++paths.accelerate_config=starVLA/config/deepseeds/deepspeed_zero2.yaml
|
| 152 |
+
- ++rl_games.model_alias=wan_oft
|
| 153 |
+
- ++rl_games.env_eval.image_size=224
|
| 154 |
+
- ++rl_games.env_eval.frameskip=4
|
| 155 |
+
- ++rl_games.env_eval.image_transform=raw_rgb
|
| 156 |
+
- ++rl_games.env_eval.prompt_mode=raw
|
| 157 |
+
- ++rl_games.env_eval.ghost_trail.history_frames=5
|
| 158 |
+
- ++rl_games.env_eval.ghost_trail.gamma=1.3
|
| 159 |
+
- ++rl_games.env_eval.ghost_trail.min_alpha=35
|
| 160 |
+
- ++rl_games.env_eval.ghost_trail.scroll_px_per_step=4.0
|
| 161 |
+
- ++rl_games.env_eval.ghost_trail.ground_fraction=0.22
|
| 162 |
+
- ++rl_games.env_eval.seed=42
|
| 163 |
+
- ++rl_games.env_eval.fixed_episode_seeds=true
|
| 164 |
+
- ++rl_games.env_eval.latency_seed_stride=0
|
| 165 |
+
- ++rl_games.env_eval.task_seed_stride=0
|
| 166 |
+
- '++rl_games.env_eval.task_description=''You are playing Demon Attack from a single
|
| 167 |
+
game image. Choose exactly one action from: NOOP, FIRE, RIGHT, LEFT, RIGHTFIRE,
|
| 168 |
+
LEFTFIRE.'''
|
| 169 |
+
- ++rl_games.env_eval.eval_parallel_envs=5
|
| 170 |
+
- ++rl_games.env_eval.action_chunk_execution.enabled=false
|
| 171 |
+
- ++rl_games.env_eval.action_chunk_execution.chunk_size=null
|
| 172 |
+
- ++rl_games.env_eval.demon_attack.noop_max=30
|
| 173 |
+
- ++rl_games.env_eval.enabled=true
|
| 174 |
+
- ++rl_games.env_eval.eval_backend=eval_core
|
| 175 |
+
- ++rl_games.env_eval.distributed_mode=rank_sharded
|
| 176 |
+
- ++rl_games.env_eval.vectorized.enabled=false
|
| 177 |
+
- ++rl_games.env_eval.vectorized.batch_size=1
|
| 178 |
+
- ++rl_games.env_eval.latency.prompt_map_path=data/demon_attack_fix_latency_6_200ep_context5/demon_attack_train__bridge/latency_prompt_map.json
|
| 179 |
+
- ++rl_games.env_eval.latency.mode=single
|
| 180 |
+
- ++rl_games.env_eval.latency.values=[0]
|
| 181 |
+
- ++rl_games.env_eval.mid_train.enabled=false
|
| 182 |
+
- ++rl_games.env_eval.mid_train.interval_steps=100
|
| 183 |
+
- ++rl_games.env_eval.mid_train.latencies=[0]
|
| 184 |
+
- ++rl_games.env_eval.mid_train.num_episodes=5
|
| 185 |
+
- ++rl_games.env_eval.mid_train.max_steps_per_episode=3600
|
| 186 |
+
- ++rl_games.env_eval.post_train.enabled=false
|
| 187 |
+
- ++rl_games.env_eval.post_train.latencies=[6]
|
| 188 |
+
- ++rl_games.env_eval.post_train.num_episodes=20
|
| 189 |
+
- ++rl_games.env_eval.post_train.max_steps_per_episode=3600
|
| 190 |
+
- ++rl_games.task=demon_attack
|
| 191 |
+
- ++rl_games.initialization_mode=bridge
|
| 192 |
+
- ++rl_games.action_carrier=bridge
|
| 193 |
+
- ++checkpoint.load=auto
|
| 194 |
+
- ++checkpoint.hf_repo_id=null
|
| 195 |
+
- ++checkpoint.save_best_model=false
|
| 196 |
+
- ++checkpoint.save_final_model=true
|
| 197 |
+
- ++checkpoint.save_pt_file=true
|
| 198 |
+
- ++checkpoint.save_training_state=true
|
| 199 |
+
- ++checkpoint.save_safetensors_file=false
|
| 200 |
+
- ++checkpoint.local.keep_last_n=1
|
| 201 |
+
- ++checkpoint.sync.enabled=false
|
| 202 |
+
- ++checkpoint.sync.repo_id=null
|
| 203 |
+
- ++checkpoint.sync.keep_last_n=0
|
| 204 |
+
- ++checkpoint.sync.sync_every_n_checkpoints=1
|
| 205 |
+
- ++checkpoint.sync.resume_policy=local_latest
|
| 206 |
+
- ++run_id=wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce
|
| 207 |
+
- ++output_dir=null
|
| 208 |
+
- ++config_yaml=null
|
| 209 |
+
- ++is_debug=false
|
| 210 |
+
- ++version_id=0.21
|
| 211 |
+
- ++run_root_dir=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints
|
| 212 |
+
- ++trainer.is_resume=true
|
| 213 |
+
- ++trainer.pretrained_checkpoint=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/results/Checkpoints/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/checkpoints/steps_4000_state
|
| 214 |
+
- ++trainer.resume_step=4000
|
| 215 |
+
- ++datasets.vla_data.data_root_dir=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/data/demon_attack_fix_latency_6_200ep_context5
|
| 216 |
+
- ++framework.qwenvl.base_vlm=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers
|
| 217 |
+
- ++framework.world_model.base_wm=/lustre/fsw/portfolios/nvr/projects/nvr_lacr_llm/users/zihwang/wanoft_bench/third_party/starVLA/playground/Pretrained_models/Wan-AI/Wan2.2-TI2V-5B-Diffusers
|
evaluations/demon-attack/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/hydra/train_starvla_hydra.log
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluations/demon-attack/wan_oft_demon_attack_fix_latency_6_context5_standard_sft_5000_effbs128_224_currentce/summary.jsonl
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"steps": 500}
|
| 2 |
+
{"steps": 1000}
|
| 3 |
+
{"steps": 1500}
|
| 4 |
+
{"steps": 2000}
|
| 5 |
+
{"steps": 2500}
|
| 6 |
+
{"steps": 3000}
|
| 7 |
+
{"steps": 3500}
|
| 8 |
+
{"steps": 4000}
|
| 9 |
+
{"steps": 4500}
|
| 10 |
+
{"steps": 5000}
|
evaluations/flappy/memory_rollout_teacher:flappy:teacher:fixed_l3:fs4:obs30:stride1:seed0/train/memory_rollout_teacher:flappy:teacher:fixed_l3:fs4:obs30:stride1:seed0/episode_metrics.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db8769831ceffad9d0fa3a2970035339e038fdc549b9de3253d1dd05f5f9fb06
|
| 3 |
+
size 23536650
|
evaluations/flappy/memory_rollout_teacher:flappy:teacher:fixed_l3:fs4:obs30:stride1:seed0/train/memory_rollout_teacher:flappy:teacher:fixed_l3:fs4:obs30:stride1:seed0/git.diff
ADDED
|
@@ -0,0 +1,1947 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/configs/experiments/fixed_latency_curve.yaml b/configs/experiments/fixed_latency_curve.yaml
|
| 2 |
+
deleted file mode 100644
|
| 3 |
+
index 3ab184f..0000000
|
| 4 |
+
--- a/configs/experiments/fixed_latency_curve.yaml
|
| 5 |
+
+++ /dev/null
|
| 6 |
+
@@ -1,17 +0,0 @@
|
| 7 |
+
-__base__: ../base/dummy.yaml
|
| 8 |
+
-
|
| 9 |
+
-experiment:
|
| 10 |
+
- name: fixed_latency_curve
|
| 11 |
+
-
|
| 12 |
+
-executor:
|
| 13 |
+
- mode: simulated
|
| 14 |
+
-
|
| 15 |
+
-latency:
|
| 16 |
+
- method: fixed
|
| 17 |
+
- fixed_latency_ms: 100
|
| 18 |
+
-
|
| 19 |
+
-evaluation:
|
| 20 |
+
- eval_episodes: 20
|
| 21 |
+
-
|
| 22 |
+
-logging:
|
| 23 |
+
- output_dir: outputs/fixed_latency_curve
|
| 24 |
+
diff --git a/configs/experiments/flappy/frame_stack/base.yaml b/configs/experiments/flappy/frame_stack/base.yaml
|
| 25 |
+
deleted file mode 100644
|
| 26 |
+
index f1557d5..0000000
|
| 27 |
+
--- a/configs/experiments/flappy/frame_stack/base.yaml
|
| 28 |
+
+++ /dev/null
|
| 29 |
+
@@ -1,123 +0,0 @@
|
| 30 |
+
-experiment:
|
| 31 |
+
- name: flappy_base
|
| 32 |
+
- seed: 0
|
| 33 |
+
-
|
| 34 |
+
-backend:
|
| 35 |
+
- type: sample_factory
|
| 36 |
+
- algo: APPO
|
| 37 |
+
- device: cuda
|
| 38 |
+
- train_dir: results/checkpoints
|
| 39 |
+
- restart_behavior: resume
|
| 40 |
+
- run_mode: train
|
| 41 |
+
-
|
| 42 |
+
-executor:
|
| 43 |
+
- mode: simulated
|
| 44 |
+
-
|
| 45 |
+
-env:
|
| 46 |
+
- name: flappy
|
| 47 |
+
- # note that env_fps must be an integer multiple of obs_fps!
|
| 48 |
+
- env_fps: 30
|
| 49 |
+
- obs_fps: 30
|
| 50 |
+
- gym_id: FlappyBird-v0
|
| 51 |
+
- render_mode: rgb_array
|
| 52 |
+
- observation_mode: image
|
| 53 |
+
- use_lidar: false
|
| 54 |
+
- normalize_obs: true
|
| 55 |
+
- audio_on: false
|
| 56 |
+
- frame_stack: 4
|
| 57 |
+
- obs_resize:
|
| 58 |
+
- - 84
|
| 59 |
+
- - 84
|
| 60 |
+
- # for training it could be true, but for realtime mode, THIS MUST BE FALSE!
|
| 61 |
+
- use_gpu_render: true
|
| 62 |
+
- simulator: gpu
|
| 63 |
+
- gpu_render_device: auto
|
| 64 |
+
- gpu_render_profile: false
|
| 65 |
+
- gpu_render_profile_interval: 200
|
| 66 |
+
- noop_action: noop
|
| 67 |
+
- action_map:
|
| 68 |
+
- noop: 0
|
| 69 |
+
- flap: 1
|
| 70 |
+
- oneshot_actions:
|
| 71 |
+
- - flap
|
| 72 |
+
-
|
| 73 |
+
-latency:
|
| 74 |
+
- method: normal
|
| 75 |
+
- mean_latency_ms: 66.7
|
| 76 |
+
- std_latency_ms: 33.3
|
| 77 |
+
- min_latency_ms: 0
|
| 78 |
+
- max_latency_ms: 500.0
|
| 79 |
+
-
|
| 80 |
+
-
|
| 81 |
+
-scheduler:
|
| 82 |
+
- # [one_frame_then_noop, hold]
|
| 83 |
+
- # if hold, default hold duration is: env_fps / obs_fps
|
| 84 |
+
- hold_policy: one_frame_then_noop
|
| 85 |
+
- # can be either `issue_order_fifo` or `latest ready`
|
| 86 |
+
- ordering_policy: latest_ready
|
| 87 |
+
-
|
| 88 |
+
-policy:
|
| 89 |
+
- type: random
|
| 90 |
+
- actions:
|
| 91 |
+
- - noop
|
| 92 |
+
- - flap
|
| 93 |
+
-
|
| 94 |
+
-training:
|
| 95 |
+
- train_for_env_steps: 25000000
|
| 96 |
+
- num_workers: 2
|
| 97 |
+
- num_envs_per_worker: 128
|
| 98 |
+
- worker_num_splits: 1
|
| 99 |
+
- num_policies: 1
|
| 100 |
+
- batch_size: 4096
|
| 101 |
+
- rollout: 128
|
| 102 |
+
- recurrence: 1
|
| 103 |
+
- num_epochs: 8
|
| 104 |
+
- num_batches_per_epoch: 8
|
| 105 |
+
- max_policy_lag: 400
|
| 106 |
+
- learning_rate: 0.00025
|
| 107 |
+
- gamma: 0.99
|
| 108 |
+
- gae_lambda: 0.95
|
| 109 |
+
- ppo_clip_ratio: 0.1
|
| 110 |
+
- ppo_clip_value: 0.2
|
| 111 |
+
- value_loss_coeff: 0.5
|
| 112 |
+
- max_grad_norm: 0.5
|
| 113 |
+
- async_rl: true
|
| 114 |
+
- use_rnn: false
|
| 115 |
+
- normalize_input: true
|
| 116 |
+
- normalize_returns: true
|
| 117 |
+
- stats_avg: 100
|
| 118 |
+
- experiment_summaries_interval: 1
|
| 119 |
+
- save_every_sec: 600
|
| 120 |
+
- keep_checkpoints: 5
|
| 121 |
+
-
|
| 122 |
+
-evaluation:
|
| 123 |
+
- eval_interval_steps: 1000000
|
| 124 |
+
- eval_episodes: 100
|
| 125 |
+
- eval_parallel_envs: 100
|
| 126 |
+
- eval_max_steps: 3600
|
| 127 |
+
- eval_deterministic: true
|
| 128 |
+
- eval_raw_reward: false
|
| 129 |
+
- eval_suites:
|
| 130 |
+
- fixed:
|
| 131 |
+
- - [0, 8] # [start, end]
|
| 132 |
+
- normal:
|
| 133 |
+
- - [2.0, 0.5, 0, 15] # low latency, low jitter
|
| 134 |
+
- - [2.0, 1.0, 0, 15] # low latency, medium jitter
|
| 135 |
+
- - [4.0, 0.5, 0, 15] # high latency, low jitter
|
| 136 |
+
- - [4.0, 1.0, 0, 15] # high latency, medium jitter
|
| 137 |
+
- - [4.0, 2.0, 0, 15] # high latency, high jitter
|
| 138 |
+
- uniform:
|
| 139 |
+
- - [1, 3] # low latency, low jitter
|
| 140 |
+
- - [0, 4] # low latency, high jitter
|
| 141 |
+
- - [3, 5] # high latency, low jitter
|
| 142 |
+
- - [2, 6] # high latency, high jitter
|
| 143 |
+
-
|
| 144 |
+
-logging:
|
| 145 |
+
- output_dir: outputs/flappy_base
|
| 146 |
+
- save_step_records: true
|
| 147 |
+
- save_action_records: true
|
| 148 |
+
- save_latency_records: true
|
| 149 |
+
- wandb_project: latency-sensitive-bench
|
| 150 |
+
- wandb_group: flappy-frame_stack
|
| 151 |
+
- wandb_job_type: sample_factory
|
| 152 |
+
- wandb_tags: ""
|
| 153 |
+
diff --git a/latency_bench/data/exporters/starvla_lerobot.py b/latency_bench/data/exporters/starvla_lerobot.py
|
| 154 |
+
index c693460..4ad276a 100644
|
| 155 |
+
--- a/latency_bench/data/exporters/starvla_lerobot.py
|
| 156 |
+
+++ b/latency_bench/data/exporters/starvla_lerobot.py
|
| 157 |
+
@@ -18,12 +18,17 @@ from latency_bench.utils.io import write_jsonl
|
| 158 |
+
from latency_bench.data.action_layouts import action_spec_for_env
|
| 159 |
+
from latency_bench.data.filters import density_weights_clean_v1
|
| 160 |
+
|
| 161 |
+
-FPS_BY_ENV = {
|
| 162 |
+
- "flappy": 30,
|
| 163 |
+
- "demon_attack": 60,
|
| 164 |
+
- "deadly_corridor": 35,
|
| 165 |
+
-}
|
| 166 |
+
STATE_DIM = 1
|
| 167 |
+
+BRIDGE_DIM = 7
|
| 168 |
+
+DEADLY_CORRIDOR_BRIDGE_ACTION_LABELS = (
|
| 169 |
+
+ "MOVE_FORWARD",
|
| 170 |
+
+ "MOVE_BACKWARD",
|
| 171 |
+
+ "MOVE_LEFT",
|
| 172 |
+
+ "MOVE_RIGHT",
|
| 173 |
+
+ "TURN_LEFT",
|
| 174 |
+
+ "TURN_RIGHT",
|
| 175 |
+
+ "ATTACK",
|
| 176 |
+
+)
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
def _png_bytes(image: Any) -> bytes:
|
| 180 |
+
@@ -64,30 +69,38 @@ def _load_rows(raw_export_dir: Path, split: str) -> list[dict[str, Any]]:
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
def _episode_groups(rows: list[dict[str, Any]]) -> list[list[dict[str, Any]]]:
|
| 184 |
+
- """Group canonical rows by episode and order by decision step.
|
| 185 |
+
+ """Group canonical rows by trajectory and order by decision step.
|
| 186 |
+
|
| 187 |
+
Args:
|
| 188 |
+
rows: Canonical rollout rows from one split.
|
| 189 |
+
|
| 190 |
+
Returns:
|
| 191 |
+
- Episode row groups sorted by episode index.
|
| 192 |
+
+ Trajectory row groups sorted by episode and trajectory index.
|
| 193 |
+
"""
|
| 194 |
+
- grouped: dict[int, list[dict[str, Any]]] = {}
|
| 195 |
+
+ grouped: dict[tuple[int, int], list[dict[str, Any]]] = {}
|
| 196 |
+
for row in rows:
|
| 197 |
+
- grouped.setdefault(int(row["episode_idx"]), []).append(row)
|
| 198 |
+
+ key = (int(row["episode_idx"]), int(row["trajectory_idx"]))
|
| 199 |
+
+ grouped.setdefault(key, []).append(row)
|
| 200 |
+
return [
|
| 201 |
+
sorted(episode_rows, key=lambda row: int(row["decision_step"]))
|
| 202 |
+
for _, episode_rows in sorted(grouped.items())
|
| 203 |
+
]
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
-def _write_episode(path: Path, rows: list[dict[str, Any]], *, action_dim: int) -> None:
|
| 207 |
+
+def _write_episode(
|
| 208 |
+
+ path: Path,
|
| 209 |
+
+ rows: list[dict[str, Any]],
|
| 210 |
+
+ *,
|
| 211 |
+
+ action_dim: int,
|
| 212 |
+
+ state_dim: int,
|
| 213 |
+
+) -> None:
|
| 214 |
+
"""Write one LeRobot episode parquet file.
|
| 215 |
+
|
| 216 |
+
Args:
|
| 217 |
+
path: Destination episode parquet path.
|
| 218 |
+
rows: Converted LeRobot frame rows.
|
| 219 |
+
action_dim: Expected action vector dimension.
|
| 220 |
+
+ state_dim: Expected state carrier dimension.
|
| 221 |
+
"""
|
| 222 |
+
path.parent.mkdir(parents=True, exist_ok=True)
|
| 223 |
+
table = pa.table(
|
| 224 |
+
@@ -97,8 +110,8 @@ def _write_episode(path: Path, rows: list[dict[str, Any]], *, action_dim: int) -
|
| 225 |
+
type=pa.struct([("bytes", pa.binary()), ("path", pa.string())]),
|
| 226 |
+
),
|
| 227 |
+
"observation.state": pa.array(
|
| 228 |
+
- [[0.0] * STATE_DIM for _ in rows],
|
| 229 |
+
- type=pa.list_(pa.float32(), STATE_DIM),
|
| 230 |
+
+ [[0.0] * state_dim for _ in rows],
|
| 231 |
+
+ type=pa.list_(pa.float32(), state_dim),
|
| 232 |
+
),
|
| 233 |
+
"action": pa.array(
|
| 234 |
+
[row["action"] for row in rows],
|
| 235 |
+
@@ -131,11 +144,47 @@ def _row_action_vector(row: dict[str, Any], *, action_dim: int) -> list[float]:
|
| 236 |
+
return [1.0 if idx == action_id else 0.0 for idx in range(action_dim)]
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
+def _bridge_action_vector(
|
| 240 |
+
+ row: dict[str, Any],
|
| 241 |
+
+ *,
|
| 242 |
+
+ env_name: str,
|
| 243 |
+
+ active_action_dim: int,
|
| 244 |
+
+) -> list[float]:
|
| 245 |
+
+ if env_name == "deadly_corridor":
|
| 246 |
+
+ action_text = str(row["action_text"]).upper()
|
| 247 |
+
+ return [
|
| 248 |
+
+ 1.0 if label in action_text else 0.0
|
| 249 |
+
+ for label in DEADLY_CORRIDOR_BRIDGE_ACTION_LABELS
|
| 250 |
+
+ ]
|
| 251 |
+
+ action = _row_action_vector(row, action_dim=active_action_dim)
|
| 252 |
+
+ return [*action, *([0.0] * (BRIDGE_DIM - active_action_dim))]
|
| 253 |
+
+
|
| 254 |
+
+
|
| 255 |
+
+def _target_action_labels(
|
| 256 |
+
+ *,
|
| 257 |
+
+ env_name: str,
|
| 258 |
+
+ source_action_labels: list[str],
|
| 259 |
+
+ action_carrier: str,
|
| 260 |
+
+) -> list[str]:
|
| 261 |
+
+ if action_carrier == "native":
|
| 262 |
+
+ return source_action_labels
|
| 263 |
+
+ if env_name == "deadly_corridor":
|
| 264 |
+
+ return list(DEADLY_CORRIDOR_BRIDGE_ACTION_LABELS)
|
| 265 |
+
+ return [
|
| 266 |
+
+ *source_action_labels,
|
| 267 |
+
+ *[
|
| 268 |
+
+ f"BRIDGE_PAD_{idx}"
|
| 269 |
+
+ for idx in range(len(source_action_labels), BRIDGE_DIM)
|
| 270 |
+
+ ],
|
| 271 |
+
+ ]
|
| 272 |
+
+
|
| 273 |
+
+
|
| 274 |
+
def _write_metadata(
|
| 275 |
+
dataset_dir: Path,
|
| 276 |
+
*,
|
| 277 |
+
- fps: int,
|
| 278 |
+
+ fps: float,
|
| 279 |
+
action_labels: list[str],
|
| 280 |
+
+ state_dim: int,
|
| 281 |
+
episode_lengths: list[int],
|
| 282 |
+
task_prompts: list[str],
|
| 283 |
+
) -> None:
|
| 284 |
+
@@ -144,7 +193,8 @@ def _write_metadata(
|
| 285 |
+
Args:
|
| 286 |
+
dataset_dir: LeRobot dataset split directory.
|
| 287 |
+
fps: Frame rate stored in metadata.
|
| 288 |
+
- action_labels: Canonical action labels in vector order.
|
| 289 |
+
+ action_labels: Target action labels in vector order.
|
| 290 |
+
+ state_dim: State carrier dimension.
|
| 291 |
+
episode_lengths: Number of frames per converted episode.
|
| 292 |
+
task_prompts: Unique prompts used as LeRobot tasks.
|
| 293 |
+
"""
|
| 294 |
+
@@ -155,10 +205,10 @@ def _write_metadata(
|
| 295 |
+
json.dumps(
|
| 296 |
+
{
|
| 297 |
+
"codebase_version": "v2.0",
|
| 298 |
+
- "fps": int(fps),
|
| 299 |
+
+ "fps": fps,
|
| 300 |
+
"features": {
|
| 301 |
+
"observation.image": {"dtype": "image"},
|
| 302 |
+
- "observation.state": {"dtype": "float32", "shape": [STATE_DIM]},
|
| 303 |
+
+ "observation.state": {"dtype": "float32", "shape": [state_dim]},
|
| 304 |
+
"action": {"dtype": "float32", "shape": [action_dim], "names": action_labels},
|
| 305 |
+
"timestamp": {"dtype": "float64", "shape": [1]},
|
| 306 |
+
"episode_index": {"dtype": "int64", "shape": [1]},
|
| 307 |
+
@@ -183,9 +233,11 @@ def _convert_split(
|
| 308 |
+
*,
|
| 309 |
+
env_name: str,
|
| 310 |
+
action_labels: list[str],
|
| 311 |
+
- fps: int,
|
| 312 |
+
+ fps: float,
|
| 313 |
+
reward_field: str,
|
| 314 |
+
- obs_stride: int = 1,
|
| 315 |
+
+ action_carrier: str,
|
| 316 |
+
+ active_action_dim: int,
|
| 317 |
+
+ state_dim: int,
|
| 318 |
+
density_weighting: bool = False,
|
| 319 |
+
) -> dict[str, Any]:
|
| 320 |
+
"""Convert one canonical rollout split into a LeRobot dataset directory.
|
| 321 |
+
@@ -195,13 +247,11 @@ def _convert_split(
|
| 322 |
+
output_dir: Destination LeRobot split directory.
|
| 323 |
+
env_name: Canonical benchmark environment name.
|
| 324 |
+
action_labels: Canonical action labels in vector order.
|
| 325 |
+
- fps: Frame rate used for timestamps.
|
| 326 |
+
+ fps: Observation frame rate used for timestamps.
|
| 327 |
+
reward_field: Source canonical reward column.
|
| 328 |
+
- obs_stride: Raw frames per observation decision (``round(env_fps/obs_fps)``).
|
| 329 |
+
- Canonical rows are recorded once per raw frame; keeping only the obs
|
| 330 |
+
- decisions (``decision_step % obs_stride == 0``) makes adjacent LeRobot
|
| 331 |
+
- rows adjacent observations, so KV-memory rollouts unroll at the eval
|
| 332 |
+
- observation cadence.
|
| 333 |
+
+ action_carrier: Target action/state carrier.
|
| 334 |
+
+ active_action_dim: Number of active environment action dimensions.
|
| 335 |
+
+ state_dim: Target state carrier dimension.
|
| 336 |
+
density_weighting: When True, write per-row ``density_weight`` from clean_v1's
|
| 337 |
+
event balancing (train split). When False, weights are uniform 1.0 (val
|
| 338 |
+
split keeps an unweighted held-out loss).
|
| 339 |
+
@@ -214,7 +264,6 @@ def _convert_split(
|
| 340 |
+
task_prompts: list[str] = []
|
| 341 |
+
episode_lengths: list[int] = []
|
| 342 |
+
for new_episode_idx, episode_rows in enumerate(_episode_groups(rows)):
|
| 343 |
+
- episode_rows = [row for row in episode_rows if int(row["decision_step"]) % obs_stride == 0]
|
| 344 |
+
density_weights = (
|
| 345 |
+
density_weights_clean_v1(env_name, episode_rows)
|
| 346 |
+
if density_weighting
|
| 347 |
+
@@ -231,8 +280,14 @@ def _convert_split(
|
| 348 |
+
out_rows.append(
|
| 349 |
+
{
|
| 350 |
+
"image_bytes": _png_bytes(row["image"]),
|
| 351 |
+
- "action": _row_action_vector(row, action_dim=len(action_labels)),
|
| 352 |
+
- "timestamp": float(frame_idx) / int(fps),
|
| 353 |
+
+ "action": _bridge_action_vector(
|
| 354 |
+
+ row,
|
| 355 |
+
+ env_name=env_name,
|
| 356 |
+
+ active_action_dim=active_action_dim,
|
| 357 |
+
+ )
|
| 358 |
+
+ if action_carrier == "bridge"
|
| 359 |
+
+ else _row_action_vector(row, action_dim=len(action_labels)),
|
| 360 |
+
+ "timestamp": float(frame_idx) / fps,
|
| 361 |
+
"episode_index": new_episode_idx,
|
| 362 |
+
"frame_index": frame_idx,
|
| 363 |
+
"task_index": prompt_to_task_index[prompt],
|
| 364 |
+
@@ -248,11 +303,13 @@ def _convert_split(
|
| 365 |
+
output_dir / f"data/chunk-{episode_chunk:03d}/episode_{new_episode_idx:06d}.parquet",
|
| 366 |
+
out_rows,
|
| 367 |
+
action_dim=len(action_labels),
|
| 368 |
+
+ state_dim=state_dim,
|
| 369 |
+
)
|
| 370 |
+
_write_metadata(
|
| 371 |
+
output_dir,
|
| 372 |
+
fps=fps,
|
| 373 |
+
action_labels=action_labels,
|
| 374 |
+
+ state_dim=state_dim,
|
| 375 |
+
episode_lengths=episode_lengths,
|
| 376 |
+
task_prompts=task_prompts,
|
| 377 |
+
)
|
| 378 |
+
@@ -269,6 +326,7 @@ def convert_canonical_rollout_to_lerobot(
|
| 379 |
+
raw_export_dir: Path | str,
|
| 380 |
+
output_dir: Path | str,
|
| 381 |
+
*,
|
| 382 |
+
+ action_carrier: str = "native",
|
| 383 |
+
force: bool = False,
|
| 384 |
+
) -> dict[str, Any]:
|
| 385 |
+
"""Convert a canonical rollout export into train/val LeRobot datasets.
|
| 386 |
+
@@ -276,6 +334,7 @@ def convert_canonical_rollout_to_lerobot(
|
| 387 |
+
Args:
|
| 388 |
+
raw_export_dir: Directory with canonical rollout parquet files and metadata.
|
| 389 |
+
output_dir: Destination LeRobot train dataset directory.
|
| 390 |
+
+ action_carrier: Target action/state carrier, ``native`` or ``bridge``.
|
| 391 |
+
force: Remove existing train/val output directories before writing.
|
| 392 |
+
|
| 393 |
+
Returns:
|
| 394 |
+
@@ -286,11 +345,20 @@ def convert_canonical_rollout_to_lerobot(
|
| 395 |
+
metadata = json.loads((raw_export_dir / "metadata.json").read_text(encoding="utf-8"))
|
| 396 |
+
env_name = str(metadata["env_name"])
|
| 397 |
+
action_spec = action_spec_for_env(env_name)
|
| 398 |
+
- action_labels = list(metadata["action_labels"])
|
| 399 |
+
+ source_action_labels = list(metadata["action_labels"])
|
| 400 |
+
+ action_labels = _target_action_labels(
|
| 401 |
+
+ env_name=env_name,
|
| 402 |
+
+ source_action_labels=source_action_labels,
|
| 403 |
+
+ action_carrier=action_carrier,
|
| 404 |
+
+ )
|
| 405 |
+
+ active_action_dim = {
|
| 406 |
+
+ "flappy": 2,
|
| 407 |
+
+ "demon_attack": 6,
|
| 408 |
+
+ "deadly_corridor": 7,
|
| 409 |
+
+ }[env_name]
|
| 410 |
+
+ state_dim = {"native": STATE_DIM, "bridge": BRIDGE_DIM}[action_carrier]
|
| 411 |
+
reward_field = str(metadata["reward_field"])
|
| 412 |
+
- obs_stride = int(metadata.get("obs_stride_raw_frames", 1))
|
| 413 |
+
- # Rows survive at the observation cadence, so timestamps advance at obs_fps.
|
| 414 |
+
- fps = max(1, int(FPS_BY_ENV[env_name]) // obs_stride)
|
| 415 |
+
+ fps = metadata["obs_fps"]
|
| 416 |
+
val_output_dir = output_dir.with_name(f"{output_dir.name}__val")
|
| 417 |
+
if output_dir.exists() and force:
|
| 418 |
+
shutil.rmtree(output_dir)
|
| 419 |
+
@@ -303,7 +371,9 @@ def convert_canonical_rollout_to_lerobot(
|
| 420 |
+
action_labels=action_labels,
|
| 421 |
+
fps=fps,
|
| 422 |
+
reward_field=reward_field,
|
| 423 |
+
- obs_stride=obs_stride,
|
| 424 |
+
+ action_carrier=action_carrier,
|
| 425 |
+
+ active_action_dim=active_action_dim,
|
| 426 |
+
+ state_dim=state_dim,
|
| 427 |
+
density_weighting=True,
|
| 428 |
+
)
|
| 429 |
+
val_manifest = _convert_split(
|
| 430 |
+
@@ -313,7 +383,9 @@ def convert_canonical_rollout_to_lerobot(
|
| 431 |
+
action_labels=action_labels,
|
| 432 |
+
fps=fps,
|
| 433 |
+
reward_field=reward_field,
|
| 434 |
+
- obs_stride=obs_stride,
|
| 435 |
+
+ action_carrier=action_carrier,
|
| 436 |
+
+ active_action_dim=active_action_dim,
|
| 437 |
+
+ state_dim=state_dim,
|
| 438 |
+
density_weighting=False,
|
| 439 |
+
)
|
| 440 |
+
manifest = {
|
| 441 |
+
@@ -321,9 +393,13 @@ def convert_canonical_rollout_to_lerobot(
|
| 442 |
+
"format": "starvla_lerobot_v2_image_parquet",
|
| 443 |
+
"source": str(raw_export_dir),
|
| 444 |
+
"action_layout": str(metadata["action_layout"]),
|
| 445 |
+
+ "action_carrier": action_carrier,
|
| 446 |
+
"action_labels": action_labels,
|
| 447 |
+
"action_dim": len(action_labels),
|
| 448 |
+
- "active_action_dim": len(action_spec.labels),
|
| 449 |
+
+ "active_action_dim": active_action_dim
|
| 450 |
+
+ if action_carrier == "bridge"
|
| 451 |
+
+ else len(action_spec.labels),
|
| 452 |
+
+ "state_dim": state_dim,
|
| 453 |
+
"validation_dataset_name": val_output_dir.name,
|
| 454 |
+
"validation_episodes": val_manifest["episodes"],
|
| 455 |
+
"validation_frames": val_manifest["frames"],
|
| 456 |
+
diff --git a/latency_bench/data/hf_parquet.py b/latency_bench/data/hf_parquet.py
|
| 457 |
+
index 7a26426..6163c0d 100644
|
| 458 |
+
--- a/latency_bench/data/hf_parquet.py
|
| 459 |
+
+++ b/latency_bench/data/hf_parquet.py
|
| 460 |
+
@@ -205,7 +205,9 @@ def completed_episode_indices_from_shards(output_dir: Path) -> set[int]:
|
| 461 |
+
with shard_path.open("r", encoding="utf-8") as handle:
|
| 462 |
+
for line in handle:
|
| 463 |
+
if line.strip():
|
| 464 |
+
- completed_episode_indices.add(int(json.loads(line)["episode_idx"]))
|
| 465 |
+
+ row = json.loads(line)
|
| 466 |
+
+ row["trajectory_idx"]
|
| 467 |
+
+ completed_episode_indices.add(int(row["episode_idx"]))
|
| 468 |
+
break
|
| 469 |
+
return completed_episode_indices
|
| 470 |
+
|
| 471 |
+
diff --git a/latency_bench/data/rollout_schema.py b/latency_bench/data/rollout_schema.py
|
| 472 |
+
index 11426b9..21d2bf5 100644
|
| 473 |
+
--- a/latency_bench/data/rollout_schema.py
|
| 474 |
+
+++ b/latency_bench/data/rollout_schema.py
|
| 475 |
+
@@ -7,11 +7,12 @@ from datasets import Features, Image as HFImage, Sequence as HFSequence, Value
|
| 476 |
+
from latency_bench.data.action_layouts import ActionSpec
|
| 477 |
+
|
| 478 |
+
|
| 479 |
+
-SCHEMA_VERSION = 2
|
| 480 |
+
+SCHEMA_VERSION = 3
|
| 481 |
+
CANONICAL_ROW_FIELDS = (
|
| 482 |
+
"image",
|
| 483 |
+
"env_name",
|
| 484 |
+
"episode_idx",
|
| 485 |
+
+ "trajectory_idx",
|
| 486 |
+
"decision_step",
|
| 487 |
+
"split",
|
| 488 |
+
"seed",
|
| 489 |
+
@@ -26,6 +27,7 @@ def _rollout_feature_map(action_spec: ActionSpec) -> dict[str, Any]:
|
| 490 |
+
"image": HFImage(),
|
| 491 |
+
"env_name": Value("string"),
|
| 492 |
+
"episode_idx": Value("int64"),
|
| 493 |
+
+ "trajectory_idx": Value("int64"),
|
| 494 |
+
"decision_step": Value("int64"),
|
| 495 |
+
"split": Value("string"),
|
| 496 |
+
"seed": Value("int64"),
|
| 497 |
+
diff --git a/latency_bench/data/sf_teacher_rollout.py b/latency_bench/data/sf_teacher_rollout.py
|
| 498 |
+
index af2b64f..bbbd157 100644
|
| 499 |
+
--- a/latency_bench/data/sf_teacher_rollout.py
|
| 500 |
+
+++ b/latency_bench/data/sf_teacher_rollout.py
|
| 501 |
+
@@ -355,6 +355,7 @@ def _write_filtered_episode_images(
|
| 502 |
+
image_writer: RolloutImageWriter,
|
| 503 |
+
rows: list[dict[str, Any]],
|
| 504 |
+
frames_by_decision_step: Mapping[int, np.ndarray],
|
| 505 |
+
+ trajectory_by_decision_step: Mapping[int, int],
|
| 506 |
+
*,
|
| 507 |
+
context_window: int,
|
| 508 |
+
) -> list[dict[str, Any]]:
|
| 509 |
+
@@ -364,6 +365,7 @@ def _write_filtered_episode_images(
|
| 510 |
+
image_writer: Image writer shared by the rollout run.
|
| 511 |
+
rows: Final rows selected for materialization.
|
| 512 |
+
frames_by_decision_step: Captured frames keyed by decision step.
|
| 513 |
+
+ trajectory_by_decision_step: Trajectory index keyed by decision step.
|
| 514 |
+
context_window: Total image window length including the current ``image`` field.
|
| 515 |
+
|
| 516 |
+
Returns:
|
| 517 |
+
@@ -371,10 +373,15 @@ def _write_filtered_episode_images(
|
| 518 |
+
"""
|
| 519 |
+
if not rows:
|
| 520 |
+
return []
|
| 521 |
+
- available_decision_steps = sorted(frames_by_decision_step)
|
| 522 |
+
required_steps: set[int] = set()
|
| 523 |
+
for row in rows:
|
| 524 |
+
decision_step = int(row["decision_step"])
|
| 525 |
+
+ trajectory_idx = int(row["trajectory_idx"])
|
| 526 |
+
+ available_decision_steps = sorted(
|
| 527 |
+
+ step
|
| 528 |
+
+ for step, step_trajectory_idx in trajectory_by_decision_step.items()
|
| 529 |
+
+ if step_trajectory_idx == trajectory_idx
|
| 530 |
+
+ )
|
| 531 |
+
required_steps.add(decision_step)
|
| 532 |
+
if int(context_window) > 1:
|
| 533 |
+
required_steps.update(
|
| 534 |
+
@@ -396,6 +403,12 @@ def _write_filtered_episode_images(
|
| 535 |
+
for row in rows:
|
| 536 |
+
written = dict(row)
|
| 537 |
+
decision_step = int(written["decision_step"])
|
| 538 |
+
+ trajectory_idx = int(written["trajectory_idx"])
|
| 539 |
+
+ available_decision_steps = sorted(
|
| 540 |
+
+ step
|
| 541 |
+
+ for step, step_trajectory_idx in trajectory_by_decision_step.items()
|
| 542 |
+
+ if step_trajectory_idx == trajectory_idx
|
| 543 |
+
+ )
|
| 544 |
+
written["image"] = written_paths_by_step[decision_step]
|
| 545 |
+
if int(context_window) > 1:
|
| 546 |
+
written["context_images"] = [
|
| 547 |
+
@@ -804,6 +817,7 @@ def _replay_accepted_specs(
|
| 548 |
+
active_episode_rows: list[list[dict[str, Any]]] = [[] for _ in range(driver.slot_count)]
|
| 549 |
+
active_episode_frames: list[list[np.ndarray]] = [[] for _ in range(driver.slot_count)]
|
| 550 |
+
active_decision_steps = [0 for _ in range(driver.slot_count)]
|
| 551 |
+
+ active_trajectory_indices = [0 for _ in range(driver.slot_count)]
|
| 552 |
+
active_ghost_streams: list[Any | None] = [None for _ in range(driver.slot_count)]
|
| 553 |
+
rnn_states = torch.zeros([driver.slot_count, rnn_size], dtype=torch.float32, device=device)
|
| 554 |
+
image_writer = RolloutImageWriter(
|
| 555 |
+
@@ -844,6 +858,7 @@ def _replay_accepted_specs(
|
| 556 |
+
active_episode_rows[slot] = []
|
| 557 |
+
active_episode_frames[slot] = []
|
| 558 |
+
active_decision_steps[slot] = 0
|
| 559 |
+
+ active_trajectory_indices[slot] = 0
|
| 560 |
+
rnn_states[slot].zero_()
|
| 561 |
+
|
| 562 |
+
with tqdm(total=len(specs_to_replay), initial=0, unit="episode") as progress:
|
| 563 |
+
@@ -881,21 +896,21 @@ def _replay_accepted_specs(
|
| 564 |
+
next_decision_step=next_decision_step,
|
| 565 |
+
max_steps_per_episode=int(max_steps_per_episode),
|
| 566 |
+
)
|
| 567 |
+
- if not life_loss_boundary:
|
| 568 |
+
- active_episode_frames[slot].append(np.array(image_frame, copy=True))
|
| 569 |
+
- row = teacher_dataset_row(
|
| 570 |
+
- env_name=env_name,
|
| 571 |
+
- spec=spec,
|
| 572 |
+
- decision_step=decision_step,
|
| 573 |
+
- image=str(image_path),
|
| 574 |
+
- raw_action=raw_actions[batch_idx],
|
| 575 |
+
- info=step_result.info,
|
| 576 |
+
- reward=step_result.reward,
|
| 577 |
+
- env_fps=env_fps,
|
| 578 |
+
- obs_fps=obs_fps,
|
| 579 |
+
- image_transform=image_transform_config.normalized_transform(),
|
| 580 |
+
- )
|
| 581 |
+
- active_episode_rows[slot].append(row)
|
| 582 |
+
+ active_episode_frames[slot].append(np.array(image_frame, copy=True))
|
| 583 |
+
+ row = teacher_dataset_row(
|
| 584 |
+
+ env_name=env_name,
|
| 585 |
+
+ spec=spec,
|
| 586 |
+
+ trajectory_idx=active_trajectory_indices[slot],
|
| 587 |
+
+ decision_step=decision_step,
|
| 588 |
+
+ image=str(image_path),
|
| 589 |
+
+ raw_action=raw_actions[batch_idx],
|
| 590 |
+
+ info=step_result.info,
|
| 591 |
+
+ reward=step_result.reward,
|
| 592 |
+
+ env_fps=env_fps,
|
| 593 |
+
+ obs_fps=obs_fps,
|
| 594 |
+
+ image_transform=image_transform_config.normalized_transform(),
|
| 595 |
+
+ )
|
| 596 |
+
+ active_episode_rows[slot].append(row)
|
| 597 |
+
rnn_states[slot] = new_rnn_states[batch_idx]
|
| 598 |
+
if episode_done:
|
| 599 |
+
final_rows = _finalize_attempt_rows(
|
| 600 |
+
@@ -931,6 +946,10 @@ def _replay_accepted_specs(
|
| 601 |
+
image_writer,
|
| 602 |
+
shard_rows,
|
| 603 |
+
frames_by_decision_step,
|
| 604 |
+
+ {
|
| 605 |
+
+ int(row["decision_step"]): int(row["trajectory_idx"])
|
| 606 |
+
+ for row in final_rows
|
| 607 |
+
+ },
|
| 608 |
+
context_window=int(context_window),
|
| 609 |
+
)
|
| 610 |
+
write_episode_row_shard(output_dir, shard_rows)
|
| 611 |
+
@@ -943,12 +962,14 @@ def _replay_accepted_specs(
|
| 612 |
+
active_episode_rows[slot] = []
|
| 613 |
+
active_episode_frames[slot] = []
|
| 614 |
+
active_decision_steps[slot] = 0
|
| 615 |
+
+ active_trajectory_indices[slot] = 0
|
| 616 |
+
if _is_demon_ghost_trail:
|
| 617 |
+
active_ghost_streams[slot] = None
|
| 618 |
+
rnn_states[slot].zero_()
|
| 619 |
+
else:
|
| 620 |
+
if life_loss_boundary:
|
| 621 |
+
active_obs[slot], reset_info = driver.continue_after_life_loss(slot)
|
| 622 |
+
+ active_trajectory_indices[slot] += 1
|
| 623 |
+
if _is_demon_ghost_trail:
|
| 624 |
+
active_ghost_streams[slot].clear()
|
| 625 |
+
active_image_frames[slot] = frame_from_env_raw_rgb_info(reset_info).copy()
|
| 626 |
+
@@ -981,6 +1002,7 @@ def _replay_accepted_specs(
|
| 627 |
+
active_episode_rows[slot] = []
|
| 628 |
+
active_episode_frames[slot] = []
|
| 629 |
+
active_decision_steps[slot] = 0
|
| 630 |
+
+ active_trajectory_indices[slot] = 0
|
| 631 |
+
rnn_states[slot].zero_()
|
| 632 |
+
else:
|
| 633 |
+
if isinstance(driver, BatchedTeacherRolloutDriver):
|
| 634 |
+
diff --git a/latency_bench/data/sf_teacher_rows.py b/latency_bench/data/sf_teacher_rows.py
|
| 635 |
+
index efa6f3e..4e7ce9a 100644
|
| 636 |
+
--- a/latency_bench/data/sf_teacher_rows.py
|
| 637 |
+
+++ b/latency_bench/data/sf_teacher_rows.py
|
| 638 |
+
@@ -14,6 +14,7 @@ def teacher_dataset_row(
|
| 639 |
+
*,
|
| 640 |
+
env_name: str,
|
| 641 |
+
spec: Mapping[str, Any],
|
| 642 |
+
+ trajectory_idx: int,
|
| 643 |
+
decision_step: int,
|
| 644 |
+
image: str,
|
| 645 |
+
raw_action: Any,
|
| 646 |
+
@@ -28,6 +29,7 @@ def teacher_dataset_row(
|
| 647 |
+
Args:
|
| 648 |
+
env_name: Canonical benchmark environment name.
|
| 649 |
+
spec: Episode spec containing index, split, and seed.
|
| 650 |
+
+ trajectory_idx: Zero-based trajectory index within the full-game episode.
|
| 651 |
+
decision_step: Zero-based policy decision step within the episode.
|
| 652 |
+
image: Path to the saved pre-step image.
|
| 653 |
+
raw_action: Raw teacher action for this decision.
|
| 654 |
+
@@ -48,6 +50,7 @@ def teacher_dataset_row(
|
| 655 |
+
"image": image,
|
| 656 |
+
"env_name": str(env_name),
|
| 657 |
+
"episode_idx": int(spec["episode_idx"]),
|
| 658 |
+
+ "trajectory_idx": int(trajectory_idx),
|
| 659 |
+
"decision_step": int(decision_step),
|
| 660 |
+
"split": str(spec["split"]),
|
| 661 |
+
"seed": int(spec["seed"]),
|
| 662 |
+
diff --git a/latency_bench/integrations/sample_factory/runtime.py b/latency_bench/integrations/sample_factory/runtime.py
|
| 663 |
+
index e1efadb..aa4f941 100644
|
| 664 |
+
--- a/latency_bench/integrations/sample_factory/runtime.py
|
| 665 |
+
+++ b/latency_bench/integrations/sample_factory/runtime.py
|
| 666 |
+
@@ -58,7 +58,10 @@ class SampleFactoryIntegrationModule:
|
| 667 |
+
getattr(self.module, self._register_attr)()
|
| 668 |
+
|
| 669 |
+
def build_sf_cfg_from_config(self, config: dict[str, Any]):
|
| 670 |
+
- return self.module.parse_cfg(self.module.build_cli_args_from_config(config))
|
| 671 |
+
+ return self.module.parse_cfg(
|
| 672 |
+
+ self.module.build_cli_args_from_config(config),
|
| 673 |
+
+ evaluation=True,
|
| 674 |
+
+ )
|
| 675 |
+
|
| 676 |
+
def make_reference_env(self, cfg: Any):
|
| 677 |
+
return self.module.make_reference_env(cfg)
|
| 678 |
+
diff --git a/scripts/experiment_runner/run_manifest_jobs.py b/scripts/experiment_runner/run_manifest_jobs.py
|
| 679 |
+
index e2d1b5e..133ccdc 100644
|
| 680 |
+
--- a/scripts/experiment_runner/run_manifest_jobs.py
|
| 681 |
+
+++ b/scripts/experiment_runner/run_manifest_jobs.py
|
| 682 |
+
@@ -73,11 +73,6 @@ def _event_writer(event_log: Path) -> Callable[[dict[str, Any]], None]:
|
| 683 |
+
return write
|
| 684 |
+
|
| 685 |
+
|
| 686 |
+
-def _register_process(process: subprocess.Popen) -> None:
|
| 687 |
+
- with _ACTIVE_PROCESSES_LOCK:
|
| 688 |
+
- _ACTIVE_PROCESSES.add(process)
|
| 689 |
+
-
|
| 690 |
+
-
|
| 691 |
+
def _forget_process(process: subprocess.Popen) -> None:
|
| 692 |
+
with _ACTIVE_PROCESSES_LOCK:
|
| 693 |
+
_ACTIVE_PROCESSES.discard(process)
|
| 694 |
+
@@ -89,11 +84,10 @@ def _active_processes() -> list[subprocess.Popen]:
|
| 695 |
+
|
| 696 |
+
|
| 697 |
+
def _signal_process_group(process: subprocess.Popen, sig: int) -> None:
|
| 698 |
+
- if process.poll() is None:
|
| 699 |
+
- try:
|
| 700 |
+
- os.killpg(process.pid, sig)
|
| 701 |
+
- except ProcessLookupError:
|
| 702 |
+
- pass
|
| 703 |
+
+ try:
|
| 704 |
+
+ os.killpg(process.pid, sig)
|
| 705 |
+
+ except ProcessLookupError:
|
| 706 |
+
+ pass
|
| 707 |
+
|
| 708 |
+
|
| 709 |
+
def _terminate_active_processes(sig: int = signal.SIGTERM) -> None:
|
| 710 |
+
@@ -118,15 +112,24 @@ def _terminate_active_processes(sig: int = signal.SIGTERM) -> None:
|
| 711 |
+
pass
|
| 712 |
+
|
| 713 |
+
|
| 714 |
+
-def _run_command(command: str, *, gpu: str) -> None:
|
| 715 |
+
+def _run_command(
|
| 716 |
+
+ command: str,
|
| 717 |
+
+ *,
|
| 718 |
+
+ gpu: str,
|
| 719 |
+
+ cancel_event: threading.Event | None = None,
|
| 720 |
+
+) -> bool:
|
| 721 |
+
env = os.environ.copy()
|
| 722 |
+
env["CUDA_VISIBLE_DEVICES"] = str(gpu)
|
| 723 |
+
- process = subprocess.Popen(command, shell=True, env=env, start_new_session=True)
|
| 724 |
+
- _register_process(process)
|
| 725 |
+
+ with _ACTIVE_PROCESSES_LOCK:
|
| 726 |
+
+ if cancel_event is not None and cancel_event.is_set():
|
| 727 |
+
+ return False
|
| 728 |
+
+ process = subprocess.Popen(command, shell=True, env=env, start_new_session=True)
|
| 729 |
+
+ _ACTIVE_PROCESSES.add(process)
|
| 730 |
+
try:
|
| 731 |
+
returncode = process.wait()
|
| 732 |
+
if returncode != 0:
|
| 733 |
+
raise subprocess.CalledProcessError(returncode, command)
|
| 734 |
+
+ return True
|
| 735 |
+
finally:
|
| 736 |
+
_forget_process(process)
|
| 737 |
+
|
| 738 |
+
@@ -201,14 +204,11 @@ def _resume_stage(job: dict[str, str], states: dict[str, str]) -> str:
|
| 739 |
+
stage = states.get(str(job["job_id"]), "")
|
| 740 |
+
if stage in {"job_complete", "upload_skipped", "upload_succeeded"}:
|
| 741 |
+
return "complete"
|
| 742 |
+
- if stage in {"eval_succeeded", "upload_failed"}:
|
| 743 |
+
+ if stage in {"eval_succeeded", "upload_started", "upload_failed"}:
|
| 744 |
+
return "upload"
|
| 745 |
+
- if stage == "train_succeeded":
|
| 746 |
+
- return "eval"
|
| 747 |
+
- if stage == "eval_failed":
|
| 748 |
+
- # Training already succeeded before eval ran; re-eval from the checkpoint
|
| 749 |
+
- # instead of retraining from scratch.
|
| 750 |
+
- return "eval"
|
| 751 |
+
+ if stage in {"train_succeeded", "eval_started", "eval_failed"}:
|
| 752 |
+
+ train_config = Path(job["train_artifact_dir"]) / "config.json"
|
| 753 |
+
+ return "eval" if train_config.is_file() else "train"
|
| 754 |
+
return "train"
|
| 755 |
+
|
| 756 |
+
|
| 757 |
+
@@ -223,16 +223,6 @@ def run_jobs(
|
| 758 |
+
dry_run: bool = False,
|
| 759 |
+
uploader: Callable[[dict[str, str]], None] | None = None,
|
| 760 |
+
) -> int:
|
| 761 |
+
- previous_sigint = signal.getsignal(signal.SIGINT)
|
| 762 |
+
- previous_sigterm = signal.getsignal(signal.SIGTERM)
|
| 763 |
+
-
|
| 764 |
+
- def stop_active_processes(signum, frame):
|
| 765 |
+
- del frame
|
| 766 |
+
- _terminate_active_processes(signal.SIGTERM)
|
| 767 |
+
- raise KeyboardInterrupt(signum)
|
| 768 |
+
-
|
| 769 |
+
- signal.signal(signal.SIGINT, stop_active_processes)
|
| 770 |
+
- signal.signal(signal.SIGTERM, stop_active_processes)
|
| 771 |
+
manifest_file = Path(manifest_path).expanduser().resolve()
|
| 772 |
+
event_log = event_log_path_for_manifest(manifest_file)
|
| 773 |
+
write_event = _event_writer(event_log)
|
| 774 |
+
@@ -253,12 +243,16 @@ def run_jobs(
|
| 775 |
+
jobs = [
|
| 776 |
+
row
|
| 777 |
+
for row in rows
|
| 778 |
+
- if states.get(row["job_id"], "") in {"eval_succeeded", "upload_failed"}
|
| 779 |
+
+ if states.get(row["job_id"], "")
|
| 780 |
+
+ in {"eval_succeeded", "upload_started", "upload_failed"}
|
| 781 |
+
]
|
| 782 |
+
job_queue: queue.Queue[dict[str, str] | None] = queue.Queue()
|
| 783 |
+
upload_queue: queue.Queue[UploadTask | None] = queue.Queue()
|
| 784 |
+
failures: list[tuple[str, str]] = []
|
| 785 |
+
failure_lock = threading.Lock()
|
| 786 |
+
+ cancel_event = threading.Event()
|
| 787 |
+
+ signal_event = threading.Event()
|
| 788 |
+
+ cleanup_started = False
|
| 789 |
+
uploader_fn = _default_uploader if uploader is None else uploader
|
| 790 |
+
|
| 791 |
+
if stage != "upload":
|
| 792 |
+
@@ -280,28 +274,49 @@ def run_jobs(
|
| 793 |
+
if job is None:
|
| 794 |
+
job_queue.task_done()
|
| 795 |
+
break
|
| 796 |
+
+ if cancel_event.is_set():
|
| 797 |
+
+ job_queue.task_done()
|
| 798 |
+
+ continue
|
| 799 |
+
next_stage = _resume_stage(job, states) if stage == "all" else stage
|
| 800 |
+
job_id = str(job["job_id"])
|
| 801 |
+
try:
|
| 802 |
+
if next_stage == "train":
|
| 803 |
+
+ if cancel_event.is_set():
|
| 804 |
+
+ continue
|
| 805 |
+
if dry_run:
|
| 806 |
+
print(f"[dry-run] CUDA_VISIBLE_DEVICES={gpu} {job['train_command']}", flush=True)
|
| 807 |
+
else:
|
| 808 |
+
write_event({"job_id": job_id, "stage": "train_started", "gpu": gpu, "ts": _now()})
|
| 809 |
+
- _run_command(str(job["train_command"]), gpu=gpu)
|
| 810 |
+
+ started = _run_command(
|
| 811 |
+
+ str(job["train_command"]),
|
| 812 |
+
+ gpu=gpu,
|
| 813 |
+
+ cancel_event=cancel_event,
|
| 814 |
+
+ )
|
| 815 |
+
+ if not started or cancel_event.is_set():
|
| 816 |
+
+ continue
|
| 817 |
+
write_event({"job_id": job_id, "stage": "train_succeeded", "gpu": gpu, "ts": _now()})
|
| 818 |
+
next_stage = "eval" if stage == "all" else "complete"
|
| 819 |
+
if next_stage == "eval":
|
| 820 |
+
+ if cancel_event.is_set():
|
| 821 |
+
+ continue
|
| 822 |
+
if dry_run:
|
| 823 |
+
print(f"[dry-run] CUDA_VISIBLE_DEVICES={gpu} {job['eval_command']}", flush=True)
|
| 824 |
+
else:
|
| 825 |
+
write_event({"job_id": job_id, "stage": "eval_started", "gpu": gpu, "ts": _now()})
|
| 826 |
+
- _run_command(str(job["eval_command"]), gpu=gpu)
|
| 827 |
+
+ started = _run_command(
|
| 828 |
+
+ str(job["eval_command"]),
|
| 829 |
+
+ gpu=gpu,
|
| 830 |
+
+ cancel_event=cancel_event,
|
| 831 |
+
+ )
|
| 832 |
+
+ if not started or cancel_event.is_set():
|
| 833 |
+
+ continue
|
| 834 |
+
write_event({"job_id": job_id, "stage": "eval_succeeded", "gpu": gpu, "ts": _now()})
|
| 835 |
+
next_stage = "upload" if stage == "all" else "complete"
|
| 836 |
+
- if next_stage == "upload":
|
| 837 |
+
+ if next_stage == "upload" and not cancel_event.is_set():
|
| 838 |
+
upload_queue.put(UploadTask(job))
|
| 839 |
+
except subprocess.CalledProcessError:
|
| 840 |
+
+ if cancel_event.is_set():
|
| 841 |
+
+ continue
|
| 842 |
+
failed_stage = "train_failed" if next_stage == "train" else "eval_failed"
|
| 843 |
+
write_event({"job_id": job_id, "stage": failed_stage, "gpu": gpu, "ts": _now()})
|
| 844 |
+
record_failure(job_id, failed_stage)
|
| 845 |
+
@@ -311,48 +326,52 @@ def run_jobs(
|
| 846 |
+
def upload_worker() -> None:
|
| 847 |
+
while True:
|
| 848 |
+
task = upload_queue.get()
|
| 849 |
+
- if task is None:
|
| 850 |
+
- upload_queue.task_done()
|
| 851 |
+
- break
|
| 852 |
+
- job = task.job
|
| 853 |
+
- job_id = str(job["job_id"])
|
| 854 |
+
- train_repo_id = str(job["train_upload_repo_id"])
|
| 855 |
+
- eval_repo_id = str(job["eval_upload_repo_id"])
|
| 856 |
+
- if dry_run:
|
| 857 |
+
- targets = [repo_id for repo_id in (eval_repo_id, train_repo_id) if repo_id]
|
| 858 |
+
- print(f"[dry-run] upload {job_id}: {', '.join(targets) or 'no upload target'}", flush=True)
|
| 859 |
+
- upload_queue.task_done()
|
| 860 |
+
- continue
|
| 861 |
+
- if not train_repo_id and not eval_repo_id:
|
| 862 |
+
- write_event({"job_id": job_id, "stage": "upload_skipped", "ts": _now()})
|
| 863 |
+
- write_event({"job_id": job_id, "stage": "job_complete", "ts": _now()})
|
| 864 |
+
- upload_queue.task_done()
|
| 865 |
+
- continue
|
| 866 |
+
- attempt = 0
|
| 867 |
+
- success = False
|
| 868 |
+
- while attempt < max_upload_attempts and not success:
|
| 869 |
+
- attempt += 1
|
| 870 |
+
- write_event({"job_id": job_id, "stage": "upload_started", "attempt": attempt, "ts": _now()})
|
| 871 |
+
- try:
|
| 872 |
+
- if not dry_run:
|
| 873 |
+
- uploader_fn(job)
|
| 874 |
+
- write_event({"job_id": job_id, "stage": "upload_succeeded", "attempt": attempt, "ts": _now()})
|
| 875 |
+
+ try:
|
| 876 |
+
+ if task is None:
|
| 877 |
+
+ break
|
| 878 |
+
+ if cancel_event.is_set():
|
| 879 |
+
+ continue
|
| 880 |
+
+ job = task.job
|
| 881 |
+
+ job_id = str(job["job_id"])
|
| 882 |
+
+ train_repo_id = str(job["train_upload_repo_id"])
|
| 883 |
+
+ eval_repo_id = str(job["eval_upload_repo_id"])
|
| 884 |
+
+ if dry_run:
|
| 885 |
+
+ targets = [repo_id for repo_id in (eval_repo_id, train_repo_id) if repo_id]
|
| 886 |
+
+ print(f"[dry-run] upload {job_id}: {', '.join(targets) or 'no upload target'}", flush=True)
|
| 887 |
+
+ continue
|
| 888 |
+
+ if not train_repo_id and not eval_repo_id:
|
| 889 |
+
+ write_event({"job_id": job_id, "stage": "upload_skipped", "ts": _now()})
|
| 890 |
+
write_event({"job_id": job_id, "stage": "job_complete", "ts": _now()})
|
| 891 |
+
- success = True
|
| 892 |
+
- except Exception as error:
|
| 893 |
+
- write_event(
|
| 894 |
+
- {
|
| 895 |
+
- "job_id": job_id,
|
| 896 |
+
- "stage": "upload_failed",
|
| 897 |
+
- "attempt": attempt,
|
| 898 |
+
- "error": repr(error),
|
| 899 |
+
- "ts": _now(),
|
| 900 |
+
- }
|
| 901 |
+
- )
|
| 902 |
+
- print(f"upload failed for {job_id} (attempt {attempt}): {error!r}", file=sys.stderr)
|
| 903 |
+
- if not success:
|
| 904 |
+
- record_failure(job_id, "upload_failed")
|
| 905 |
+
- upload_queue.task_done()
|
| 906 |
+
+ continue
|
| 907 |
+
+ attempt = 0
|
| 908 |
+
+ success = False
|
| 909 |
+
+ while attempt < max_upload_attempts and not success and not cancel_event.is_set():
|
| 910 |
+
+ attempt += 1
|
| 911 |
+
+ write_event({"job_id": job_id, "stage": "upload_started", "attempt": attempt, "ts": _now()})
|
| 912 |
+
+ try:
|
| 913 |
+
+ uploader_fn(job)
|
| 914 |
+
+ if cancel_event.is_set():
|
| 915 |
+
+ continue
|
| 916 |
+
+ write_event({"job_id": job_id, "stage": "upload_succeeded", "attempt": attempt, "ts": _now()})
|
| 917 |
+
+ write_event({"job_id": job_id, "stage": "job_complete", "ts": _now()})
|
| 918 |
+
+ success = True
|
| 919 |
+
+ except Exception as error:
|
| 920 |
+
+ if cancel_event.is_set():
|
| 921 |
+
+ continue
|
| 922 |
+
+ write_event(
|
| 923 |
+
+ {
|
| 924 |
+
+ "job_id": job_id,
|
| 925 |
+
+ "stage": "upload_failed",
|
| 926 |
+
+ "attempt": attempt,
|
| 927 |
+
+ "error": repr(error),
|
| 928 |
+
+ "ts": _now(),
|
| 929 |
+
+ }
|
| 930 |
+
+ )
|
| 931 |
+
+ print(f"upload failed for {job_id} (attempt {attempt}): {error!r}", file=sys.stderr)
|
| 932 |
+
+ if not success and not cancel_event.is_set():
|
| 933 |
+
+ record_failure(job_id, "upload_failed")
|
| 934 |
+
+ finally:
|
| 935 |
+
+ upload_queue.task_done()
|
| 936 |
+
|
| 937 |
+
upload_threads = [
|
| 938 |
+
threading.Thread(target=upload_worker, name=f"upload-{idx}", daemon=True)
|
| 939 |
+
@@ -362,17 +381,44 @@ def run_jobs(
|
| 940 |
+
threading.Thread(target=train_worker, args=(gpu,), name=f"train-{gpu}", daemon=True)
|
| 941 |
+
for gpu in gpus if stage != "upload"
|
| 942 |
+
]
|
| 943 |
+
+ previous_sigint = signal.getsignal(signal.SIGINT)
|
| 944 |
+
+ previous_sigterm = signal.getsignal(signal.SIGTERM)
|
| 945 |
+
+
|
| 946 |
+
+ def stop_active_processes(signum, frame):
|
| 947 |
+
+ nonlocal cleanup_started
|
| 948 |
+
+ del frame
|
| 949 |
+
+ if signal_event.is_set():
|
| 950 |
+
+ return
|
| 951 |
+
+ signal_event.set()
|
| 952 |
+
+ cancel_event.set()
|
| 953 |
+
+ if cleanup_started:
|
| 954 |
+
+ return
|
| 955 |
+
+ raise KeyboardInterrupt(signum)
|
| 956 |
+
+
|
| 957 |
+
+ signal.signal(signal.SIGINT, stop_active_processes)
|
| 958 |
+
+ signal.signal(signal.SIGTERM, stop_active_processes)
|
| 959 |
+
try:
|
| 960 |
+
for thread in upload_threads + train_threads:
|
| 961 |
+
thread.start()
|
| 962 |
+
job_queue.join()
|
| 963 |
+
- for _ in upload_threads:
|
| 964 |
+
- upload_queue.put(None)
|
| 965 |
+
upload_queue.join()
|
| 966 |
+
- for thread in train_threads + upload_threads:
|
| 967 |
+
- thread.join()
|
| 968 |
+
return 1 if failures else 0
|
| 969 |
+
finally:
|
| 970 |
+
+ cleanup_started = True
|
| 971 |
+
+ cancel_event.set()
|
| 972 |
+
+ _terminate_active_processes(signal.SIGTERM)
|
| 973 |
+
+ for thread in train_threads:
|
| 974 |
+
+ thread.join()
|
| 975 |
+
+ _terminate_active_processes(signal.SIGTERM)
|
| 976 |
+
+ if signal_event.is_set():
|
| 977 |
+
+ for _ in upload_threads:
|
| 978 |
+
+ upload_queue.put(None)
|
| 979 |
+
+ else:
|
| 980 |
+
+ upload_queue.join()
|
| 981 |
+
+ for _ in upload_threads:
|
| 982 |
+
+ upload_queue.put(None)
|
| 983 |
+
+ for thread in upload_threads:
|
| 984 |
+
+ thread.join()
|
| 985 |
+
_terminate_active_processes(signal.SIGTERM)
|
| 986 |
+
signal.signal(signal.SIGINT, previous_sigint)
|
| 987 |
+
signal.signal(signal.SIGTERM, previous_sigterm)
|
| 988 |
+
diff --git a/scripts/rollout_data/prepare_starvla_lerobot_dataset.py b/scripts/rollout_data/prepare_starvla_lerobot_dataset.py
|
| 989 |
+
index e202657..2521899 100644
|
| 990 |
+
--- a/scripts/rollout_data/prepare_starvla_lerobot_dataset.py
|
| 991 |
+
+++ b/scripts/rollout_data/prepare_starvla_lerobot_dataset.py
|
| 992 |
+
@@ -26,6 +26,7 @@ def convert_raw_export_to_lerobot(
|
| 993 |
+
raw_export_dir: Path,
|
| 994 |
+
lerobot_root: Path,
|
| 995 |
+
data_mix: str,
|
| 996 |
+
+ action_carrier: str = "native",
|
| 997 |
+
) -> dict:
|
| 998 |
+
"""Convert a raw rollout export into a named LeRobot data mix.
|
| 999 |
+
|
| 1000 |
+
@@ -33,6 +34,7 @@ def convert_raw_export_to_lerobot(
|
| 1001 |
+
raw_export_dir: Canonical rollout export directory.
|
| 1002 |
+
lerobot_root: Directory that will contain the LeRobot datasets.
|
| 1003 |
+
data_mix: Train dataset directory name under ``lerobot_root``.
|
| 1004 |
+
+ action_carrier: Target action/state carrier.
|
| 1005 |
+
|
| 1006 |
+
Returns:
|
| 1007 |
+
Conversion manifest returned by the LeRobot adapter.
|
| 1008 |
+
@@ -41,6 +43,7 @@ def convert_raw_export_to_lerobot(
|
| 1009 |
+
return convert_canonical_rollout_to_lerobot(
|
| 1010 |
+
raw_export_dir,
|
| 1011 |
+
output_dir,
|
| 1012 |
+
+ action_carrier=action_carrier,
|
| 1013 |
+
force=True,
|
| 1014 |
+
)
|
| 1015 |
+
|
| 1016 |
+
@@ -92,6 +95,7 @@ def build_parser() -> argparse.ArgumentParser:
|
| 1017 |
+
parser.add_argument("raw_export_dir")
|
| 1018 |
+
parser.add_argument("lerobot_root")
|
| 1019 |
+
parser.add_argument("data_mix")
|
| 1020 |
+
+ parser.add_argument("--action-carrier", choices=("native", "bridge"), default="native")
|
| 1021 |
+
parser.add_argument("--push-to-hub", default="")
|
| 1022 |
+
parser.add_argument("--private", action="store_true")
|
| 1023 |
+
return parser
|
| 1024 |
+
@@ -115,6 +119,7 @@ def main(argv: Sequence[str] | None = None) -> int:
|
| 1025 |
+
raw_export_dir=raw_export_dir,
|
| 1026 |
+
lerobot_root=lerobot_root,
|
| 1027 |
+
data_mix=data_mix,
|
| 1028 |
+
+ action_carrier=args.action_carrier,
|
| 1029 |
+
)
|
| 1030 |
+
if args.push_to_hub:
|
| 1031 |
+
push_lerobot_dataset(
|
| 1032 |
+
diff --git a/scripts/sweeps/generate_sweep_configs.py b/scripts/sweeps/generate_sweep_configs.py
|
| 1033 |
+
index 8074c79..bd5fafe 100644
|
| 1034 |
+
--- a/scripts/sweeps/generate_sweep_configs.py
|
| 1035 |
+
+++ b/scripts/sweeps/generate_sweep_configs.py
|
| 1036 |
+
@@ -116,6 +116,7 @@ ENV_KEYS_BY_NAME = {
|
| 1037 |
+
"obs_fps",
|
| 1038 |
+
"screen_size",
|
| 1039 |
+
"noop_max",
|
| 1040 |
+
+ "reset_mode",
|
| 1041 |
+
"frame_stack",
|
| 1042 |
+
"terminal_on_life_loss",
|
| 1043 |
+
"clip_reward",
|
| 1044 |
+
diff --git a/tests/data/test_rollout_dataset_schema.py b/tests/data/test_rollout_dataset_schema.py
|
| 1045 |
+
index 06a6091..55ccebf 100644
|
| 1046 |
+
--- a/tests/data/test_rollout_dataset_schema.py
|
| 1047 |
+
+++ b/tests/data/test_rollout_dataset_schema.py
|
| 1048 |
+
@@ -8,6 +8,7 @@ def test_canonical_rollout_fields_exclude_legacy_aliases():
|
| 1049 |
+
"image",
|
| 1050 |
+
"env_name",
|
| 1051 |
+
"episode_idx",
|
| 1052 |
+
+ "trajectory_idx",
|
| 1053 |
+
"decision_step",
|
| 1054 |
+
"split",
|
| 1055 |
+
"seed",
|
| 1056 |
+
@@ -36,6 +37,7 @@ def test_rollout_features_include_env_specific_action_fields():
|
| 1057 |
+
assert "action_tuple" not in deadly_features
|
| 1058 |
+
assert "action" not in deadly_features
|
| 1059 |
+
for features in (flappy_features, deadly_features):
|
| 1060 |
+
+ assert "trajectory_idx" in features
|
| 1061 |
+
assert "decision_step" in features
|
| 1062 |
+
assert "latency_raw_frames" in features
|
| 1063 |
+
assert "raw_reward" in features
|
| 1064 |
+
diff --git a/tests/data/test_rollout_hf_parquet.py b/tests/data/test_rollout_hf_parquet.py
|
| 1065 |
+
index 9fa4c48..4e56de6 100644
|
| 1066 |
+
--- a/tests/data/test_rollout_hf_parquet.py
|
| 1067 |
+
+++ b/tests/data/test_rollout_hf_parquet.py
|
| 1068 |
+
@@ -15,6 +15,7 @@ def test_hf_parquet_writes_canonical_columns_only(tmp_path):
|
| 1069 |
+
"image": str(image_path),
|
| 1070 |
+
"env_name": "flappy",
|
| 1071 |
+
"episode_idx": 0,
|
| 1072 |
+
+ "trajectory_idx": 0,
|
| 1073 |
+
"decision_step": 0,
|
| 1074 |
+
"split": "train",
|
| 1075 |
+
"seed": 11,
|
| 1076 |
+
@@ -56,6 +57,7 @@ def test_hf_parquet_shards_sort_by_decision_step(tmp_path):
|
| 1077 |
+
"image": str(image_path),
|
| 1078 |
+
"env_name": "flappy",
|
| 1079 |
+
"episode_idx": 0,
|
| 1080 |
+
+ "trajectory_idx": 0,
|
| 1081 |
+
"decision_step": decision_step,
|
| 1082 |
+
"split": "train",
|
| 1083 |
+
"seed": 11,
|
| 1084 |
+
@@ -92,6 +94,7 @@ def test_hf_parquet_embeds_context_images_when_rows_provide_them(tmp_path):
|
| 1085 |
+
"context_images": [str(path) for path in context_paths],
|
| 1086 |
+
"env_name": "flappy",
|
| 1087 |
+
"episode_idx": 0,
|
| 1088 |
+
+ "trajectory_idx": 0,
|
| 1089 |
+
"decision_step": 0,
|
| 1090 |
+
"split": "train",
|
| 1091 |
+
"seed": 11,
|
| 1092 |
+
@@ -116,3 +119,18 @@ def test_hf_parquet_embeds_context_images_when_rows_provide_them(tmp_path):
|
| 1093 |
+
assert "context_images" in table.column_names
|
| 1094 |
+
assert len(exported["context_images"]) == 3
|
| 1095 |
+
assert exported["context_images"][0]["bytes"].startswith(b"\x89PNG\r\n\x1a\n")
|
| 1096 |
+
+
|
| 1097 |
+
+
|
| 1098 |
+
+def test_completed_episode_shards_require_trajectory_identity(tmp_path):
|
| 1099 |
+
+ import json
|
| 1100 |
+
+
|
| 1101 |
+
+ import pytest
|
| 1102 |
+
+
|
| 1103 |
+
+ from latency_bench.data.hf_parquet import completed_episode_indices_from_shards
|
| 1104 |
+
+
|
| 1105 |
+
+ shard_path = tmp_path / "episode_rows" / "train" / "episode_000000.jsonl"
|
| 1106 |
+
+ shard_path.parent.mkdir(parents=True)
|
| 1107 |
+
+ shard_path.write_text(json.dumps({"episode_idx": 0}) + "\n", encoding="utf-8")
|
| 1108 |
+
+
|
| 1109 |
+
+ with pytest.raises(KeyError, match="trajectory_idx"):
|
| 1110 |
+
+ completed_episode_indices_from_shards(tmp_path)
|
| 1111 |
+
diff --git a/tests/data/test_sf_teacher_dataset_export.py b/tests/data/test_sf_teacher_dataset_export.py
|
| 1112 |
+
index 62b30a6..ba4644b 100644
|
| 1113 |
+
--- a/tests/data/test_sf_teacher_dataset_export.py
|
| 1114 |
+
+++ b/tests/data/test_sf_teacher_dataset_export.py
|
| 1115 |
+
@@ -1299,7 +1299,7 @@ def test_write_filtered_episode_images_preserves_empty_filtered_episode(tmp_path
|
| 1116 |
+
|
| 1117 |
+
image_writer = RolloutImageWriter(max_workers=0, row_buffer_size=1, export_image_size=None)
|
| 1118 |
+
|
| 1119 |
+
- rows = _write_filtered_episode_images(image_writer, [], {}, context_window=5)
|
| 1120 |
+
+ rows = _write_filtered_episode_images(image_writer, [], {}, {}, context_window=5)
|
| 1121 |
+
|
| 1122 |
+
assert rows == []
|
| 1123 |
+
|
| 1124 |
+
@@ -1314,6 +1314,7 @@ def test_write_filtered_episode_images_resets_context_after_decision_step_gap(tm
|
| 1125 |
+
{
|
| 1126 |
+
"image": str(tmp_path / "images" / "train" / "episode_000000" / f"decision_step_{step:06d}.png"),
|
| 1127 |
+
"decision_step": step,
|
| 1128 |
+
+ "trajectory_idx": 0,
|
| 1129 |
+
}
|
| 1130 |
+
for step in [0, 1, 4, 5]
|
| 1131 |
+
]
|
| 1132 |
+
@@ -1326,6 +1327,7 @@ def test_write_filtered_episode_images_resets_context_after_decision_step_gap(tm
|
| 1133 |
+
image_writer,
|
| 1134 |
+
rows,
|
| 1135 |
+
frames_by_decision_step,
|
| 1136 |
+
+ {step: 0 for step in frames_by_decision_step},
|
| 1137 |
+
context_window=4,
|
| 1138 |
+
)
|
| 1139 |
+
|
| 1140 |
+
@@ -1733,13 +1735,24 @@ def test_collect_teacher_dataset_demon_attack_exports_full_game_across_life_loss
|
| 1141 |
+
image_writer_workers=0,
|
| 1142 |
+
row_buffer_size=1,
|
| 1143 |
+
filter_preset="none",
|
| 1144 |
+
+ context_window=3,
|
| 1145 |
+
)
|
| 1146 |
+
train_rows = _read_shard_rows(output_dir, "train")
|
| 1147 |
+
state = json.loads((output_dir / "probe_state.json").read_text(encoding="utf-8"))
|
| 1148 |
+
|
| 1149 |
+
assert ScriptedDemonEnv.reset_seeds == [100, None, None, 100, None, None]
|
| 1150 |
+
- assert [row["decision_step"] for row in train_rows] == [2]
|
| 1151 |
+
- assert train_rows[0]["raw_reward"] == 30.0
|
| 1152 |
+
+ assert [row["decision_step"] for row in train_rows] == [0, 1, 2]
|
| 1153 |
+
+ assert [row["trajectory_idx"] for row in train_rows] == [0, 1, 2]
|
| 1154 |
+
+ assert [row["action_id"] for row in train_rows] == [1, 1, 1]
|
| 1155 |
+
+ assert [row["raw_reward"] for row in train_rows] == [10.0, 20.0, 30.0]
|
| 1156 |
+
+ from PIL import Image
|
| 1157 |
+
+
|
| 1158 |
+
+ context_values = [
|
| 1159 |
+
+ [np.asarray(Image.open(path))[0, 0, 0].item() for path in row["context_images"]]
|
| 1160 |
+
+ for row in train_rows
|
| 1161 |
+
+ ]
|
| 1162 |
+
+ current_values = [np.asarray(Image.open(row["image"]))[0, 0, 0].item() for row in train_rows]
|
| 1163 |
+
+ assert context_values == [[value, value] for value in current_values]
|
| 1164 |
+
assert state["accepted_specs"] == [
|
| 1165 |
+
{
|
| 1166 |
+
"attempt_idx": 0,
|
| 1167 |
+
@@ -1900,6 +1913,7 @@ def test_collect_teacher_dataset_skips_runtime_when_probe_and_shards_complete(mo
|
| 1168 |
+
"image": str(image_path),
|
| 1169 |
+
"env_name": "flappy",
|
| 1170 |
+
"episode_idx": 0,
|
| 1171 |
+
+ "trajectory_idx": 0,
|
| 1172 |
+
"decision_step": 0,
|
| 1173 |
+
"split": "train",
|
| 1174 |
+
"seed": 100,
|
| 1175 |
+
@@ -2264,6 +2278,7 @@ def test_write_parquet_splits_handles_empty_validation_rows(tmp_path):
|
| 1176 |
+
"image": str(image_path),
|
| 1177 |
+
"env_name": "flappy",
|
| 1178 |
+
"episode_idx": 0,
|
| 1179 |
+
+ "trajectory_idx": 0,
|
| 1180 |
+
"decision_step": 0,
|
| 1181 |
+
"split": "train",
|
| 1182 |
+
"seed": 11,
|
| 1183 |
+
@@ -2300,6 +2315,7 @@ def test_write_parquet_splits_embeds_image_bytes(tmp_path):
|
| 1184 |
+
"image": str(image_path),
|
| 1185 |
+
"env_name": "flappy",
|
| 1186 |
+
"episode_idx": 0,
|
| 1187 |
+
+ "trajectory_idx": 0,
|
| 1188 |
+
"decision_step": 0,
|
| 1189 |
+
"split": "train",
|
| 1190 |
+
"seed": 11,
|
| 1191 |
+
@@ -2336,6 +2352,7 @@ def test_write_parquet_splits_preserves_rows_across_large_exports(tmp_path):
|
| 1192 |
+
"image": str(image_path),
|
| 1193 |
+
"env_name": "flappy",
|
| 1194 |
+
"episode_idx": episode_idx,
|
| 1195 |
+
+ "trajectory_idx": 0,
|
| 1196 |
+
"decision_step": 0,
|
| 1197 |
+
"split": "train",
|
| 1198 |
+
"seed": 11 + episode_idx,
|
| 1199 |
+
@@ -2390,6 +2407,7 @@ def test_write_parquet_splits_from_shards_writes_train_and_val_rows(tmp_path):
|
| 1200 |
+
"image": str(image_path),
|
| 1201 |
+
"env_name": "flappy",
|
| 1202 |
+
"episode_idx": episode_idx,
|
| 1203 |
+
+ "trajectory_idx": 0,
|
| 1204 |
+
"decision_step": decision_step,
|
| 1205 |
+
"split": split,
|
| 1206 |
+
"seed": 11 + episode_idx,
|
| 1207 |
+
@@ -2432,6 +2450,7 @@ def test_write_parquet_splits_from_shards_replaces_stale_partial_file(tmp_path):
|
| 1208 |
+
"image": str(stale_image_path),
|
| 1209 |
+
"env_name": "flappy",
|
| 1210 |
+
"episode_idx": 99,
|
| 1211 |
+
+ "trajectory_idx": 0,
|
| 1212 |
+
"decision_step": 0,
|
| 1213 |
+
"split": "train",
|
| 1214 |
+
"seed": 99,
|
| 1215 |
+
@@ -2452,6 +2471,7 @@ def test_write_parquet_splits_from_shards_replaces_stale_partial_file(tmp_path):
|
| 1216 |
+
"image": str(image_path),
|
| 1217 |
+
"env_name": "flappy",
|
| 1218 |
+
"episode_idx": 0,
|
| 1219 |
+
+ "trajectory_idx": 0,
|
| 1220 |
+
"decision_step": 0,
|
| 1221 |
+
"split": "train",
|
| 1222 |
+
"seed": 11,
|
| 1223 |
+
@@ -2536,6 +2556,8 @@ def test_prepare_starvla_lerobot_dataset_converts_from_raw_export(monkeypatch, t
|
| 1224 |
+
str(raw_export),
|
| 1225 |
+
str(tmp_path / "lerobot"),
|
| 1226 |
+
"demon_attack_train",
|
| 1227 |
+
+ "--action-carrier",
|
| 1228 |
+
+ "bridge",
|
| 1229 |
+
])
|
| 1230 |
+
|
| 1231 |
+
assert result == 0
|
| 1232 |
+
@@ -2543,7 +2565,7 @@ def test_prepare_starvla_lerobot_dataset_converts_from_raw_export(monkeypatch, t
|
| 1233 |
+
(
|
| 1234 |
+
raw_export,
|
| 1235 |
+
tmp_path / "lerobot" / "demon_attack_train",
|
| 1236 |
+
- {"force": True},
|
| 1237 |
+
+ {"action_carrier": "bridge", "force": True},
|
| 1238 |
+
)
|
| 1239 |
+
]
|
| 1240 |
+
|
| 1241 |
+
diff --git a/tests/data/test_starvla_lerobot_exporter.py b/tests/data/test_starvla_lerobot_exporter.py
|
| 1242 |
+
index 64b5f47..58391c7 100644
|
| 1243 |
+
--- a/tests/data/test_starvla_lerobot_exporter.py
|
| 1244 |
+
+++ b/tests/data/test_starvla_lerobot_exporter.py
|
| 1245 |
+
@@ -3,6 +3,7 @@ from __future__ import annotations
|
| 1246 |
+
import json
|
| 1247 |
+
|
| 1248 |
+
import pyarrow.parquet as pq
|
| 1249 |
+
+import pytest
|
| 1250 |
+
|
| 1251 |
+
from helpers import save_test_image
|
| 1252 |
+
|
| 1253 |
+
@@ -20,6 +21,7 @@ def test_starvla_lerobot_exporter_reads_canonical_rollout_schema(tmp_path):
|
| 1254 |
+
"image": str(image_path),
|
| 1255 |
+
"env_name": "deadly_corridor",
|
| 1256 |
+
"episode_idx": 3,
|
| 1257 |
+
+ "trajectory_idx": 0,
|
| 1258 |
+
"decision_step": 0,
|
| 1259 |
+
"split": "train",
|
| 1260 |
+
"seed": 14,
|
| 1261 |
+
@@ -38,6 +40,7 @@ def test_starvla_lerobot_exporter_reads_canonical_rollout_schema(tmp_path):
|
| 1262 |
+
"action_layout": "deadly_corridor_joint_54",
|
| 1263 |
+
"reward_field": "raw_reward",
|
| 1264 |
+
"action_labels": list(action_spec.labels),
|
| 1265 |
+
+ "obs_fps": 8.75,
|
| 1266 |
+
}
|
| 1267 |
+
),
|
| 1268 |
+
encoding="utf-8",
|
| 1269 |
+
@@ -54,10 +57,102 @@ def test_starvla_lerobot_exporter_reads_canonical_rollout_schema(tmp_path):
|
| 1270 |
+
assert table.to_pylist()[0]["done"] is True
|
| 1271 |
+
|
| 1272 |
+
|
| 1273 |
+
-def test_starvla_lerobot_exporter_subsamples_to_obs_cadence(tmp_path):
|
| 1274 |
+
- """Adjacent LeRobot rows must be adjacent obs decisions (every obs_stride raw
|
| 1275 |
+
- frames), with contiguous frame_index, so KV-memory rollouts unroll at the eval
|
| 1276 |
+
- observation cadence rather than at every raw frame."""
|
| 1277 |
+
+@pytest.mark.parametrize(
|
| 1278 |
+
+ ("env_name", "obs_fps", "latency", "action_values", "expected_action", "active_action_dim"),
|
| 1279 |
+
+ [
|
| 1280 |
+
+ ("flappy", 30, 3, (1, [0.0, 1.0], "FLAP"), [0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0], 2),
|
| 1281 |
+
+ (
|
| 1282 |
+
+ "demon_attack",
|
| 1283 |
+
+ 15,
|
| 1284 |
+
+ 6,
|
| 1285 |
+
+ (5, [0.0, 0.0, 0.0, 0.0, 0.0, 1.0], "LEFTFIRE"),
|
| 1286 |
+
+ [0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0],
|
| 1287 |
+
+ 6,
|
| 1288 |
+
+ ),
|
| 1289 |
+
+ (
|
| 1290 |
+
+ "deadly_corridor",
|
| 1291 |
+
+ 8.75,
|
| 1292 |
+
+ 6,
|
| 1293 |
+
+ (11, None, "MOVE_FORWARD + MOVE_RIGHT + ATTACK"),
|
| 1294 |
+
+ [1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0],
|
| 1295 |
+
+ 7,
|
| 1296 |
+
+ ),
|
| 1297 |
+
+ ],
|
| 1298 |
+
+)
|
| 1299 |
+
+def test_starvla_lerobot_exporter_writes_bridge_carrier_with_raw_latency_prompt(
|
| 1300 |
+
+ tmp_path,
|
| 1301 |
+
+ env_name,
|
| 1302 |
+
+ obs_fps,
|
| 1303 |
+
+ latency,
|
| 1304 |
+
+ action_values,
|
| 1305 |
+
+ expected_action,
|
| 1306 |
+
+ active_action_dim,
|
| 1307 |
+
+):
|
| 1308 |
+
+ from latency_bench.data.action_layouts import action_spec_for_env
|
| 1309 |
+
+ from latency_bench.data.exporters.starvla_lerobot import convert_canonical_rollout_to_lerobot
|
| 1310 |
+
+ from latency_bench.data.hf_parquet import write_parquet_splits
|
| 1311 |
+
+
|
| 1312 |
+
+ image_path = tmp_path / "image.png"
|
| 1313 |
+
+ save_test_image(image_path, 9)
|
| 1314 |
+
+ raw_export = tmp_path / "raw"
|
| 1315 |
+
+ action_spec = action_spec_for_env(env_name)
|
| 1316 |
+
+ action_id, action, action_text = action_values
|
| 1317 |
+
+ row = {
|
| 1318 |
+
+ "image": str(image_path),
|
| 1319 |
+
+ "env_name": env_name,
|
| 1320 |
+
+ "episode_idx": 0,
|
| 1321 |
+
+ "trajectory_idx": 0,
|
| 1322 |
+
+ "decision_step": 0,
|
| 1323 |
+
+ "split": "train",
|
| 1324 |
+
+ "seed": 0,
|
| 1325 |
+
+ "prompt": f"The action latency is fixed at {latency} raw environment frames.",
|
| 1326 |
+
+ "latency_raw_frames": latency,
|
| 1327 |
+
+ "latency_ms": latency * 1000 / {"flappy": 30, "demon_attack": 60, "deadly_corridor": 35}[env_name],
|
| 1328 |
+
+ "raw_reward": 1.0,
|
| 1329 |
+
+ "action_id": action_id,
|
| 1330 |
+
+ "action_text": action_text,
|
| 1331 |
+
+ }
|
| 1332 |
+
+ if action is not None:
|
| 1333 |
+
+ row["action"] = action
|
| 1334 |
+
+ write_parquet_splits(raw_export, [row], [], action_spec=action_spec)
|
| 1335 |
+
+ (raw_export / "metadata.json").write_text(
|
| 1336 |
+
+ json.dumps(
|
| 1337 |
+
+ {
|
| 1338 |
+
+ "env_name": env_name,
|
| 1339 |
+
+ "action_layout": action_spec.layout,
|
| 1340 |
+
+ "reward_field": action_spec.reward_field,
|
| 1341 |
+
+ "action_labels": list(action_spec.labels),
|
| 1342 |
+
+ "obs_fps": obs_fps,
|
| 1343 |
+
+ }
|
| 1344 |
+
+ ),
|
| 1345 |
+
+ encoding="utf-8",
|
| 1346 |
+
+ )
|
| 1347 |
+
+
|
| 1348 |
+
+ manifest = convert_canonical_rollout_to_lerobot(
|
| 1349 |
+
+ raw_export,
|
| 1350 |
+
+ tmp_path / "lerobot",
|
| 1351 |
+
+ action_carrier="bridge",
|
| 1352 |
+
+ force=True,
|
| 1353 |
+
+ )
|
| 1354 |
+
+
|
| 1355 |
+
+ table = pq.read_table(tmp_path / "lerobot" / "data" / "chunk-000" / "episode_000000.parquet")
|
| 1356 |
+
+ info = json.loads((tmp_path / "lerobot" / "meta" / "info.json").read_text(encoding="utf-8"))
|
| 1357 |
+
+ task_lines = (tmp_path / "lerobot" / "meta" / "tasks.jsonl").read_text(
|
| 1358 |
+
+ encoding="utf-8"
|
| 1359 |
+
+ ).splitlines()
|
| 1360 |
+
+ tasks = [json.loads(line) for line in task_lines]
|
| 1361 |
+
+ converted_row = table.to_pylist()[0]
|
| 1362 |
+
+ assert converted_row["action"] == expected_action
|
| 1363 |
+
+ assert converted_row["observation.state"] == [0.0] * 7
|
| 1364 |
+
+ assert info["features"]["action"]["shape"] == [7]
|
| 1365 |
+
+ assert info["features"]["observation.state"]["shape"] == [7]
|
| 1366 |
+
+ assert tasks == [{"task_index": 0, "task": row["prompt"]}]
|
| 1367 |
+
+ assert manifest["action_carrier"] == "bridge"
|
| 1368 |
+
+ assert manifest["active_action_dim"] == active_action_dim
|
| 1369 |
+
+
|
| 1370 |
+
+
|
| 1371 |
+
+def test_starvla_lerobot_exporter_keeps_every_observation_decision(tmp_path):
|
| 1372 |
+
+ """Canonical rows already occur at the policy observation cadence."""
|
| 1373 |
+
from latency_bench.data.action_layouts import action_spec_for_env
|
| 1374 |
+
from latency_bench.data.exporters.starvla_lerobot import convert_canonical_rollout_to_lerobot
|
| 1375 |
+
from latency_bench.data.hf_parquet import write_parquet_splits
|
| 1376 |
+
@@ -66,12 +161,13 @@ def test_starvla_lerobot_exporter_subsamples_to_obs_cadence(tmp_path):
|
| 1377 |
+
save_test_image(image_path, 9)
|
| 1378 |
+
raw_export = tmp_path / "raw"
|
| 1379 |
+
action_spec = action_spec_for_env("deadly_corridor")
|
| 1380 |
+
- # One episode, 8 contiguous per-raw-frame decision steps; obs_stride = 4.
|
| 1381 |
+
+ # One trajectory with eight contiguous policy-decision observations.
|
| 1382 |
+
train_rows = [
|
| 1383 |
+
{
|
| 1384 |
+
"image": str(image_path),
|
| 1385 |
+
"env_name": "deadly_corridor",
|
| 1386 |
+
"episode_idx": 0,
|
| 1387 |
+
+ "trajectory_idx": 0,
|
| 1388 |
+
"decision_step": step,
|
| 1389 |
+
"split": "train",
|
| 1390 |
+
"seed": 7,
|
| 1391 |
+
@@ -92,6 +188,7 @@ def test_starvla_lerobot_exporter_subsamples_to_obs_cadence(tmp_path):
|
| 1392 |
+
"action_layout": "deadly_corridor_joint_54",
|
| 1393 |
+
"reward_field": "raw_reward",
|
| 1394 |
+
"action_labels": list(action_spec.labels),
|
| 1395 |
+
+ "obs_fps": 8.75,
|
| 1396 |
+
"obs_stride_raw_frames": 4,
|
| 1397 |
+
}
|
| 1398 |
+
),
|
| 1399 |
+
@@ -102,12 +199,73 @@ def test_starvla_lerobot_exporter_subsamples_to_obs_cadence(tmp_path):
|
| 1400 |
+
|
| 1401 |
+
table = pq.read_table(tmp_path / "lerobot" / "data" / "chunk-000" / "episode_000000.parquet")
|
| 1402 |
+
rows = table.to_pylist()
|
| 1403 |
+
- # Only decision_steps 0 and 4 survive; frame_index is contiguous obs index.
|
| 1404 |
+
- assert [r["frame_index"] for r in rows] == [0, 1]
|
| 1405 |
+
- assert [r["episode_index"] for r in rows] == [0, 0]
|
| 1406 |
+
+ assert [r["frame_index"] for r in rows] == list(range(8))
|
| 1407 |
+
+ assert [r["episode_index"] for r in rows] == [0] * 8
|
| 1408 |
+
assert rows[-1]["done"] is True
|
| 1409 |
+
|
| 1410 |
+
|
| 1411 |
+
+def test_starvla_lerobot_exporter_splits_life_trajectories(tmp_path):
|
| 1412 |
+
+ from latency_bench.data.action_layouts import action_spec_for_env
|
| 1413 |
+
+ from latency_bench.data.exporters.starvla_lerobot import convert_canonical_rollout_to_lerobot
|
| 1414 |
+
+ from latency_bench.data.hf_parquet import write_parquet_splits
|
| 1415 |
+
+
|
| 1416 |
+
+ image_path = tmp_path / "image.png"
|
| 1417 |
+
+ save_test_image(image_path, 9)
|
| 1418 |
+
+ raw_export = tmp_path / "raw"
|
| 1419 |
+
+ action_spec = action_spec_for_env("demon_attack")
|
| 1420 |
+
+ train_rows = [
|
| 1421 |
+
+ {
|
| 1422 |
+
+ "image": str(image_path),
|
| 1423 |
+
+ "env_name": "demon_attack",
|
| 1424 |
+
+ "episode_idx": 0,
|
| 1425 |
+
+ "trajectory_idx": trajectory_idx,
|
| 1426 |
+
+ "decision_step": decision_step,
|
| 1427 |
+
+ "split": "train",
|
| 1428 |
+
+ "seed": 7,
|
| 1429 |
+
+ "prompt": "pick action",
|
| 1430 |
+
+ "latency_raw_frames": 6,
|
| 1431 |
+
+ "latency_ms": 100.0,
|
| 1432 |
+
+ "raw_reward": 1.0,
|
| 1433 |
+
+ "action_id": 0,
|
| 1434 |
+
+ "action": [1.0, 0.0, 0.0, 0.0, 0.0, 0.0],
|
| 1435 |
+
+ "action_text": "NOOP",
|
| 1436 |
+
+ }
|
| 1437 |
+
+ for trajectory_idx, decision_step in ((0, 0), (0, 1), (1, 2), (1, 3))
|
| 1438 |
+
+ ]
|
| 1439 |
+
+ write_parquet_splits(raw_export, train_rows, [], action_spec=action_spec)
|
| 1440 |
+
+ (raw_export / "metadata.json").write_text(
|
| 1441 |
+
+ json.dumps(
|
| 1442 |
+
+ {
|
| 1443 |
+
+ "env_name": "demon_attack",
|
| 1444 |
+
+ "action_layout": action_spec.layout,
|
| 1445 |
+
+ "reward_field": action_spec.reward_field,
|
| 1446 |
+
+ "action_labels": list(action_spec.labels),
|
| 1447 |
+
+ "obs_fps": 15,
|
| 1448 |
+
+ }
|
| 1449 |
+
+ ),
|
| 1450 |
+
+ encoding="utf-8",
|
| 1451 |
+
+ )
|
| 1452 |
+
+
|
| 1453 |
+
+ manifest = convert_canonical_rollout_to_lerobot(
|
| 1454 |
+
+ raw_export,
|
| 1455 |
+
+ tmp_path / "lerobot",
|
| 1456 |
+
+ action_carrier="bridge",
|
| 1457 |
+
+ force=True,
|
| 1458 |
+
+ )
|
| 1459 |
+
+
|
| 1460 |
+
+ first = pq.read_table(
|
| 1461 |
+
+ tmp_path / "lerobot" / "data" / "chunk-000" / "episode_000000.parquet"
|
| 1462 |
+
+ ).to_pylist()
|
| 1463 |
+
+ second = pq.read_table(
|
| 1464 |
+
+ tmp_path / "lerobot" / "data" / "chunk-000" / "episode_000001.parquet"
|
| 1465 |
+
+ ).to_pylist()
|
| 1466 |
+
+ assert manifest["episodes"] == 2
|
| 1467 |
+
+ assert [row["frame_index"] for row in first] == [0, 1]
|
| 1468 |
+
+ assert [row["frame_index"] for row in second] == [0, 1]
|
| 1469 |
+
+ assert [row["done"] for row in first] == [False, True]
|
| 1470 |
+
+ assert [row["done"] for row in second] == [False, True]
|
| 1471 |
+
+
|
| 1472 |
+
+
|
| 1473 |
+
def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1474 |
+
from datasets import Dataset, Features, Image as HFImage, Sequence as HFSequence, Value
|
| 1475 |
+
from latency_bench.data.exporters.starvla_lerobot import convert_canonical_rollout_to_lerobot
|
| 1476 |
+
@@ -121,6 +279,7 @@ def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1477 |
+
"image": HFImage(),
|
| 1478 |
+
"env_name": Value("string"),
|
| 1479 |
+
"episode_idx": Value("int64"),
|
| 1480 |
+
+ "trajectory_idx": Value("int64"),
|
| 1481 |
+
"decision_step": Value("int64"),
|
| 1482 |
+
"split": Value("string"),
|
| 1483 |
+
"seed": Value("int64"),
|
| 1484 |
+
@@ -138,6 +297,7 @@ def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1485 |
+
"image": [str(image_path)],
|
| 1486 |
+
"env_name": ["flappy"],
|
| 1487 |
+
"episode_idx": [0],
|
| 1488 |
+
+ "trajectory_idx": [0],
|
| 1489 |
+
"decision_step": [0],
|
| 1490 |
+
"split": ["train"],
|
| 1491 |
+
"seed": [11],
|
| 1492 |
+
@@ -156,6 +316,7 @@ def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1493 |
+
"image": [str(image_path)],
|
| 1494 |
+
"env_name": ["flappy"],
|
| 1495 |
+
"episode_idx": [1],
|
| 1496 |
+
+ "trajectory_idx": [0],
|
| 1497 |
+
"decision_step": [0],
|
| 1498 |
+
"split": ["val"],
|
| 1499 |
+
"seed": [12],
|
| 1500 |
+
@@ -176,6 +337,7 @@ def test_starvla_lerobot_exporter_does_not_accept_latency_alias(tmp_path):
|
| 1501 |
+
"action_layout": "flappy_discrete",
|
| 1502 |
+
"reward_field": "raw_reward",
|
| 1503 |
+
"action_labels": ["NOOP", "FLAP"],
|
| 1504 |
+
+ "obs_fps": 30,
|
| 1505 |
+
}
|
| 1506 |
+
),
|
| 1507 |
+
encoding="utf-8",
|
| 1508 |
+
diff --git a/tests/policies/test_sample_factory_policy.py b/tests/policies/test_sample_factory_policy.py
|
| 1509 |
+
index 0cfe0e1..e61b69c 100644
|
| 1510 |
+
--- a/tests/policies/test_sample_factory_policy.py
|
| 1511 |
+
+++ b/tests/policies/test_sample_factory_policy.py
|
| 1512 |
+
@@ -18,6 +18,21 @@ from latency_bench.policy import sample_factory as sample_factory_policy
|
| 1513 |
+
from latency_bench.policy import sample_factory_common
|
| 1514 |
+
|
| 1515 |
+
|
| 1516 |
+
+def test_sample_factory_integration_parses_policy_config_for_evaluation():
|
| 1517 |
+
+ calls = []
|
| 1518 |
+
+ parsed_cfg = object()
|
| 1519 |
+
+ module = SimpleNamespace(
|
| 1520 |
+
+ build_cli_args_from_config=lambda config: ["--experiment", config["experiment"]],
|
| 1521 |
+
+ parse_cfg=lambda argv, *, evaluation: calls.append((argv, evaluation)) or parsed_cfg,
|
| 1522 |
+
+ )
|
| 1523 |
+
+ integration = sf_runtime.SampleFactoryIntegrationModule(module, "register_components")
|
| 1524 |
+
+
|
| 1525 |
+
+ result = integration.build_sf_cfg_from_config({"experiment": "teacher"})
|
| 1526 |
+
+
|
| 1527 |
+
+ assert result is parsed_cfg
|
| 1528 |
+
+ assert calls == [(["--experiment", "teacher"], True)]
|
| 1529 |
+
+
|
| 1530 |
+
+
|
| 1531 |
+
@pytest.mark.parametrize(
|
| 1532 |
+
("policy_type", "integration_module_name", "register_attr"),
|
| 1533 |
+
[
|
| 1534 |
+
diff --git a/tests/scripts/test_generate_sweep_configs.py b/tests/scripts/test_generate_sweep_configs.py
|
| 1535 |
+
index 23d79cb..438b296 100644
|
| 1536 |
+
--- a/tests/scripts/test_generate_sweep_configs.py
|
| 1537 |
+
+++ b/tests/scripts/test_generate_sweep_configs.py
|
| 1538 |
+
@@ -23,6 +23,75 @@ def _read_manifest(path: Path) -> list[dict[str, str]]:
|
| 1539 |
+
return [dict(zip(header, line.split("\t"))) for line in lines[1:]]
|
| 1540 |
+
|
| 1541 |
+
|
| 1542 |
+
+@pytest.mark.parametrize(
|
| 1543 |
+
+ ("env_name", "latency_label", "latency_frames", "obs_fps", "obs_fps_label"),
|
| 1544 |
+
+ [
|
| 1545 |
+
+ ("flappy", "fixed_l3", 3, 30, "30"),
|
| 1546 |
+
+ ("demon_attack", "fixed_l6", 6, 15, "15"),
|
| 1547 |
+
+ ("deadly_corridor", "fixed_l6", 6, 8.75, "8p75"),
|
| 1548 |
+
+ ],
|
| 1549 |
+
+)
|
| 1550 |
+
+def test_memory_rollout_teacher_spec_emits_single_uploadable_job(
|
| 1551 |
+
+ tmp_path,
|
| 1552 |
+
+ env_name,
|
| 1553 |
+
+ latency_label,
|
| 1554 |
+
+ latency_frames,
|
| 1555 |
+
+ obs_fps,
|
| 1556 |
+
+ obs_fps_label,
|
| 1557 |
+
+):
|
| 1558 |
+
+ generated_root = tmp_path / "configs"
|
| 1559 |
+
+ output_root = tmp_path / "outputs"
|
| 1560 |
+
+ train_dir = tmp_path / "checkpoints"
|
| 1561 |
+
+
|
| 1562 |
+
+ generate_sweep_configs(
|
| 1563 |
+
+ [
|
| 1564 |
+
+ "--spec",
|
| 1565 |
+
+ f"configs/experiments/memory/rollout_teacher/{env_name}.yaml",
|
| 1566 |
+
+ "--generated-root",
|
| 1567 |
+
+ str(generated_root),
|
| 1568 |
+
+ "--output-root",
|
| 1569 |
+
+ str(output_root),
|
| 1570 |
+
+ "--train-dir",
|
| 1571 |
+
+ str(train_dir),
|
| 1572 |
+
+ ]
|
| 1573 |
+
+ )
|
| 1574 |
+
+
|
| 1575 |
+
+ rows = _read_manifest(generated_root / "manifest.tsv")
|
| 1576 |
+
+ assert len(rows) == 1
|
| 1577 |
+
+ row = rows[0]
|
| 1578 |
+
+ assert row["env"] == env_name
|
| 1579 |
+
+ assert row["experiment_family"] == "memory_rollout_teacher"
|
| 1580 |
+
+ assert row["sweep_name"] == "teacher"
|
| 1581 |
+
+ assert row["seed"] == "0"
|
| 1582 |
+
+ assert row["frame_stack"] == "4"
|
| 1583 |
+
+ assert row["obs_fps"] == obs_fps_label
|
| 1584 |
+
+ assert row["latency_label"] == latency_label
|
| 1585 |
+
+ assert row["latency_kind"] == "fixed"
|
| 1586 |
+
+ assert row["latency_fixed_frames"] == str(latency_frames)
|
| 1587 |
+
+ assert row["train_upload_repo_id"] == "latency-sensitive-bench/paper-experiment-models"
|
| 1588 |
+
+ assert row["train_upload_repo_type"] == "model"
|
| 1589 |
+
+ assert row["eval_upload_repo_id"] == ""
|
| 1590 |
+
+ assert row["train_artifact_repo_path"].startswith(
|
| 1591 |
+
+ f"memory/rollout_teachers/{env_name}/train/"
|
| 1592 |
+
+ )
|
| 1593 |
+
+
|
| 1594 |
+
+ train_cfg = yaml.safe_load(Path(row["train_config"]).read_text(encoding="utf-8"))
|
| 1595 |
+
+ assert train_cfg["experiment"]["seed"] == 0
|
| 1596 |
+
+ assert train_cfg["env"]["frame_stack"] == 4
|
| 1597 |
+
+ assert train_cfg["env"]["obs_fps"] == pytest.approx(obs_fps)
|
| 1598 |
+
+ if env_name == "demon_attack":
|
| 1599 |
+
+ assert train_cfg["env"]["reset_mode"] == "fire"
|
| 1600 |
+
+ assert train_cfg["latency"]["method"] == "fixed"
|
| 1601 |
+
+ assert train_cfg["latency"]["fixed_latency_ms"] == pytest.approx(
|
| 1602 |
+
+ latency_frames * 1000 / train_cfg["env"]["env_fps"]
|
| 1603 |
+
+ )
|
| 1604 |
+
+ assert train_cfg["evaluation"]["eval_suites"] == {
|
| 1605 |
+
+ "fixed": [[latency_frames]],
|
| 1606 |
+
+ "normal": [],
|
| 1607 |
+
+ "uniform": [],
|
| 1608 |
+
+ }
|
| 1609 |
+
+
|
| 1610 |
+
+
|
| 1611 |
+
def test_latency_bench_eval_config_disables_full_trace_records(tmp_path):
|
| 1612 |
+
base_config = {
|
| 1613 |
+
"backend": {
|
| 1614 |
+
diff --git a/tests/scripts/test_manifest_jobs.py b/tests/scripts/test_manifest_jobs.py
|
| 1615 |
+
index bd7bf03..c9dd3c6 100644
|
| 1616 |
+
--- a/tests/scripts/test_manifest_jobs.py
|
| 1617 |
+
+++ b/tests/scripts/test_manifest_jobs.py
|
| 1618 |
+
@@ -1,8 +1,10 @@
|
| 1619 |
+
from __future__ import annotations
|
| 1620 |
+
|
| 1621 |
+
+import json
|
| 1622 |
+
import os
|
| 1623 |
+
-import subprocess
|
| 1624 |
+
+import shlex
|
| 1625 |
+
import signal
|
| 1626 |
+
+import subprocess
|
| 1627 |
+
import sys
|
| 1628 |
+
import threading
|
| 1629 |
+
import time
|
| 1630 |
+
@@ -10,6 +12,7 @@ import types
|
| 1631 |
+
from pathlib import Path
|
| 1632 |
+
|
| 1633 |
+
import pytest
|
| 1634 |
+
+from helpers import REPO_ROOT
|
| 1635 |
+
|
| 1636 |
+
import scripts.experiment_runner.run_manifest_jobs as run_manifest_jobs
|
| 1637 |
+
from scripts.experiment_runner.job_manifest import (
|
| 1638 |
+
@@ -68,6 +71,39 @@ def test_train_stage_only_trains_and_resumes_from_success(tmp_path):
|
| 1639 |
+
assert [event["stage"] for event in events] == ["train_started", "train_succeeded"]
|
| 1640 |
+
|
| 1641 |
+
|
| 1642 |
+
+@pytest.mark.parametrize(
|
| 1643 |
+
+ ("recorded_stage", "expected_stage"),
|
| 1644 |
+
+ [
|
| 1645 |
+
+ ("train_started", "train"),
|
| 1646 |
+
+ ("train_succeeded", "eval"),
|
| 1647 |
+
+ ("eval_started", "eval"),
|
| 1648 |
+
+ ("eval_failed", "eval"),
|
| 1649 |
+
+ ("eval_succeeded", "upload"),
|
| 1650 |
+
+ ("upload_started", "upload"),
|
| 1651 |
+
+ ],
|
| 1652 |
+
+)
|
| 1653 |
+
+def test_resume_stage_keeps_interrupted_job_at_its_current_pipeline_stage(
|
| 1654 |
+
+ tmp_path,
|
| 1655 |
+
+ recorded_stage,
|
| 1656 |
+
+ expected_stage,
|
| 1657 |
+
+):
|
| 1658 |
+
+ train_artifact_dir = tmp_path / "train_artifact"
|
| 1659 |
+
+ train_artifact_dir.mkdir()
|
| 1660 |
+
+ (train_artifact_dir / "config.json").write_text("{}")
|
| 1661 |
+
+ assert run_manifest_jobs._resume_stage(
|
| 1662 |
+
+ {"job_id": "job1", "train_artifact_dir": str(train_artifact_dir)},
|
| 1663 |
+
+ {"job1": recorded_stage},
|
| 1664 |
+
+ ) == expected_stage
|
| 1665 |
+
+
|
| 1666 |
+
+
|
| 1667 |
+
+@pytest.mark.parametrize("recorded_stage", ["train_succeeded", "eval_started", "eval_failed"])
|
| 1668 |
+
+def test_resume_stage_retrains_when_train_artifact_was_deleted(tmp_path, recorded_stage):
|
| 1669 |
+
+ assert run_manifest_jobs._resume_stage(
|
| 1670 |
+
+ {"job_id": "job1", "train_artifact_dir": str(tmp_path / "deleted_train_artifact")},
|
| 1671 |
+
+ {"job1": recorded_stage},
|
| 1672 |
+
+ ) == "train"
|
| 1673 |
+
+
|
| 1674 |
+
+
|
| 1675 |
+
def test_eval_stage_does_not_train_or_upload(tmp_path):
|
| 1676 |
+
manifest_path, train_mark, eval_mark = _write_single_job(tmp_path)
|
| 1677 |
+
uploads: list[str] = []
|
| 1678 |
+
@@ -134,6 +170,26 @@ def test_upload_stage_needs_no_gpu_and_retries_failed_upload(tmp_path):
|
| 1679 |
+
]
|
| 1680 |
+
|
| 1681 |
+
|
| 1682 |
+
+def test_upload_stage_resumes_interrupted_upload(tmp_path):
|
| 1683 |
+
+ manifest_path, _, _ = _write_single_job(tmp_path)
|
| 1684 |
+
+ append_event(
|
| 1685 |
+
+ event_log_path_for_manifest(manifest_path),
|
| 1686 |
+
+ {"job_id": "job1", "stage": "upload_started", "ts": 1.0},
|
| 1687 |
+
+ )
|
| 1688 |
+
+ uploads: list[str] = []
|
| 1689 |
+
+
|
| 1690 |
+
+ assert run_jobs(
|
| 1691 |
+
+ manifest_path=manifest_path,
|
| 1692 |
+
+ gpus=[],
|
| 1693 |
+
+ upload_workers=1,
|
| 1694 |
+
+ max_upload_attempts=1,
|
| 1695 |
+
+ stage="upload",
|
| 1696 |
+
+ uploader=lambda job: uploads.append(job["job_id"]),
|
| 1697 |
+
+ ) == 0
|
| 1698 |
+
+
|
| 1699 |
+
+ assert uploads == ["job1"]
|
| 1700 |
+
+
|
| 1701 |
+
+
|
| 1702 |
+
def test_dry_run_does_not_execute_or_record_success(tmp_path, capsys):
|
| 1703 |
+
manifest_path, train_mark, eval_mark = _write_single_job(tmp_path)
|
| 1704 |
+
|
| 1705 |
+
@@ -310,6 +366,186 @@ def test_run_command_cleanup_terminates_child_process_group(tmp_path):
|
| 1706 |
+
os.kill(child_pid, 0)
|
| 1707 |
+
|
| 1708 |
+
|
| 1709 |
+
+def test_sigint_cancels_queue_and_kills_all_active_process_groups(tmp_path):
|
| 1710 |
+
+ helper_path = tmp_path / "ignore_term_job.py"
|
| 1711 |
+
+ helper_path.write_text(
|
| 1712 |
+
+ """from __future__ import annotations
|
| 1713 |
+
+
|
| 1714 |
+
+import json
|
| 1715 |
+
+import os
|
| 1716 |
+
+from pathlib import Path
|
| 1717 |
+
+import signal
|
| 1718 |
+
+import subprocess
|
| 1719 |
+
+import sys
|
| 1720 |
+
+import time
|
| 1721 |
+
+
|
| 1722 |
+
+signal.signal(signal.SIGTERM, signal.SIG_IGN)
|
| 1723 |
+
+child = subprocess.Popen(
|
| 1724 |
+
+ [
|
| 1725 |
+
+ sys.executable,
|
| 1726 |
+
+ "-c",
|
| 1727 |
+
+ "import signal, time; signal.signal(signal.SIGTERM, signal.SIG_IGN); time.sleep(60)",
|
| 1728 |
+
+ ]
|
| 1729 |
+
+)
|
| 1730 |
+
+Path(sys.argv[1]).write_text(
|
| 1731 |
+
+ json.dumps(
|
| 1732 |
+
+ {
|
| 1733 |
+
+ "leader_pid": os.getpid(),
|
| 1734 |
+
+ "leader_pgid": os.getpgid(0),
|
| 1735 |
+
+ "child_pid": child.pid,
|
| 1736 |
+
+ "child_pgid": os.getpgid(child.pid),
|
| 1737 |
+
+ }
|
| 1738 |
+
+ ),
|
| 1739 |
+
+ encoding="utf-8",
|
| 1740 |
+
+)
|
| 1741 |
+
+time.sleep(60)
|
| 1742 |
+
+""",
|
| 1743 |
+
+ encoding="utf-8",
|
| 1744 |
+
+ )
|
| 1745 |
+
+ manifest_path = tmp_path / "manifest.tsv"
|
| 1746 |
+
+ markers = [tmp_path / f"job_{idx}.json" for idx in range(4)]
|
| 1747 |
+
+ rows = []
|
| 1748 |
+
+ for idx, marker in enumerate(markers):
|
| 1749 |
+
+ row = {column: "" for column in MANIFEST_V2_COLUMNS}
|
| 1750 |
+
+ row.update(
|
| 1751 |
+
+ {
|
| 1752 |
+
+ "schema_version": "v2",
|
| 1753 |
+
+ "job_id": f"job{idx}",
|
| 1754 |
+
+ "train_command": f"exec {shlex.join([sys.executable, str(helper_path), str(marker)])}",
|
| 1755 |
+
+ }
|
| 1756 |
+
+ )
|
| 1757 |
+
+ rows.append(row)
|
| 1758 |
+
+ write_manifest(manifest_path, rows)
|
| 1759 |
+
+
|
| 1760 |
+
+ runner = subprocess.Popen(
|
| 1761 |
+
+ [
|
| 1762 |
+
+ sys.executable,
|
| 1763 |
+
+ "-m",
|
| 1764 |
+
+ "scripts.experiment_runner.run_manifest_jobs",
|
| 1765 |
+
+ "--manifest",
|
| 1766 |
+
+ str(manifest_path),
|
| 1767 |
+
+ "--stage",
|
| 1768 |
+
+ "train",
|
| 1769 |
+
+ "--gpus",
|
| 1770 |
+
+ "0,1",
|
| 1771 |
+
+ ],
|
| 1772 |
+
+ cwd=REPO_ROOT,
|
| 1773 |
+
+ stdout=subprocess.PIPE,
|
| 1774 |
+
+ stderr=subprocess.PIPE,
|
| 1775 |
+
+ text=True,
|
| 1776 |
+
+ )
|
| 1777 |
+
+ process_groups: set[int] = set()
|
| 1778 |
+
+ try:
|
| 1779 |
+
+ deadline = time.time() + 10.0
|
| 1780 |
+
+ while sum(marker.is_file() for marker in markers) < 2 and time.time() < deadline:
|
| 1781 |
+
+ time.sleep(0.05)
|
| 1782 |
+
+ assert [marker.is_file() for marker in markers] == [True, True, False, False]
|
| 1783 |
+
+ for marker in markers[:2]:
|
| 1784 |
+
+ process_info = json.loads(marker.read_text(encoding="utf-8"))
|
| 1785 |
+
+ assert process_info["leader_pgid"] == process_info["child_pgid"]
|
| 1786 |
+
+ process_groups.add(int(process_info["leader_pgid"]))
|
| 1787 |
+
+
|
| 1788 |
+
+ runner.send_signal(signal.SIGINT)
|
| 1789 |
+
+ time.sleep(0.1)
|
| 1790 |
+
+ runner.send_signal(signal.SIGINT)
|
| 1791 |
+
+ stdout, stderr = runner.communicate(timeout=10.0)
|
| 1792 |
+
+ assert runner.returncode != 0, (stdout, stderr)
|
| 1793 |
+
+ assert [marker.is_file() for marker in markers] == [True, True, False, False]
|
| 1794 |
+
+
|
| 1795 |
+
+ deadline = time.time() + 5.0
|
| 1796 |
+
+ while process_groups and time.time() < deadline:
|
| 1797 |
+
+ for process_group in list(process_groups):
|
| 1798 |
+
+ try:
|
| 1799 |
+
+ os.killpg(process_group, 0)
|
| 1800 |
+
+ except ProcessLookupError:
|
| 1801 |
+
+ process_groups.remove(process_group)
|
| 1802 |
+
+ time.sleep(0.05)
|
| 1803 |
+
+ assert not process_groups
|
| 1804 |
+
+
|
| 1805 |
+
+ events = load_events(event_log_path_for_manifest(manifest_path))
|
| 1806 |
+
+ assert [event["stage"] for event in events] == ["train_started", "train_started"]
|
| 1807 |
+
+ finally:
|
| 1808 |
+
+ if runner.poll() is None:
|
| 1809 |
+
+ runner.kill()
|
| 1810 |
+
+ runner.wait()
|
| 1811 |
+
+ for process_group in process_groups:
|
| 1812 |
+
+ try:
|
| 1813 |
+
+ os.killpg(process_group, signal.SIGKILL)
|
| 1814 |
+
+ except ProcessLookupError:
|
| 1815 |
+
+ pass
|
| 1816 |
+
+
|
| 1817 |
+
+
|
| 1818 |
+
+def test_sigint_does_not_wait_for_in_flight_upload(tmp_path):
|
| 1819 |
+
+ manifest_path = tmp_path / "manifest.tsv"
|
| 1820 |
+
+ row = {column: "" for column in MANIFEST_V2_COLUMNS}
|
| 1821 |
+
+ row.update(
|
| 1822 |
+
+ {
|
| 1823 |
+
+ "schema_version": "v2",
|
| 1824 |
+
+ "job_id": "job0",
|
| 1825 |
+
+ "train_upload_repo_id": "repo-model",
|
| 1826 |
+
+ "train_upload_repo_type": "model",
|
| 1827 |
+
+ }
|
| 1828 |
+
+ )
|
| 1829 |
+
+ write_manifest(manifest_path, [row])
|
| 1830 |
+
+ append_event(
|
| 1831 |
+
+ event_log_path_for_manifest(manifest_path),
|
| 1832 |
+
+ {"job_id": "job0", "stage": "eval_succeeded"},
|
| 1833 |
+
+ )
|
| 1834 |
+
+ upload_started = tmp_path / "upload_started"
|
| 1835 |
+
+ helper_path = tmp_path / "blocking_upload_runner.py"
|
| 1836 |
+
+ helper_path.write_text(
|
| 1837 |
+
+ """from pathlib import Path
|
| 1838 |
+
+import sys
|
| 1839 |
+
+import time
|
| 1840 |
+
+
|
| 1841 |
+
+from scripts.experiment_runner.run_manifest_jobs import run_jobs
|
| 1842 |
+
+
|
| 1843 |
+
+manifest_path = Path(sys.argv[1])
|
| 1844 |
+
+upload_started = Path(sys.argv[2])
|
| 1845 |
+
+
|
| 1846 |
+
+def blocking_uploader(job):
|
| 1847 |
+
+ del job
|
| 1848 |
+
+ upload_started.write_text("started", encoding="utf-8")
|
| 1849 |
+
+ time.sleep(60)
|
| 1850 |
+
+
|
| 1851 |
+
+raise SystemExit(
|
| 1852 |
+
+ run_jobs(
|
| 1853 |
+
+ manifest_path=manifest_path,
|
| 1854 |
+
+ gpus=[],
|
| 1855 |
+
+ upload_workers=1,
|
| 1856 |
+
+ max_upload_attempts=1,
|
| 1857 |
+
+ stage="upload",
|
| 1858 |
+
+ uploader=blocking_uploader,
|
| 1859 |
+
+ )
|
| 1860 |
+
+)
|
| 1861 |
+
+""",
|
| 1862 |
+
+ encoding="utf-8",
|
| 1863 |
+
+ )
|
| 1864 |
+
+ runner = subprocess.Popen(
|
| 1865 |
+
+ [sys.executable, str(helper_path), str(manifest_path), str(upload_started)],
|
| 1866 |
+
+ cwd=REPO_ROOT,
|
| 1867 |
+
+ env={**os.environ, "PYTHONPATH": str(REPO_ROOT)},
|
| 1868 |
+
+ stdout=subprocess.PIPE,
|
| 1869 |
+
+ stderr=subprocess.PIPE,
|
| 1870 |
+
+ text=True,
|
| 1871 |
+
+ )
|
| 1872 |
+
+ try:
|
| 1873 |
+
+ deadline = time.time() + 10.0
|
| 1874 |
+
+ while not upload_started.is_file() and time.time() < deadline:
|
| 1875 |
+
+ time.sleep(0.05)
|
| 1876 |
+
+ assert upload_started.is_file()
|
| 1877 |
+
+
|
| 1878 |
+
+ started_at = time.monotonic()
|
| 1879 |
+
+ runner.send_signal(signal.SIGINT)
|
| 1880 |
+
+ stdout, stderr = runner.communicate(timeout=5.0)
|
| 1881 |
+
+ assert runner.returncode != 0, (stdout, stderr)
|
| 1882 |
+
+ assert time.monotonic() - started_at < 3.0
|
| 1883 |
+
+ finally:
|
| 1884 |
+
+ if runner.poll() is None:
|
| 1885 |
+
+ runner.kill()
|
| 1886 |
+
+ runner.wait()
|
| 1887 |
+
+
|
| 1888 |
+
+
|
| 1889 |
+
def test_default_uploader_prefers_env_token_over_dotenv(monkeypatch, tmp_path):
|
| 1890 |
+
monkeypatch.chdir(tmp_path)
|
| 1891 |
+
(tmp_path / ".env").write_text("HF_TOKEN=dotenv-token\n", encoding="utf-8")
|
| 1892 |
+
diff --git a/training/deadly_corridor_sf/integration.py b/training/deadly_corridor_sf/integration.py
|
| 1893 |
+
index 08fc63e..6405b7c 100644
|
| 1894 |
+
--- a/training/deadly_corridor_sf/integration.py
|
| 1895 |
+
+++ b/training/deadly_corridor_sf/integration.py
|
| 1896 |
+
@@ -287,7 +287,7 @@ def add_latency_args(parser: argparse.ArgumentParser) -> None:
|
| 1897 |
+
parser.add_argument("--vizdoom_init_retry_jitter_sec", type=float, default=0.25)
|
| 1898 |
+
|
| 1899 |
+
|
| 1900 |
+
-def parse_cfg(argv=None):
|
| 1901 |
+
+def parse_cfg(argv=None, *, evaluation: bool = True):
|
| 1902 |
+
from sample_factory.cfg.arguments import parse_full_cfg, parse_sf_args
|
| 1903 |
+
from sf_examples.vizdoom.doom.doom_params import (
|
| 1904 |
+
add_doom_env_args,
|
| 1905 |
+
@@ -295,7 +295,7 @@ def parse_cfg(argv=None):
|
| 1906 |
+
doom_override_defaults,
|
| 1907 |
+
)
|
| 1908 |
+
|
| 1909 |
+
- parser, _ = parse_sf_args(argv=argv, evaluation=True)
|
| 1910 |
+
+ parser, _ = parse_sf_args(argv=argv, evaluation=evaluation)
|
| 1911 |
+
add_doom_env_args(parser)
|
| 1912 |
+
add_doom_env_eval_args(parser)
|
| 1913 |
+
add_latency_args(parser)
|
| 1914 |
+
diff --git a/training/demon_attack_sf/integration.py b/training/demon_attack_sf/integration.py
|
| 1915 |
+
index 1ee9060..9097048 100644
|
| 1916 |
+
--- a/training/demon_attack_sf/integration.py
|
| 1917 |
+
+++ b/training/demon_attack_sf/integration.py
|
| 1918 |
+
@@ -318,10 +318,10 @@ def demon_attack_override_defaults(parser: argparse.ArgumentParser) -> None:
|
| 1919 |
+
)
|
| 1920 |
+
|
| 1921 |
+
|
| 1922 |
+
-def parse_cfg(argv=None):
|
| 1923 |
+
+def parse_cfg(argv=None, *, evaluation: bool = False):
|
| 1924 |
+
from sample_factory.cfg.arguments import parse_full_cfg, parse_sf_args
|
| 1925 |
+
|
| 1926 |
+
- parser, _ = parse_sf_args(argv=argv, evaluation=False)
|
| 1927 |
+
+ parser, _ = parse_sf_args(argv=argv, evaluation=evaluation)
|
| 1928 |
+
add_demon_attack_env_args(parser)
|
| 1929 |
+
demon_attack_override_defaults(parser)
|
| 1930 |
+
cfg = parse_full_cfg(parser, argv)
|
| 1931 |
+
diff --git a/training/flappy_sf/integration.py b/training/flappy_sf/integration.py
|
| 1932 |
+
index 6f666be..c342ba7 100644
|
| 1933 |
+
--- a/training/flappy_sf/integration.py
|
| 1934 |
+
+++ b/training/flappy_sf/integration.py
|
| 1935 |
+
@@ -541,10 +541,10 @@ def flappy_override_defaults(parser: argparse.ArgumentParser) -> None:
|
| 1936 |
+
)
|
| 1937 |
+
|
| 1938 |
+
|
| 1939 |
+
-def parse_cfg(argv=None):
|
| 1940 |
+
+def parse_cfg(argv=None, *, evaluation: bool = False):
|
| 1941 |
+
from sample_factory.cfg.arguments import parse_full_cfg, parse_sf_args
|
| 1942 |
+
|
| 1943 |
+
- parser, _ = parse_sf_args(argv=argv, evaluation=False)
|
| 1944 |
+
+ parser, _ = parse_sf_args(argv=argv, evaluation=evaluation)
|
| 1945 |
+
add_flappy_env_args(parser)
|
| 1946 |
+
flappy_override_defaults(parser)
|
| 1947 |
+
cfg = parse_full_cfg(parser, argv)
|
evaluations/flappy/memory_rollout_teacher:flappy:teacher:fixed_l3:fs4:obs30:stride1:seed0/train/memory_rollout_teacher:flappy:teacher:fixed_l3:fs4:obs30:stride1:seed0/sf_log.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluations/flappy/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3/episode_metrics.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"episode_id": 0, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 42, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 2 |
+
{"episode_id": 1, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 43, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 3 |
+
{"episode_id": 2, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 44, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 4 |
+
{"episode_id": 3, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 45, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 5 |
+
{"episode_id": 4, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 46, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 6 |
+
{"episode_id": 5, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 47, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 7 |
+
{"episode_id": 6, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 48, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 8 |
+
{"episode_id": 7, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 49, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 9 |
+
{"episode_id": 8, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 50, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 10 |
+
{"episode_id": 9, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 51, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 11 |
+
{"episode_id": 10, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 52, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 12 |
+
{"episode_id": 11, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 53, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 13 |
+
{"episode_id": 12, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 54, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 14 |
+
{"episode_id": 13, "episode_return": 132.80000157654285, "episode_return_env": 132.80000157654285, "game_score": 28.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 55, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 1087, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 1087}
|
| 15 |
+
{"episode_id": 14, "episode_return": 370.80000436306, "episode_return_env": 370.80000436306, "game_score": 79.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 56, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3008, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3008}
|
| 16 |
+
{"episode_id": 15, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 57, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 17 |
+
{"episode_id": 16, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 58, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 18 |
+
{"episode_id": 17, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 59, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 19 |
+
{"episode_id": 18, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 60, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
| 20 |
+
{"episode_id": 19, "episode_return": 444.6000052243471, "episode_return_env": 444.6000052243471, "game_score": 94.0, "mean_latency_ms": 100.0, "metadata": {"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "config_name": "starvla_wan_oft_flappy_raw3", "configured_latency_ms": 100.0, "env_fps": 30.0, "env_id": "flappy", "episode_seed": 61, "eval_latency_steps": 3, "frame_ms": 33.333333333333336, "instance_id": null, "instance_origin": null, "latency_type": "fixed_sweep", "mode": "simulated", "obs_fps": 30.0, "output_dir": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/eval_latency_3", "policy_id": "starvla", "profile_id": null, "profile_path": null, "replay_host": null, "run_name": "starvla_wan_oft_flappy_raw3", "suite_name": "fixed_3", "target_device": null, "train_latency_steps": 3}, "num_actions": 3600, "num_dropped_actions": 2, "num_invalid_actions": 0, "p90_latency_ms": 100.0, "p99_latency_ms": 100.0, "return_raw": null, "survival_steps": 3600}
|
evaluations/flappy/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/queue_eval_latency_3.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt",
|
| 3 |
+
"configured_latency_ms": 100.0,
|
| 4 |
+
"eval_latency_steps": 3,
|
| 5 |
+
"experiment_name": "starvla_wan_oft_flappy_raw3",
|
| 6 |
+
"latency": 3,
|
| 7 |
+
"latency_type": "fixed_sweep",
|
| 8 |
+
"lengths": [
|
| 9 |
+
3600,
|
| 10 |
+
3600,
|
| 11 |
+
3600,
|
| 12 |
+
3600,
|
| 13 |
+
3600,
|
| 14 |
+
3600,
|
| 15 |
+
3600,
|
| 16 |
+
3600,
|
| 17 |
+
3600,
|
| 18 |
+
3600,
|
| 19 |
+
3600,
|
| 20 |
+
3600,
|
| 21 |
+
3600,
|
| 22 |
+
1087,
|
| 23 |
+
3008,
|
| 24 |
+
3600,
|
| 25 |
+
3600,
|
| 26 |
+
3600,
|
| 27 |
+
3600,
|
| 28 |
+
3600
|
| 29 |
+
],
|
| 30 |
+
"mean_length": 3444.75,
|
| 31 |
+
"mean_return": 425.32000499889256,
|
| 32 |
+
"returns": [
|
| 33 |
+
444.6000052243471,
|
| 34 |
+
444.6000052243471,
|
| 35 |
+
444.6000052243471,
|
| 36 |
+
444.6000052243471,
|
| 37 |
+
444.6000052243471,
|
| 38 |
+
444.6000052243471,
|
| 39 |
+
444.6000052243471,
|
| 40 |
+
444.6000052243471,
|
| 41 |
+
444.6000052243471,
|
| 42 |
+
444.6000052243471,
|
| 43 |
+
444.6000052243471,
|
| 44 |
+
444.6000052243471,
|
| 45 |
+
444.6000052243471,
|
| 46 |
+
132.80000157654285,
|
| 47 |
+
370.80000436306,
|
| 48 |
+
444.6000052243471,
|
| 49 |
+
444.6000052243471,
|
| 50 |
+
444.6000052243471,
|
| 51 |
+
444.6000052243471,
|
| 52 |
+
444.6000052243471
|
| 53 |
+
],
|
| 54 |
+
"seed": 42,
|
| 55 |
+
"std_return": 69.00409923621429,
|
| 56 |
+
"suite_name": "fixed_3",
|
| 57 |
+
"timestamp_utc": "2026-07-29T22:31:52.064243+00:00",
|
| 58 |
+
"train_latency_steps": 3
|
| 59 |
+
}
|
evaluations/flappy/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/eval/fixed_3/queue_eval_results.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"checkpoint_path": "/workspace/runtime/wanoft/wan_oft_flappy_fix_latency_3_context5_standard_sft_2000_effbs128_224_currentce/checkpoints/steps_2000_pytorch_model.pt", "configured_latency_ms": 100.0, "eval_latency_steps": 3, "experiment_name": "starvla_wan_oft_flappy_raw3", "latency": 3, "latency_type": "fixed_sweep", "lengths": [3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 1087, 3008, 3600, 3600, 3600, 3600, 3600], "mean_length": 3444.75, "mean_return": 425.32000499889256, "returns": [444.6000052243471, 444.6000052243471, 444.6000052243471, 444.6000052243471, 444.6000052243471, 444.6000052243471, 444.6000052243471, 444.6000052243471, 444.6000052243471, 444.6000052243471, 444.6000052243471, 444.6000052243471, 444.6000052243471, 132.80000157654285, 370.80000436306, 444.6000052243471, 444.6000052243471, 444.6000052243471, 444.6000052243471, 444.6000052243471], "seed": 42, "std_return": 69.00409923621429, "suite_name": "fixed_3", "timestamp_utc": "2026-07-29T22:31:52.064243+00:00", "train_latency_steps": 3}
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/eval/post_train/step_5000.json
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"per_latency": {
|
| 3 |
+
"gymnasium/latency_0": {
|
| 4 |
+
"latency": 0,
|
| 5 |
+
"num_episodes": 20,
|
| 6 |
+
"mean_reward": 87.4,
|
| 7 |
+
"mean_length": 87.4,
|
| 8 |
+
"std_reward": 69.0328907116021,
|
| 9 |
+
"std_length": 69.0328907116021,
|
| 10 |
+
"episode_rewards": [
|
| 11 |
+
72.0,
|
| 12 |
+
276.0,
|
| 13 |
+
158.0,
|
| 14 |
+
31.0,
|
| 15 |
+
59.0,
|
| 16 |
+
28.0,
|
| 17 |
+
31.0,
|
| 18 |
+
50.0,
|
| 19 |
+
31.0,
|
| 20 |
+
55.0,
|
| 21 |
+
228.0,
|
| 22 |
+
109.0,
|
| 23 |
+
59.0,
|
| 24 |
+
22.0,
|
| 25 |
+
90.0,
|
| 26 |
+
45.0,
|
| 27 |
+
33.0,
|
| 28 |
+
112.0,
|
| 29 |
+
174.0,
|
| 30 |
+
85.0
|
| 31 |
+
],
|
| 32 |
+
"episode_lengths": [
|
| 33 |
+
72,
|
| 34 |
+
276,
|
| 35 |
+
158,
|
| 36 |
+
31,
|
| 37 |
+
59,
|
| 38 |
+
28,
|
| 39 |
+
31,
|
| 40 |
+
50,
|
| 41 |
+
31,
|
| 42 |
+
55,
|
| 43 |
+
228,
|
| 44 |
+
109,
|
| 45 |
+
59,
|
| 46 |
+
22,
|
| 47 |
+
90,
|
| 48 |
+
45,
|
| 49 |
+
33,
|
| 50 |
+
112,
|
| 51 |
+
174,
|
| 52 |
+
85
|
| 53 |
+
],
|
| 54 |
+
"decoded_action_hist": {},
|
| 55 |
+
"fixed_episode_seeds": true,
|
| 56 |
+
"eval_seed": 42,
|
| 57 |
+
"episode_seeds": [
|
| 58 |
+
null,
|
| 59 |
+
null,
|
| 60 |
+
null,
|
| 61 |
+
null,
|
| 62 |
+
null,
|
| 63 |
+
null,
|
| 64 |
+
null,
|
| 65 |
+
null,
|
| 66 |
+
null,
|
| 67 |
+
null,
|
| 68 |
+
null,
|
| 69 |
+
null,
|
| 70 |
+
null,
|
| 71 |
+
null,
|
| 72 |
+
null,
|
| 73 |
+
null,
|
| 74 |
+
null,
|
| 75 |
+
null,
|
| 76 |
+
null,
|
| 77 |
+
null
|
| 78 |
+
],
|
| 79 |
+
"episode_indices": [
|
| 80 |
+
0,
|
| 81 |
+
1,
|
| 82 |
+
2,
|
| 83 |
+
3,
|
| 84 |
+
4,
|
| 85 |
+
5,
|
| 86 |
+
6,
|
| 87 |
+
7,
|
| 88 |
+
8,
|
| 89 |
+
9,
|
| 90 |
+
10,
|
| 91 |
+
11,
|
| 92 |
+
12,
|
| 93 |
+
13,
|
| 94 |
+
14,
|
| 95 |
+
15,
|
| 96 |
+
16,
|
| 97 |
+
17,
|
| 98 |
+
18,
|
| 99 |
+
19
|
| 100 |
+
]
|
| 101 |
+
},
|
| 102 |
+
"gymnasium/latency_2": {
|
| 103 |
+
"latency": 2,
|
| 104 |
+
"num_episodes": 20,
|
| 105 |
+
"mean_reward": 76.95,
|
| 106 |
+
"mean_length": 76.95,
|
| 107 |
+
"std_reward": 23.97389204947749,
|
| 108 |
+
"std_length": 23.97389204947749,
|
| 109 |
+
"episode_rewards": [
|
| 110 |
+
92.0,
|
| 111 |
+
36.0,
|
| 112 |
+
53.0,
|
| 113 |
+
86.0,
|
| 114 |
+
56.0,
|
| 115 |
+
98.0,
|
| 116 |
+
82.0,
|
| 117 |
+
83.0,
|
| 118 |
+
98.0,
|
| 119 |
+
46.0,
|
| 120 |
+
120.0,
|
| 121 |
+
83.0,
|
| 122 |
+
80.0,
|
| 123 |
+
100.0,
|
| 124 |
+
45.0,
|
| 125 |
+
112.0,
|
| 126 |
+
97.0,
|
| 127 |
+
66.0,
|
| 128 |
+
42.0,
|
| 129 |
+
64.0
|
| 130 |
+
],
|
| 131 |
+
"episode_lengths": [
|
| 132 |
+
92,
|
| 133 |
+
36,
|
| 134 |
+
53,
|
| 135 |
+
86,
|
| 136 |
+
56,
|
| 137 |
+
98,
|
| 138 |
+
82,
|
| 139 |
+
83,
|
| 140 |
+
98,
|
| 141 |
+
46,
|
| 142 |
+
120,
|
| 143 |
+
83,
|
| 144 |
+
80,
|
| 145 |
+
100,
|
| 146 |
+
45,
|
| 147 |
+
112,
|
| 148 |
+
97,
|
| 149 |
+
66,
|
| 150 |
+
42,
|
| 151 |
+
64
|
| 152 |
+
],
|
| 153 |
+
"decoded_action_hist": {},
|
| 154 |
+
"fixed_episode_seeds": true,
|
| 155 |
+
"eval_seed": 42,
|
| 156 |
+
"episode_seeds": [
|
| 157 |
+
null,
|
| 158 |
+
null,
|
| 159 |
+
null,
|
| 160 |
+
null,
|
| 161 |
+
null,
|
| 162 |
+
null,
|
| 163 |
+
null,
|
| 164 |
+
null,
|
| 165 |
+
null,
|
| 166 |
+
null,
|
| 167 |
+
null,
|
| 168 |
+
null,
|
| 169 |
+
null,
|
| 170 |
+
null,
|
| 171 |
+
null,
|
| 172 |
+
null,
|
| 173 |
+
null,
|
| 174 |
+
null,
|
| 175 |
+
null,
|
| 176 |
+
null
|
| 177 |
+
],
|
| 178 |
+
"episode_indices": [
|
| 179 |
+
0,
|
| 180 |
+
1,
|
| 181 |
+
2,
|
| 182 |
+
3,
|
| 183 |
+
4,
|
| 184 |
+
5,
|
| 185 |
+
6,
|
| 186 |
+
7,
|
| 187 |
+
8,
|
| 188 |
+
9,
|
| 189 |
+
10,
|
| 190 |
+
11,
|
| 191 |
+
12,
|
| 192 |
+
13,
|
| 193 |
+
14,
|
| 194 |
+
15,
|
| 195 |
+
16,
|
| 196 |
+
17,
|
| 197 |
+
18,
|
| 198 |
+
19
|
| 199 |
+
]
|
| 200 |
+
},
|
| 201 |
+
"gymnasium/latency_4": {
|
| 202 |
+
"latency": 4,
|
| 203 |
+
"num_episodes": 20,
|
| 204 |
+
"mean_reward": 27.45,
|
| 205 |
+
"mean_length": 27.45,
|
| 206 |
+
"std_reward": 4.271709259769443,
|
| 207 |
+
"std_length": 4.271709259769443,
|
| 208 |
+
"episode_rewards": [
|
| 209 |
+
37.0,
|
| 210 |
+
22.0,
|
| 211 |
+
29.0,
|
| 212 |
+
31.0,
|
| 213 |
+
22.0,
|
| 214 |
+
28.0,
|
| 215 |
+
25.0,
|
| 216 |
+
30.0,
|
| 217 |
+
25.0,
|
| 218 |
+
26.0,
|
| 219 |
+
30.0,
|
| 220 |
+
26.0,
|
| 221 |
+
33.0,
|
| 222 |
+
26.0,
|
| 223 |
+
22.0,
|
| 224 |
+
36.0,
|
| 225 |
+
27.0,
|
| 226 |
+
26.0,
|
| 227 |
+
22.0,
|
| 228 |
+
26.0
|
| 229 |
+
],
|
| 230 |
+
"episode_lengths": [
|
| 231 |
+
37,
|
| 232 |
+
22,
|
| 233 |
+
29,
|
| 234 |
+
31,
|
| 235 |
+
22,
|
| 236 |
+
28,
|
| 237 |
+
25,
|
| 238 |
+
30,
|
| 239 |
+
25,
|
| 240 |
+
26,
|
| 241 |
+
30,
|
| 242 |
+
26,
|
| 243 |
+
33,
|
| 244 |
+
26,
|
| 245 |
+
22,
|
| 246 |
+
36,
|
| 247 |
+
27,
|
| 248 |
+
26,
|
| 249 |
+
22,
|
| 250 |
+
26
|
| 251 |
+
],
|
| 252 |
+
"decoded_action_hist": {},
|
| 253 |
+
"fixed_episode_seeds": true,
|
| 254 |
+
"eval_seed": 42,
|
| 255 |
+
"episode_seeds": [
|
| 256 |
+
null,
|
| 257 |
+
null,
|
| 258 |
+
null,
|
| 259 |
+
null,
|
| 260 |
+
null,
|
| 261 |
+
null,
|
| 262 |
+
null,
|
| 263 |
+
null,
|
| 264 |
+
null,
|
| 265 |
+
null,
|
| 266 |
+
null,
|
| 267 |
+
null,
|
| 268 |
+
null,
|
| 269 |
+
null,
|
| 270 |
+
null,
|
| 271 |
+
null,
|
| 272 |
+
null,
|
| 273 |
+
null,
|
| 274 |
+
null,
|
| 275 |
+
null
|
| 276 |
+
],
|
| 277 |
+
"episode_indices": [
|
| 278 |
+
0,
|
| 279 |
+
1,
|
| 280 |
+
2,
|
| 281 |
+
3,
|
| 282 |
+
4,
|
| 283 |
+
5,
|
| 284 |
+
6,
|
| 285 |
+
7,
|
| 286 |
+
8,
|
| 287 |
+
9,
|
| 288 |
+
10,
|
| 289 |
+
11,
|
| 290 |
+
12,
|
| 291 |
+
13,
|
| 292 |
+
14,
|
| 293 |
+
15,
|
| 294 |
+
16,
|
| 295 |
+
17,
|
| 296 |
+
18,
|
| 297 |
+
19
|
| 298 |
+
]
|
| 299 |
+
}
|
| 300 |
+
},
|
| 301 |
+
"aggregate": {
|
| 302 |
+
"stage": "post_train",
|
| 303 |
+
"step": 5000,
|
| 304 |
+
"task": "gymnasium",
|
| 305 |
+
"model_alias": "openvla",
|
| 306 |
+
"fixed_episode_seeds": true,
|
| 307 |
+
"eval_seed": 42,
|
| 308 |
+
"total_episodes": 60,
|
| 309 |
+
"mean_reward": 63.93333333333333,
|
| 310 |
+
"mean_length": 63.93333333333333,
|
| 311 |
+
"std_reward": 49.69804377996739,
|
| 312 |
+
"std_length": 49.69804377996739,
|
| 313 |
+
"task_count": 1,
|
| 314 |
+
"macro_mean_reward": 63.93333333333334,
|
| 315 |
+
"macro_mean_length": 63.93333333333334,
|
| 316 |
+
"distributed_eval": false
|
| 317 |
+
}
|
| 318 |
+
}
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/episode_metrics.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"episode_id": 0, "episode_return": 72.0, "episode_return_env": 72.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 42, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 72, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 72}
|
| 2 |
+
{"episode_id": 1, "episode_return": 276.0, "episode_return_env": 276.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 43, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 276, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 276}
|
| 3 |
+
{"episode_id": 2, "episode_return": 158.0, "episode_return_env": 158.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 44, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 158, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 158}
|
| 4 |
+
{"episode_id": 3, "episode_return": 31.0, "episode_return_env": 31.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 45, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 31, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 31}
|
| 5 |
+
{"episode_id": 4, "episode_return": 59.0, "episode_return_env": 59.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 46, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 59, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 59}
|
| 6 |
+
{"episode_id": 5, "episode_return": 28.0, "episode_return_env": 28.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 47, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 28, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 28}
|
| 7 |
+
{"episode_id": 6, "episode_return": 31.0, "episode_return_env": 31.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 48, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 31, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 31}
|
| 8 |
+
{"episode_id": 7, "episode_return": 50.0, "episode_return_env": 50.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 49, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 50, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 50}
|
| 9 |
+
{"episode_id": 8, "episode_return": 31.0, "episode_return_env": 31.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 50, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 31, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 31}
|
| 10 |
+
{"episode_id": 9, "episode_return": 55.0, "episode_return_env": 55.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 51, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 55, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 55}
|
| 11 |
+
{"episode_id": 10, "episode_return": 228.0, "episode_return_env": 228.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 52, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 228, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 228}
|
| 12 |
+
{"episode_id": 11, "episode_return": 109.0, "episode_return_env": 109.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 53, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 109, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 109}
|
| 13 |
+
{"episode_id": 12, "episode_return": 59.0, "episode_return_env": 59.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 54, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 59, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 59}
|
| 14 |
+
{"episode_id": 13, "episode_return": 22.0, "episode_return_env": 22.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 55, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 22, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 22}
|
| 15 |
+
{"episode_id": 14, "episode_return": 90.0, "episode_return_env": 90.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 56, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 90, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 90}
|
| 16 |
+
{"episode_id": 15, "episode_return": 45.0, "episode_return_env": 45.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 57, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 45, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 45}
|
| 17 |
+
{"episode_id": 16, "episode_return": 33.0, "episode_return_env": 33.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 58, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 33, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 33}
|
| 18 |
+
{"episode_id": 17, "episode_return": 112.0, "episode_return_env": 112.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 59, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 112, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 112}
|
| 19 |
+
{"episode_id": 18, "episode_return": 174.0, "episode_return_env": 174.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 60, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 174, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 174}
|
| 20 |
+
{"episode_id": 19, "episode_return": 85.0, "episode_return_env": 85.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 61, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 85, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 85}
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/observation_attempts.jsonl
ADDED
|
File without changes
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/resolved_config.yaml
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
experiment:
|
| 2 |
+
name: starvla_gymnasium_train_eval
|
| 3 |
+
seed: 42
|
| 4 |
+
backend:
|
| 5 |
+
run_mode: eval
|
| 6 |
+
executor:
|
| 7 |
+
mode: simulated
|
| 8 |
+
simulated_inference_pool: false
|
| 9 |
+
simulated_worker_capacity: null
|
| 10 |
+
env:
|
| 11 |
+
name: gymnasium
|
| 12 |
+
task_name: inverted_pendulum_rgb_state
|
| 13 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 14 |
+
registration_imports:
|
| 15 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 16 |
+
env_fps: 25.0
|
| 17 |
+
obs_fps: 25.0
|
| 18 |
+
frame_stack: 1
|
| 19 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose exactly
|
| 20 |
+
one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 21 |
+
push_right_hard.'
|
| 22 |
+
action_labels:
|
| 23 |
+
- push_left_hard
|
| 24 |
+
- push_left_soft
|
| 25 |
+
- zero_force
|
| 26 |
+
- push_right_soft
|
| 27 |
+
- push_right_hard
|
| 28 |
+
action_values:
|
| 29 |
+
- 0
|
| 30 |
+
- 1
|
| 31 |
+
- 2
|
| 32 |
+
- 3
|
| 33 |
+
- 4
|
| 34 |
+
noop_action_id: 2
|
| 35 |
+
make_kwargs:
|
| 36 |
+
base_env_id: InvertedPendulum-v4
|
| 37 |
+
render_mode: rgb_array
|
| 38 |
+
force_values:
|
| 39 |
+
- -3.0
|
| 40 |
+
- -1.5
|
| 41 |
+
- 0.0
|
| 42 |
+
- 1.5
|
| 43 |
+
- 3.0
|
| 44 |
+
base_make_kwargs: {}
|
| 45 |
+
state_space:
|
| 46 |
+
labels:
|
| 47 |
+
- cart_position
|
| 48 |
+
- pole_angle
|
| 49 |
+
- cart_velocity
|
| 50 |
+
- pole_angular_velocity
|
| 51 |
+
action_order:
|
| 52 |
+
- push_left_hard
|
| 53 |
+
- push_left_soft
|
| 54 |
+
- zero_force
|
| 55 |
+
- push_right_soft
|
| 56 |
+
- push_right_hard
|
| 57 |
+
action_map:
|
| 58 |
+
push_left_hard: 0
|
| 59 |
+
push_left_soft: 1
|
| 60 |
+
zero_force: 2
|
| 61 |
+
push_right_soft: 3
|
| 62 |
+
push_right_hard: 4
|
| 63 |
+
noop_action: zero_force
|
| 64 |
+
obs_resize:
|
| 65 |
+
- 224
|
| 66 |
+
- 224
|
| 67 |
+
latency:
|
| 68 |
+
method: zero
|
| 69 |
+
add_latency_info: false
|
| 70 |
+
scheduler:
|
| 71 |
+
hold_policy: hold
|
| 72 |
+
ordering_policy: issue_order_fifo
|
| 73 |
+
policy:
|
| 74 |
+
type: starvla
|
| 75 |
+
checkpoint_path: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0
|
| 76 |
+
device: cuda
|
| 77 |
+
task_manifest_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/manifest.json
|
| 78 |
+
gymnasium_training_task_contract:
|
| 79 |
+
task_name: inverted_pendulum_rgb_state
|
| 80 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 81 |
+
registration_imports:
|
| 82 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 83 |
+
env_fps: 25.0
|
| 84 |
+
obs_fps: 25.0
|
| 85 |
+
frame_stack: 1
|
| 86 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose
|
| 87 |
+
exactly one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 88 |
+
push_right_hard.'
|
| 89 |
+
action_labels:
|
| 90 |
+
- push_left_hard
|
| 91 |
+
- push_left_soft
|
| 92 |
+
- zero_force
|
| 93 |
+
- push_right_soft
|
| 94 |
+
- push_right_hard
|
| 95 |
+
action_values:
|
| 96 |
+
- 0
|
| 97 |
+
- 1
|
| 98 |
+
- 2
|
| 99 |
+
- 3
|
| 100 |
+
- 4
|
| 101 |
+
noop_action_id: 2
|
| 102 |
+
make_kwargs:
|
| 103 |
+
base_env_id: InvertedPendulum-v4
|
| 104 |
+
render_mode: rgb_array
|
| 105 |
+
force_values:
|
| 106 |
+
- -3.0
|
| 107 |
+
- -1.5
|
| 108 |
+
- 0.0
|
| 109 |
+
- 1.5
|
| 110 |
+
- 3.0
|
| 111 |
+
base_make_kwargs: {}
|
| 112 |
+
state_space:
|
| 113 |
+
labels:
|
| 114 |
+
- cart_position
|
| 115 |
+
- pole_angle
|
| 116 |
+
- cart_velocity
|
| 117 |
+
- pole_angular_velocity
|
| 118 |
+
latency_prompt_map_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_prompt_map.json
|
| 119 |
+
latency_prompt_key: 0
|
| 120 |
+
action_prefix:
|
| 121 |
+
mode: none
|
| 122 |
+
evaluation:
|
| 123 |
+
eval_episodes: 20
|
| 124 |
+
eval_parallel_envs: 5
|
| 125 |
+
eval_max_steps: 3600
|
| 126 |
+
eval_max_decision_steps: 3600
|
| 127 |
+
eval_deterministic: true
|
| 128 |
+
eval_raw_reward: false
|
| 129 |
+
eval_latency_values: null
|
| 130 |
+
logging:
|
| 131 |
+
output_dir: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0
|
| 132 |
+
video:
|
| 133 |
+
enabled: false
|
| 134 |
+
num_bins: 1
|
| 135 |
+
save_step_records: false
|
| 136 |
+
save_action_records: false
|
| 137 |
+
save_latency_records: false
|
| 138 |
+
simulated_pipeline_profile: false
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/episode_metrics.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"episode_id": 0, "episode_return": 92.0, "episode_return_env": 92.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 42, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 92, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 92}
|
| 2 |
+
{"episode_id": 1, "episode_return": 36.0, "episode_return_env": 36.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 43, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 36, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 36}
|
| 3 |
+
{"episode_id": 2, "episode_return": 53.0, "episode_return_env": 53.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 44, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 53, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 53}
|
| 4 |
+
{"episode_id": 3, "episode_return": 86.0, "episode_return_env": 86.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 45, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 86, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 86}
|
| 5 |
+
{"episode_id": 4, "episode_return": 56.0, "episode_return_env": 56.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 46, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 56, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 56}
|
| 6 |
+
{"episode_id": 5, "episode_return": 98.0, "episode_return_env": 98.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 47, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 98, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 98}
|
| 7 |
+
{"episode_id": 6, "episode_return": 82.0, "episode_return_env": 82.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 48, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 82, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 82}
|
| 8 |
+
{"episode_id": 7, "episode_return": 83.0, "episode_return_env": 83.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 49, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 83, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 83}
|
| 9 |
+
{"episode_id": 8, "episode_return": 98.0, "episode_return_env": 98.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 50, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 98, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 98}
|
| 10 |
+
{"episode_id": 9, "episode_return": 46.0, "episode_return_env": 46.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 51, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 46, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 46}
|
| 11 |
+
{"episode_id": 10, "episode_return": 120.0, "episode_return_env": 120.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 52, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 120, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 120}
|
| 12 |
+
{"episode_id": 11, "episode_return": 83.0, "episode_return_env": 83.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 53, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 83, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 83}
|
| 13 |
+
{"episode_id": 12, "episode_return": 80.0, "episode_return_env": 80.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 54, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 80, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 80}
|
| 14 |
+
{"episode_id": 13, "episode_return": 100.0, "episode_return_env": 100.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 55, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 100, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 100}
|
| 15 |
+
{"episode_id": 14, "episode_return": 45.0, "episode_return_env": 45.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 56, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 45, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 45}
|
| 16 |
+
{"episode_id": 15, "episode_return": 112.0, "episode_return_env": 112.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 57, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 112, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 112}
|
| 17 |
+
{"episode_id": 16, "episode_return": 97.0, "episode_return_env": 97.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 58, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 97, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 97}
|
| 18 |
+
{"episode_id": 17, "episode_return": 66.0, "episode_return_env": 66.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 59, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 66, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 66}
|
| 19 |
+
{"episode_id": 18, "episode_return": 42.0, "episode_return_env": 42.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 60, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 42, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 42}
|
| 20 |
+
{"episode_id": 19, "episode_return": 64.0, "episode_return_env": 64.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 61, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 64, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 64}
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/observation_attempts.jsonl
ADDED
|
File without changes
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/resolved_config.yaml
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
experiment:
|
| 2 |
+
name: starvla_gymnasium_train_eval
|
| 3 |
+
seed: 42
|
| 4 |
+
backend:
|
| 5 |
+
run_mode: eval
|
| 6 |
+
executor:
|
| 7 |
+
mode: simulated
|
| 8 |
+
simulated_inference_pool: false
|
| 9 |
+
simulated_worker_capacity: null
|
| 10 |
+
env:
|
| 11 |
+
name: gymnasium
|
| 12 |
+
task_name: inverted_pendulum_rgb_state
|
| 13 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 14 |
+
registration_imports:
|
| 15 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 16 |
+
env_fps: 25.0
|
| 17 |
+
obs_fps: 25.0
|
| 18 |
+
frame_stack: 1
|
| 19 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose exactly
|
| 20 |
+
one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 21 |
+
push_right_hard.'
|
| 22 |
+
action_labels:
|
| 23 |
+
- push_left_hard
|
| 24 |
+
- push_left_soft
|
| 25 |
+
- zero_force
|
| 26 |
+
- push_right_soft
|
| 27 |
+
- push_right_hard
|
| 28 |
+
action_values:
|
| 29 |
+
- 0
|
| 30 |
+
- 1
|
| 31 |
+
- 2
|
| 32 |
+
- 3
|
| 33 |
+
- 4
|
| 34 |
+
noop_action_id: 2
|
| 35 |
+
make_kwargs:
|
| 36 |
+
base_env_id: InvertedPendulum-v4
|
| 37 |
+
render_mode: rgb_array
|
| 38 |
+
force_values:
|
| 39 |
+
- -3.0
|
| 40 |
+
- -1.5
|
| 41 |
+
- 0.0
|
| 42 |
+
- 1.5
|
| 43 |
+
- 3.0
|
| 44 |
+
base_make_kwargs: {}
|
| 45 |
+
state_space:
|
| 46 |
+
labels:
|
| 47 |
+
- cart_position
|
| 48 |
+
- pole_angle
|
| 49 |
+
- cart_velocity
|
| 50 |
+
- pole_angular_velocity
|
| 51 |
+
action_order:
|
| 52 |
+
- push_left_hard
|
| 53 |
+
- push_left_soft
|
| 54 |
+
- zero_force
|
| 55 |
+
- push_right_soft
|
| 56 |
+
- push_right_hard
|
| 57 |
+
action_map:
|
| 58 |
+
push_left_hard: 0
|
| 59 |
+
push_left_soft: 1
|
| 60 |
+
zero_force: 2
|
| 61 |
+
push_right_soft: 3
|
| 62 |
+
push_right_hard: 4
|
| 63 |
+
noop_action: zero_force
|
| 64 |
+
obs_resize:
|
| 65 |
+
- 224
|
| 66 |
+
- 224
|
| 67 |
+
latency:
|
| 68 |
+
method: fixed
|
| 69 |
+
add_latency_info: false
|
| 70 |
+
fixed_latency_ms: 80.0
|
| 71 |
+
scheduler:
|
| 72 |
+
hold_policy: hold
|
| 73 |
+
ordering_policy: issue_order_fifo
|
| 74 |
+
policy:
|
| 75 |
+
type: starvla
|
| 76 |
+
checkpoint_path: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2
|
| 77 |
+
device: cuda
|
| 78 |
+
task_manifest_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/manifest.json
|
| 79 |
+
gymnasium_training_task_contract:
|
| 80 |
+
task_name: inverted_pendulum_rgb_state
|
| 81 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 82 |
+
registration_imports:
|
| 83 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 84 |
+
env_fps: 25.0
|
| 85 |
+
obs_fps: 25.0
|
| 86 |
+
frame_stack: 1
|
| 87 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose
|
| 88 |
+
exactly one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 89 |
+
push_right_hard.'
|
| 90 |
+
action_labels:
|
| 91 |
+
- push_left_hard
|
| 92 |
+
- push_left_soft
|
| 93 |
+
- zero_force
|
| 94 |
+
- push_right_soft
|
| 95 |
+
- push_right_hard
|
| 96 |
+
action_values:
|
| 97 |
+
- 0
|
| 98 |
+
- 1
|
| 99 |
+
- 2
|
| 100 |
+
- 3
|
| 101 |
+
- 4
|
| 102 |
+
noop_action_id: 2
|
| 103 |
+
make_kwargs:
|
| 104 |
+
base_env_id: InvertedPendulum-v4
|
| 105 |
+
render_mode: rgb_array
|
| 106 |
+
force_values:
|
| 107 |
+
- -3.0
|
| 108 |
+
- -1.5
|
| 109 |
+
- 0.0
|
| 110 |
+
- 1.5
|
| 111 |
+
- 3.0
|
| 112 |
+
base_make_kwargs: {}
|
| 113 |
+
state_space:
|
| 114 |
+
labels:
|
| 115 |
+
- cart_position
|
| 116 |
+
- pole_angle
|
| 117 |
+
- cart_velocity
|
| 118 |
+
- pole_angular_velocity
|
| 119 |
+
latency_prompt_map_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_prompt_map.json
|
| 120 |
+
latency_prompt_key: 2
|
| 121 |
+
action_prefix:
|
| 122 |
+
mode: none
|
| 123 |
+
evaluation:
|
| 124 |
+
eval_episodes: 20
|
| 125 |
+
eval_parallel_envs: 5
|
| 126 |
+
eval_max_steps: 3600
|
| 127 |
+
eval_max_decision_steps: 3600
|
| 128 |
+
eval_deterministic: true
|
| 129 |
+
eval_raw_reward: false
|
| 130 |
+
eval_latency_values: null
|
| 131 |
+
logging:
|
| 132 |
+
output_dir: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2
|
| 133 |
+
video:
|
| 134 |
+
enabled: false
|
| 135 |
+
num_bins: 1
|
| 136 |
+
save_step_records: false
|
| 137 |
+
save_action_records: false
|
| 138 |
+
save_latency_records: false
|
| 139 |
+
simulated_pipeline_profile: false
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4/episode_metrics.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"episode_id": 0, "episode_return": 37.0, "episode_return_env": 37.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 42, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 37, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 37}
|
| 2 |
+
{"episode_id": 1, "episode_return": 22.0, "episode_return_env": 22.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 43, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 22, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 22}
|
| 3 |
+
{"episode_id": 2, "episode_return": 29.0, "episode_return_env": 29.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 44, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 29, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 29}
|
| 4 |
+
{"episode_id": 3, "episode_return": 31.0, "episode_return_env": 31.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 45, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 31, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 31}
|
| 5 |
+
{"episode_id": 4, "episode_return": 22.0, "episode_return_env": 22.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 46, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 22, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 22}
|
| 6 |
+
{"episode_id": 5, "episode_return": 28.0, "episode_return_env": 28.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 47, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 28, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 28}
|
| 7 |
+
{"episode_id": 6, "episode_return": 25.0, "episode_return_env": 25.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 48, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 25, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 25}
|
| 8 |
+
{"episode_id": 7, "episode_return": 30.0, "episode_return_env": 30.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 49, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 30, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 30}
|
| 9 |
+
{"episode_id": 8, "episode_return": 25.0, "episode_return_env": 25.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 50, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 25, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 25}
|
| 10 |
+
{"episode_id": 9, "episode_return": 26.0, "episode_return_env": 26.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 51, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 26, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 26}
|
| 11 |
+
{"episode_id": 10, "episode_return": 30.0, "episode_return_env": 30.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 52, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 30, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 30}
|
| 12 |
+
{"episode_id": 11, "episode_return": 26.0, "episode_return_env": 26.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 53, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 26, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 26}
|
| 13 |
+
{"episode_id": 12, "episode_return": 33.0, "episode_return_env": 33.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 54, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 33, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 33}
|
| 14 |
+
{"episode_id": 13, "episode_return": 26.0, "episode_return_env": 26.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 55, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 26, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 26}
|
| 15 |
+
{"episode_id": 14, "episode_return": 22.0, "episode_return_env": 22.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 56, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 22, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 22}
|
| 16 |
+
{"episode_id": 15, "episode_return": 36.0, "episode_return_env": 36.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 57, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 36, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 36}
|
| 17 |
+
{"episode_id": 16, "episode_return": 27.0, "episode_return_env": 27.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 58, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 27, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 27}
|
| 18 |
+
{"episode_id": 17, "episode_return": 26.0, "episode_return_env": 26.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 59, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 26, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 26}
|
| 19 |
+
{"episode_id": 18, "episode_return": 22.0, "episode_return_env": 22.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 60, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 22, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 22}
|
| 20 |
+
{"episode_id": 19, "episode_return": 26.0, "episode_return_env": 26.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 61, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 26, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 26}
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4/observation_attempts.jsonl
ADDED
|
File without changes
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4/resolved_config.yaml
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
experiment:
|
| 2 |
+
name: starvla_gymnasium_train_eval
|
| 3 |
+
seed: 42
|
| 4 |
+
backend:
|
| 5 |
+
run_mode: eval
|
| 6 |
+
executor:
|
| 7 |
+
mode: simulated
|
| 8 |
+
simulated_inference_pool: false
|
| 9 |
+
simulated_worker_capacity: null
|
| 10 |
+
env:
|
| 11 |
+
name: gymnasium
|
| 12 |
+
task_name: inverted_pendulum_rgb_state
|
| 13 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 14 |
+
registration_imports:
|
| 15 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 16 |
+
env_fps: 25.0
|
| 17 |
+
obs_fps: 25.0
|
| 18 |
+
frame_stack: 1
|
| 19 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose exactly
|
| 20 |
+
one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 21 |
+
push_right_hard.'
|
| 22 |
+
action_labels:
|
| 23 |
+
- push_left_hard
|
| 24 |
+
- push_left_soft
|
| 25 |
+
- zero_force
|
| 26 |
+
- push_right_soft
|
| 27 |
+
- push_right_hard
|
| 28 |
+
action_values:
|
| 29 |
+
- 0
|
| 30 |
+
- 1
|
| 31 |
+
- 2
|
| 32 |
+
- 3
|
| 33 |
+
- 4
|
| 34 |
+
noop_action_id: 2
|
| 35 |
+
make_kwargs:
|
| 36 |
+
base_env_id: InvertedPendulum-v4
|
| 37 |
+
render_mode: rgb_array
|
| 38 |
+
force_values:
|
| 39 |
+
- -3.0
|
| 40 |
+
- -1.5
|
| 41 |
+
- 0.0
|
| 42 |
+
- 1.5
|
| 43 |
+
- 3.0
|
| 44 |
+
base_make_kwargs: {}
|
| 45 |
+
state_space:
|
| 46 |
+
labels:
|
| 47 |
+
- cart_position
|
| 48 |
+
- pole_angle
|
| 49 |
+
- cart_velocity
|
| 50 |
+
- pole_angular_velocity
|
| 51 |
+
action_order:
|
| 52 |
+
- push_left_hard
|
| 53 |
+
- push_left_soft
|
| 54 |
+
- zero_force
|
| 55 |
+
- push_right_soft
|
| 56 |
+
- push_right_hard
|
| 57 |
+
action_map:
|
| 58 |
+
push_left_hard: 0
|
| 59 |
+
push_left_soft: 1
|
| 60 |
+
zero_force: 2
|
| 61 |
+
push_right_soft: 3
|
| 62 |
+
push_right_hard: 4
|
| 63 |
+
noop_action: zero_force
|
| 64 |
+
obs_resize:
|
| 65 |
+
- 224
|
| 66 |
+
- 224
|
| 67 |
+
latency:
|
| 68 |
+
method: fixed
|
| 69 |
+
add_latency_info: false
|
| 70 |
+
fixed_latency_ms: 160.0
|
| 71 |
+
scheduler:
|
| 72 |
+
hold_policy: hold
|
| 73 |
+
ordering_policy: issue_order_fifo
|
| 74 |
+
policy:
|
| 75 |
+
type: starvla
|
| 76 |
+
checkpoint_path: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4
|
| 77 |
+
device: cuda
|
| 78 |
+
task_manifest_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/manifest.json
|
| 79 |
+
gymnasium_training_task_contract:
|
| 80 |
+
task_name: inverted_pendulum_rgb_state
|
| 81 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 82 |
+
registration_imports:
|
| 83 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 84 |
+
env_fps: 25.0
|
| 85 |
+
obs_fps: 25.0
|
| 86 |
+
frame_stack: 1
|
| 87 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose
|
| 88 |
+
exactly one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 89 |
+
push_right_hard.'
|
| 90 |
+
action_labels:
|
| 91 |
+
- push_left_hard
|
| 92 |
+
- push_left_soft
|
| 93 |
+
- zero_force
|
| 94 |
+
- push_right_soft
|
| 95 |
+
- push_right_hard
|
| 96 |
+
action_values:
|
| 97 |
+
- 0
|
| 98 |
+
- 1
|
| 99 |
+
- 2
|
| 100 |
+
- 3
|
| 101 |
+
- 4
|
| 102 |
+
noop_action_id: 2
|
| 103 |
+
make_kwargs:
|
| 104 |
+
base_env_id: InvertedPendulum-v4
|
| 105 |
+
render_mode: rgb_array
|
| 106 |
+
force_values:
|
| 107 |
+
- -3.0
|
| 108 |
+
- -1.5
|
| 109 |
+
- 0.0
|
| 110 |
+
- 1.5
|
| 111 |
+
- 3.0
|
| 112 |
+
base_make_kwargs: {}
|
| 113 |
+
state_space:
|
| 114 |
+
labels:
|
| 115 |
+
- cart_position
|
| 116 |
+
- pole_angle
|
| 117 |
+
- cart_velocity
|
| 118 |
+
- pole_angular_velocity
|
| 119 |
+
latency_prompt_map_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_prompt_map.json
|
| 120 |
+
latency_prompt_key: 4
|
| 121 |
+
action_prefix:
|
| 122 |
+
mode: none
|
| 123 |
+
evaluation:
|
| 124 |
+
eval_episodes: 20
|
| 125 |
+
eval_parallel_envs: 5
|
| 126 |
+
eval_max_steps: 3600
|
| 127 |
+
eval_max_decision_steps: 3600
|
| 128 |
+
eval_deterministic: true
|
| 129 |
+
eval_raw_reward: false
|
| 130 |
+
eval_latency_values: null
|
| 131 |
+
logging:
|
| 132 |
+
output_dir: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_4
|
| 133 |
+
video:
|
| 134 |
+
enabled: false
|
| 135 |
+
num_bins: 1
|
| 136 |
+
save_step_records: false
|
| 137 |
+
save_action_records: false
|
| 138 |
+
save_latency_records: false
|
| 139 |
+
simulated_pipeline_profile: false
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/eval/post_train/step_5000.json
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"per_latency": {
|
| 3 |
+
"gymnasium/latency_0": {
|
| 4 |
+
"latency": 0,
|
| 5 |
+
"num_episodes": 20,
|
| 6 |
+
"mean_reward": 539.85,
|
| 7 |
+
"mean_length": 539.85,
|
| 8 |
+
"std_reward": 388.3377750103639,
|
| 9 |
+
"std_length": 388.3377750103639,
|
| 10 |
+
"episode_rewards": [
|
| 11 |
+
94.0,
|
| 12 |
+
1000.0,
|
| 13 |
+
969.0,
|
| 14 |
+
1000.0,
|
| 15 |
+
1000.0,
|
| 16 |
+
344.0,
|
| 17 |
+
1000.0,
|
| 18 |
+
225.0,
|
| 19 |
+
138.0,
|
| 20 |
+
954.0,
|
| 21 |
+
98.0,
|
| 22 |
+
572.0,
|
| 23 |
+
1000.0,
|
| 24 |
+
90.0,
|
| 25 |
+
487.0,
|
| 26 |
+
311.0,
|
| 27 |
+
317.0,
|
| 28 |
+
92.0,
|
| 29 |
+
106.0,
|
| 30 |
+
1000.0
|
| 31 |
+
],
|
| 32 |
+
"episode_lengths": [
|
| 33 |
+
94,
|
| 34 |
+
1000,
|
| 35 |
+
969,
|
| 36 |
+
1000,
|
| 37 |
+
1000,
|
| 38 |
+
344,
|
| 39 |
+
1000,
|
| 40 |
+
225,
|
| 41 |
+
138,
|
| 42 |
+
954,
|
| 43 |
+
98,
|
| 44 |
+
572,
|
| 45 |
+
1000,
|
| 46 |
+
90,
|
| 47 |
+
487,
|
| 48 |
+
311,
|
| 49 |
+
317,
|
| 50 |
+
92,
|
| 51 |
+
106,
|
| 52 |
+
1000
|
| 53 |
+
],
|
| 54 |
+
"decoded_action_hist": {},
|
| 55 |
+
"fixed_episode_seeds": true,
|
| 56 |
+
"eval_seed": 42,
|
| 57 |
+
"episode_seeds": [
|
| 58 |
+
null,
|
| 59 |
+
null,
|
| 60 |
+
null,
|
| 61 |
+
null,
|
| 62 |
+
null,
|
| 63 |
+
null,
|
| 64 |
+
null,
|
| 65 |
+
null,
|
| 66 |
+
null,
|
| 67 |
+
null,
|
| 68 |
+
null,
|
| 69 |
+
null,
|
| 70 |
+
null,
|
| 71 |
+
null,
|
| 72 |
+
null,
|
| 73 |
+
null,
|
| 74 |
+
null,
|
| 75 |
+
null,
|
| 76 |
+
null,
|
| 77 |
+
null
|
| 78 |
+
],
|
| 79 |
+
"episode_indices": [
|
| 80 |
+
0,
|
| 81 |
+
1,
|
| 82 |
+
2,
|
| 83 |
+
3,
|
| 84 |
+
4,
|
| 85 |
+
5,
|
| 86 |
+
6,
|
| 87 |
+
7,
|
| 88 |
+
8,
|
| 89 |
+
9,
|
| 90 |
+
10,
|
| 91 |
+
11,
|
| 92 |
+
12,
|
| 93 |
+
13,
|
| 94 |
+
14,
|
| 95 |
+
15,
|
| 96 |
+
16,
|
| 97 |
+
17,
|
| 98 |
+
18,
|
| 99 |
+
19
|
| 100 |
+
]
|
| 101 |
+
},
|
| 102 |
+
"gymnasium/latency_2": {
|
| 103 |
+
"latency": 2,
|
| 104 |
+
"num_episodes": 20,
|
| 105 |
+
"mean_reward": 80.1,
|
| 106 |
+
"mean_length": 80.1,
|
| 107 |
+
"std_reward": 31.30319472513948,
|
| 108 |
+
"std_length": 31.30319472513948,
|
| 109 |
+
"episode_rewards": [
|
| 110 |
+
91.0,
|
| 111 |
+
41.0,
|
| 112 |
+
48.0,
|
| 113 |
+
86.0,
|
| 114 |
+
42.0,
|
| 115 |
+
98.0,
|
| 116 |
+
93.0,
|
| 117 |
+
152.0,
|
| 118 |
+
98.0,
|
| 119 |
+
46.0,
|
| 120 |
+
114.0,
|
| 121 |
+
83.0,
|
| 122 |
+
52.0,
|
| 123 |
+
101.0,
|
| 124 |
+
26.0,
|
| 125 |
+
112.0,
|
| 126 |
+
97.0,
|
| 127 |
+
94.0,
|
| 128 |
+
42.0,
|
| 129 |
+
86.0
|
| 130 |
+
],
|
| 131 |
+
"episode_lengths": [
|
| 132 |
+
91,
|
| 133 |
+
41,
|
| 134 |
+
48,
|
| 135 |
+
86,
|
| 136 |
+
42,
|
| 137 |
+
98,
|
| 138 |
+
93,
|
| 139 |
+
152,
|
| 140 |
+
98,
|
| 141 |
+
46,
|
| 142 |
+
114,
|
| 143 |
+
83,
|
| 144 |
+
52,
|
| 145 |
+
101,
|
| 146 |
+
26,
|
| 147 |
+
112,
|
| 148 |
+
97,
|
| 149 |
+
94,
|
| 150 |
+
42,
|
| 151 |
+
86
|
| 152 |
+
],
|
| 153 |
+
"decoded_action_hist": {},
|
| 154 |
+
"fixed_episode_seeds": true,
|
| 155 |
+
"eval_seed": 42,
|
| 156 |
+
"episode_seeds": [
|
| 157 |
+
null,
|
| 158 |
+
null,
|
| 159 |
+
null,
|
| 160 |
+
null,
|
| 161 |
+
null,
|
| 162 |
+
null,
|
| 163 |
+
null,
|
| 164 |
+
null,
|
| 165 |
+
null,
|
| 166 |
+
null,
|
| 167 |
+
null,
|
| 168 |
+
null,
|
| 169 |
+
null,
|
| 170 |
+
null,
|
| 171 |
+
null,
|
| 172 |
+
null,
|
| 173 |
+
null,
|
| 174 |
+
null,
|
| 175 |
+
null,
|
| 176 |
+
null
|
| 177 |
+
],
|
| 178 |
+
"episode_indices": [
|
| 179 |
+
0,
|
| 180 |
+
1,
|
| 181 |
+
2,
|
| 182 |
+
3,
|
| 183 |
+
4,
|
| 184 |
+
5,
|
| 185 |
+
6,
|
| 186 |
+
7,
|
| 187 |
+
8,
|
| 188 |
+
9,
|
| 189 |
+
10,
|
| 190 |
+
11,
|
| 191 |
+
12,
|
| 192 |
+
13,
|
| 193 |
+
14,
|
| 194 |
+
15,
|
| 195 |
+
16,
|
| 196 |
+
17,
|
| 197 |
+
18,
|
| 198 |
+
19
|
| 199 |
+
]
|
| 200 |
+
},
|
| 201 |
+
"gymnasium/latency_4": {
|
| 202 |
+
"latency": 4,
|
| 203 |
+
"num_episodes": 20,
|
| 204 |
+
"mean_reward": 27.65,
|
| 205 |
+
"mean_length": 27.65,
|
| 206 |
+
"std_reward": 4.735768153108849,
|
| 207 |
+
"std_length": 4.735768153108849,
|
| 208 |
+
"episode_rewards": [
|
| 209 |
+
37.0,
|
| 210 |
+
22.0,
|
| 211 |
+
29.0,
|
| 212 |
+
31.0,
|
| 213 |
+
22.0,
|
| 214 |
+
28.0,
|
| 215 |
+
25.0,
|
| 216 |
+
30.0,
|
| 217 |
+
25.0,
|
| 218 |
+
26.0,
|
| 219 |
+
30.0,
|
| 220 |
+
26.0,
|
| 221 |
+
33.0,
|
| 222 |
+
26.0,
|
| 223 |
+
22.0,
|
| 224 |
+
40.0,
|
| 225 |
+
27.0,
|
| 226 |
+
26.0,
|
| 227 |
+
22.0,
|
| 228 |
+
26.0
|
| 229 |
+
],
|
| 230 |
+
"episode_lengths": [
|
| 231 |
+
37,
|
| 232 |
+
22,
|
| 233 |
+
29,
|
| 234 |
+
31,
|
| 235 |
+
22,
|
| 236 |
+
28,
|
| 237 |
+
25,
|
| 238 |
+
30,
|
| 239 |
+
25,
|
| 240 |
+
26,
|
| 241 |
+
30,
|
| 242 |
+
26,
|
| 243 |
+
33,
|
| 244 |
+
26,
|
| 245 |
+
22,
|
| 246 |
+
40,
|
| 247 |
+
27,
|
| 248 |
+
26,
|
| 249 |
+
22,
|
| 250 |
+
26
|
| 251 |
+
],
|
| 252 |
+
"decoded_action_hist": {},
|
| 253 |
+
"fixed_episode_seeds": true,
|
| 254 |
+
"eval_seed": 42,
|
| 255 |
+
"episode_seeds": [
|
| 256 |
+
null,
|
| 257 |
+
null,
|
| 258 |
+
null,
|
| 259 |
+
null,
|
| 260 |
+
null,
|
| 261 |
+
null,
|
| 262 |
+
null,
|
| 263 |
+
null,
|
| 264 |
+
null,
|
| 265 |
+
null,
|
| 266 |
+
null,
|
| 267 |
+
null,
|
| 268 |
+
null,
|
| 269 |
+
null,
|
| 270 |
+
null,
|
| 271 |
+
null,
|
| 272 |
+
null,
|
| 273 |
+
null,
|
| 274 |
+
null,
|
| 275 |
+
null
|
| 276 |
+
],
|
| 277 |
+
"episode_indices": [
|
| 278 |
+
0,
|
| 279 |
+
1,
|
| 280 |
+
2,
|
| 281 |
+
3,
|
| 282 |
+
4,
|
| 283 |
+
5,
|
| 284 |
+
6,
|
| 285 |
+
7,
|
| 286 |
+
8,
|
| 287 |
+
9,
|
| 288 |
+
10,
|
| 289 |
+
11,
|
| 290 |
+
12,
|
| 291 |
+
13,
|
| 292 |
+
14,
|
| 293 |
+
15,
|
| 294 |
+
16,
|
| 295 |
+
17,
|
| 296 |
+
18,
|
| 297 |
+
19
|
| 298 |
+
]
|
| 299 |
+
}
|
| 300 |
+
},
|
| 301 |
+
"aggregate": {
|
| 302 |
+
"stage": "post_train",
|
| 303 |
+
"step": 5000,
|
| 304 |
+
"task": "gymnasium",
|
| 305 |
+
"model_alias": "openvla",
|
| 306 |
+
"fixed_episode_seeds": true,
|
| 307 |
+
"eval_seed": 42,
|
| 308 |
+
"total_episodes": 60,
|
| 309 |
+
"mean_reward": 215.86666666666667,
|
| 310 |
+
"mean_length": 215.86666666666667,
|
| 311 |
+
"std_reward": 321.7824558438338,
|
| 312 |
+
"std_length": 321.7824558438338,
|
| 313 |
+
"task_count": 1,
|
| 314 |
+
"macro_mean_reward": 215.86666666666667,
|
| 315 |
+
"macro_mean_length": 215.86666666666667,
|
| 316 |
+
"distributed_eval": false
|
| 317 |
+
}
|
| 318 |
+
}
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/episode_metrics.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"episode_id": 0, "episode_return": 94.0, "episode_return_env": 94.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 42, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 94, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 94}
|
| 2 |
+
{"episode_id": 1, "episode_return": 1000.0, "episode_return_env": 1000.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 43, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 1000, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 1000}
|
| 3 |
+
{"episode_id": 2, "episode_return": 969.0, "episode_return_env": 969.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 44, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 969, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 969}
|
| 4 |
+
{"episode_id": 3, "episode_return": 1000.0, "episode_return_env": 1000.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 45, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 1000, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 1000}
|
| 5 |
+
{"episode_id": 4, "episode_return": 1000.0, "episode_return_env": 1000.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 46, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 1000, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 1000}
|
| 6 |
+
{"episode_id": 5, "episode_return": 344.0, "episode_return_env": 344.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 47, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 344, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 344}
|
| 7 |
+
{"episode_id": 6, "episode_return": 1000.0, "episode_return_env": 1000.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 48, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 1000, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 1000}
|
| 8 |
+
{"episode_id": 7, "episode_return": 225.0, "episode_return_env": 225.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 49, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 225, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 225}
|
| 9 |
+
{"episode_id": 8, "episode_return": 138.0, "episode_return_env": 138.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 50, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 138, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 138}
|
| 10 |
+
{"episode_id": 9, "episode_return": 954.0, "episode_return_env": 954.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 51, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 954, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 954}
|
| 11 |
+
{"episode_id": 10, "episode_return": 98.0, "episode_return_env": 98.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 52, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 98, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 98}
|
| 12 |
+
{"episode_id": 11, "episode_return": 572.0, "episode_return_env": 572.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 53, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 572, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 572}
|
| 13 |
+
{"episode_id": 12, "episode_return": 1000.0, "episode_return_env": 1000.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 54, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 1000, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 1000}
|
| 14 |
+
{"episode_id": 13, "episode_return": 90.0, "episode_return_env": 90.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 55, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 90, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 90}
|
| 15 |
+
{"episode_id": 14, "episode_return": 487.0, "episode_return_env": 487.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 56, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 487, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 487}
|
| 16 |
+
{"episode_id": 15, "episode_return": 311.0, "episode_return_env": 311.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 57, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 311, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 311}
|
| 17 |
+
{"episode_id": 16, "episode_return": 317.0, "episode_return_env": 317.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 58, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 317, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 317}
|
| 18 |
+
{"episode_id": 17, "episode_return": 92.0, "episode_return_env": 92.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 59, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 92, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 92}
|
| 19 |
+
{"episode_id": 18, "episode_return": 106.0, "episode_return_env": 106.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 60, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 106, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 106}
|
| 20 |
+
{"episode_id": 19, "episode_return": 1000.0, "episode_return_env": 1000.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 61, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 1000, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 1000}
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/observation_attempts.jsonl
ADDED
|
File without changes
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/resolved_config.yaml
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
experiment:
|
| 2 |
+
name: starvla_gymnasium_train_eval
|
| 3 |
+
seed: 42
|
| 4 |
+
backend:
|
| 5 |
+
run_mode: eval
|
| 6 |
+
executor:
|
| 7 |
+
mode: simulated
|
| 8 |
+
simulated_inference_pool: false
|
| 9 |
+
simulated_worker_capacity: null
|
| 10 |
+
env:
|
| 11 |
+
name: gymnasium
|
| 12 |
+
task_name: inverted_pendulum_rgb_state
|
| 13 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 14 |
+
registration_imports:
|
| 15 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 16 |
+
env_fps: 25.0
|
| 17 |
+
obs_fps: 25.0
|
| 18 |
+
frame_stack: 1
|
| 19 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose exactly
|
| 20 |
+
one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 21 |
+
push_right_hard.'
|
| 22 |
+
action_labels:
|
| 23 |
+
- push_left_hard
|
| 24 |
+
- push_left_soft
|
| 25 |
+
- zero_force
|
| 26 |
+
- push_right_soft
|
| 27 |
+
- push_right_hard
|
| 28 |
+
action_values:
|
| 29 |
+
- 0
|
| 30 |
+
- 1
|
| 31 |
+
- 2
|
| 32 |
+
- 3
|
| 33 |
+
- 4
|
| 34 |
+
noop_action_id: 2
|
| 35 |
+
make_kwargs:
|
| 36 |
+
base_env_id: InvertedPendulum-v4
|
| 37 |
+
render_mode: rgb_array
|
| 38 |
+
force_values:
|
| 39 |
+
- -3.0
|
| 40 |
+
- -1.5
|
| 41 |
+
- 0.0
|
| 42 |
+
- 1.5
|
| 43 |
+
- 3.0
|
| 44 |
+
base_make_kwargs: {}
|
| 45 |
+
state_space:
|
| 46 |
+
labels:
|
| 47 |
+
- cart_position
|
| 48 |
+
- pole_angle
|
| 49 |
+
- cart_velocity
|
| 50 |
+
- pole_angular_velocity
|
| 51 |
+
action_order:
|
| 52 |
+
- push_left_hard
|
| 53 |
+
- push_left_soft
|
| 54 |
+
- zero_force
|
| 55 |
+
- push_right_soft
|
| 56 |
+
- push_right_hard
|
| 57 |
+
action_map:
|
| 58 |
+
push_left_hard: 0
|
| 59 |
+
push_left_soft: 1
|
| 60 |
+
zero_force: 2
|
| 61 |
+
push_right_soft: 3
|
| 62 |
+
push_right_hard: 4
|
| 63 |
+
noop_action: zero_force
|
| 64 |
+
obs_resize:
|
| 65 |
+
- 224
|
| 66 |
+
- 224
|
| 67 |
+
latency:
|
| 68 |
+
method: zero
|
| 69 |
+
add_latency_info: false
|
| 70 |
+
scheduler:
|
| 71 |
+
hold_policy: hold
|
| 72 |
+
ordering_policy: issue_order_fifo
|
| 73 |
+
policy:
|
| 74 |
+
type: starvla
|
| 75 |
+
checkpoint_path: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0
|
| 76 |
+
device: cuda
|
| 77 |
+
task_manifest_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/manifest.json
|
| 78 |
+
gymnasium_training_task_contract:
|
| 79 |
+
task_name: inverted_pendulum_rgb_state
|
| 80 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 81 |
+
registration_imports:
|
| 82 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 83 |
+
env_fps: 25.0
|
| 84 |
+
obs_fps: 25.0
|
| 85 |
+
frame_stack: 1
|
| 86 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose
|
| 87 |
+
exactly one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 88 |
+
push_right_hard.'
|
| 89 |
+
action_labels:
|
| 90 |
+
- push_left_hard
|
| 91 |
+
- push_left_soft
|
| 92 |
+
- zero_force
|
| 93 |
+
- push_right_soft
|
| 94 |
+
- push_right_hard
|
| 95 |
+
action_values:
|
| 96 |
+
- 0
|
| 97 |
+
- 1
|
| 98 |
+
- 2
|
| 99 |
+
- 3
|
| 100 |
+
- 4
|
| 101 |
+
noop_action_id: 2
|
| 102 |
+
make_kwargs:
|
| 103 |
+
base_env_id: InvertedPendulum-v4
|
| 104 |
+
render_mode: rgb_array
|
| 105 |
+
force_values:
|
| 106 |
+
- -3.0
|
| 107 |
+
- -1.5
|
| 108 |
+
- 0.0
|
| 109 |
+
- 1.5
|
| 110 |
+
- 3.0
|
| 111 |
+
base_make_kwargs: {}
|
| 112 |
+
state_space:
|
| 113 |
+
labels:
|
| 114 |
+
- cart_position
|
| 115 |
+
- pole_angle
|
| 116 |
+
- cart_velocity
|
| 117 |
+
- pole_angular_velocity
|
| 118 |
+
latency_prompt_map_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_prompt_map.json
|
| 119 |
+
latency_prompt_key: 0
|
| 120 |
+
action_prefix:
|
| 121 |
+
mode: none
|
| 122 |
+
evaluation:
|
| 123 |
+
eval_episodes: 20
|
| 124 |
+
eval_parallel_envs: 5
|
| 125 |
+
eval_max_steps: 3600
|
| 126 |
+
eval_max_decision_steps: 3600
|
| 127 |
+
eval_deterministic: true
|
| 128 |
+
eval_raw_reward: false
|
| 129 |
+
eval_latency_values: null
|
| 130 |
+
logging:
|
| 131 |
+
output_dir: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_0
|
| 132 |
+
video:
|
| 133 |
+
enabled: false
|
| 134 |
+
num_bins: 1
|
| 135 |
+
save_step_records: false
|
| 136 |
+
save_action_records: false
|
| 137 |
+
save_latency_records: false
|
| 138 |
+
simulated_pipeline_profile: false
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/episode_metrics.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"episode_id": 0, "episode_return": 91.0, "episode_return_env": 91.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 42, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 91, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 91}
|
| 2 |
+
{"episode_id": 1, "episode_return": 41.0, "episode_return_env": 41.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 43, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 41, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 41}
|
| 3 |
+
{"episode_id": 2, "episode_return": 48.0, "episode_return_env": 48.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 44, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 48, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 48}
|
| 4 |
+
{"episode_id": 3, "episode_return": 86.0, "episode_return_env": 86.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 45, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 86, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 86}
|
| 5 |
+
{"episode_id": 4, "episode_return": 42.0, "episode_return_env": 42.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 46, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 42, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 42}
|
| 6 |
+
{"episode_id": 5, "episode_return": 98.0, "episode_return_env": 98.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 47, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 98, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 98}
|
| 7 |
+
{"episode_id": 6, "episode_return": 93.0, "episode_return_env": 93.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 48, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 93, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 93}
|
| 8 |
+
{"episode_id": 7, "episode_return": 152.0, "episode_return_env": 152.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 49, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 152, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 152}
|
| 9 |
+
{"episode_id": 8, "episode_return": 98.0, "episode_return_env": 98.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 50, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 98, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 98}
|
| 10 |
+
{"episode_id": 9, "episode_return": 46.0, "episode_return_env": 46.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 51, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 46, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 46}
|
| 11 |
+
{"episode_id": 10, "episode_return": 114.0, "episode_return_env": 114.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 52, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 114, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 114}
|
| 12 |
+
{"episode_id": 11, "episode_return": 83.0, "episode_return_env": 83.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 53, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 83, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 83}
|
| 13 |
+
{"episode_id": 12, "episode_return": 52.0, "episode_return_env": 52.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 54, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 52, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 52}
|
| 14 |
+
{"episode_id": 13, "episode_return": 101.0, "episode_return_env": 101.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 55, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 101, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 101}
|
| 15 |
+
{"episode_id": 14, "episode_return": 26.0, "episode_return_env": 26.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 56, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 26, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 26}
|
| 16 |
+
{"episode_id": 15, "episode_return": 112.0, "episode_return_env": 112.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 57, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 112, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 112}
|
| 17 |
+
{"episode_id": 16, "episode_return": 97.0, "episode_return_env": 97.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 58, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 97, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 97}
|
| 18 |
+
{"episode_id": 17, "episode_return": 94.0, "episode_return_env": 94.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 59, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 94, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 94}
|
| 19 |
+
{"episode_id": 18, "episode_return": 42.0, "episode_return_env": 42.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 60, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 42, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 42}
|
| 20 |
+
{"episode_id": 19, "episode_return": 86.0, "episode_return_env": 86.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 61, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 86, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 86}
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/observation_attempts.jsonl
ADDED
|
File without changes
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/resolved_config.yaml
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
experiment:
|
| 2 |
+
name: starvla_gymnasium_train_eval
|
| 3 |
+
seed: 42
|
| 4 |
+
backend:
|
| 5 |
+
run_mode: eval
|
| 6 |
+
executor:
|
| 7 |
+
mode: simulated
|
| 8 |
+
simulated_inference_pool: false
|
| 9 |
+
simulated_worker_capacity: null
|
| 10 |
+
env:
|
| 11 |
+
name: gymnasium
|
| 12 |
+
task_name: inverted_pendulum_rgb_state
|
| 13 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 14 |
+
registration_imports:
|
| 15 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 16 |
+
env_fps: 25.0
|
| 17 |
+
obs_fps: 25.0
|
| 18 |
+
frame_stack: 1
|
| 19 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose exactly
|
| 20 |
+
one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 21 |
+
push_right_hard.'
|
| 22 |
+
action_labels:
|
| 23 |
+
- push_left_hard
|
| 24 |
+
- push_left_soft
|
| 25 |
+
- zero_force
|
| 26 |
+
- push_right_soft
|
| 27 |
+
- push_right_hard
|
| 28 |
+
action_values:
|
| 29 |
+
- 0
|
| 30 |
+
- 1
|
| 31 |
+
- 2
|
| 32 |
+
- 3
|
| 33 |
+
- 4
|
| 34 |
+
noop_action_id: 2
|
| 35 |
+
make_kwargs:
|
| 36 |
+
base_env_id: InvertedPendulum-v4
|
| 37 |
+
render_mode: rgb_array
|
| 38 |
+
force_values:
|
| 39 |
+
- -3.0
|
| 40 |
+
- -1.5
|
| 41 |
+
- 0.0
|
| 42 |
+
- 1.5
|
| 43 |
+
- 3.0
|
| 44 |
+
base_make_kwargs: {}
|
| 45 |
+
state_space:
|
| 46 |
+
labels:
|
| 47 |
+
- cart_position
|
| 48 |
+
- pole_angle
|
| 49 |
+
- cart_velocity
|
| 50 |
+
- pole_angular_velocity
|
| 51 |
+
action_order:
|
| 52 |
+
- push_left_hard
|
| 53 |
+
- push_left_soft
|
| 54 |
+
- zero_force
|
| 55 |
+
- push_right_soft
|
| 56 |
+
- push_right_hard
|
| 57 |
+
action_map:
|
| 58 |
+
push_left_hard: 0
|
| 59 |
+
push_left_soft: 1
|
| 60 |
+
zero_force: 2
|
| 61 |
+
push_right_soft: 3
|
| 62 |
+
push_right_hard: 4
|
| 63 |
+
noop_action: zero_force
|
| 64 |
+
obs_resize:
|
| 65 |
+
- 224
|
| 66 |
+
- 224
|
| 67 |
+
latency:
|
| 68 |
+
method: fixed
|
| 69 |
+
add_latency_info: false
|
| 70 |
+
fixed_latency_ms: 80.0
|
| 71 |
+
scheduler:
|
| 72 |
+
hold_policy: hold
|
| 73 |
+
ordering_policy: issue_order_fifo
|
| 74 |
+
policy:
|
| 75 |
+
type: starvla
|
| 76 |
+
checkpoint_path: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2
|
| 77 |
+
device: cuda
|
| 78 |
+
task_manifest_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/manifest.json
|
| 79 |
+
gymnasium_training_task_contract:
|
| 80 |
+
task_name: inverted_pendulum_rgb_state
|
| 81 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 82 |
+
registration_imports:
|
| 83 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 84 |
+
env_fps: 25.0
|
| 85 |
+
obs_fps: 25.0
|
| 86 |
+
frame_stack: 1
|
| 87 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose
|
| 88 |
+
exactly one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 89 |
+
push_right_hard.'
|
| 90 |
+
action_labels:
|
| 91 |
+
- push_left_hard
|
| 92 |
+
- push_left_soft
|
| 93 |
+
- zero_force
|
| 94 |
+
- push_right_soft
|
| 95 |
+
- push_right_hard
|
| 96 |
+
action_values:
|
| 97 |
+
- 0
|
| 98 |
+
- 1
|
| 99 |
+
- 2
|
| 100 |
+
- 3
|
| 101 |
+
- 4
|
| 102 |
+
noop_action_id: 2
|
| 103 |
+
make_kwargs:
|
| 104 |
+
base_env_id: InvertedPendulum-v4
|
| 105 |
+
render_mode: rgb_array
|
| 106 |
+
force_values:
|
| 107 |
+
- -3.0
|
| 108 |
+
- -1.5
|
| 109 |
+
- 0.0
|
| 110 |
+
- 1.5
|
| 111 |
+
- 3.0
|
| 112 |
+
base_make_kwargs: {}
|
| 113 |
+
state_space:
|
| 114 |
+
labels:
|
| 115 |
+
- cart_position
|
| 116 |
+
- pole_angle
|
| 117 |
+
- cart_velocity
|
| 118 |
+
- pole_angular_velocity
|
| 119 |
+
latency_prompt_map_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_prompt_map.json
|
| 120 |
+
latency_prompt_key: 2
|
| 121 |
+
action_prefix:
|
| 122 |
+
mode: none
|
| 123 |
+
evaluation:
|
| 124 |
+
eval_episodes: 20
|
| 125 |
+
eval_parallel_envs: 5
|
| 126 |
+
eval_max_steps: 3600
|
| 127 |
+
eval_max_decision_steps: 3600
|
| 128 |
+
eval_deterministic: true
|
| 129 |
+
eval_raw_reward: false
|
| 130 |
+
eval_latency_values: null
|
| 131 |
+
logging:
|
| 132 |
+
output_dir: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_2
|
| 133 |
+
video:
|
| 134 |
+
enabled: false
|
| 135 |
+
num_bins: 1
|
| 136 |
+
save_step_records: false
|
| 137 |
+
save_action_records: false
|
| 138 |
+
save_latency_records: false
|
| 139 |
+
simulated_pipeline_profile: false
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4/episode_metrics.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"episode_id": 0, "episode_return": 37.0, "episode_return_env": 37.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 42, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 37, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 37}
|
| 2 |
+
{"episode_id": 1, "episode_return": 22.0, "episode_return_env": 22.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 43, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 22, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 22}
|
| 3 |
+
{"episode_id": 2, "episode_return": 29.0, "episode_return_env": 29.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 44, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 29, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 29}
|
| 4 |
+
{"episode_id": 3, "episode_return": 31.0, "episode_return_env": 31.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 45, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 31, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 31}
|
| 5 |
+
{"episode_id": 4, "episode_return": 22.0, "episode_return_env": 22.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 46, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 22, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 22}
|
| 6 |
+
{"episode_id": 5, "episode_return": 28.0, "episode_return_env": 28.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 47, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 28, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 28}
|
| 7 |
+
{"episode_id": 6, "episode_return": 25.0, "episode_return_env": 25.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 48, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 25, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 25}
|
| 8 |
+
{"episode_id": 7, "episode_return": 30.0, "episode_return_env": 30.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 49, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 30, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 30}
|
| 9 |
+
{"episode_id": 8, "episode_return": 25.0, "episode_return_env": 25.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 50, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 25, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 25}
|
| 10 |
+
{"episode_id": 9, "episode_return": 26.0, "episode_return_env": 26.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 51, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 26, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 26}
|
| 11 |
+
{"episode_id": 10, "episode_return": 30.0, "episode_return_env": 30.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 52, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 30, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 30}
|
| 12 |
+
{"episode_id": 11, "episode_return": 26.0, "episode_return_env": 26.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 53, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 26, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 26}
|
| 13 |
+
{"episode_id": 12, "episode_return": 33.0, "episode_return_env": 33.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 54, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 33, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 33}
|
| 14 |
+
{"episode_id": 13, "episode_return": 26.0, "episode_return_env": 26.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 55, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 26, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 26}
|
| 15 |
+
{"episode_id": 14, "episode_return": 22.0, "episode_return_env": 22.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 56, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 22, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 22}
|
| 16 |
+
{"episode_id": 15, "episode_return": 40.0, "episode_return_env": 40.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 57, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 40, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 40}
|
| 17 |
+
{"episode_id": 16, "episode_return": 27.0, "episode_return_env": 27.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 58, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 27, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 27}
|
| 18 |
+
{"episode_id": 17, "episode_return": 26.0, "episode_return_env": 26.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 59, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 26, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 26}
|
| 19 |
+
{"episode_id": 18, "episode_return": 22.0, "episode_return_env": 22.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 60, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 22, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 22}
|
| 20 |
+
{"episode_id": 19, "episode_return": 26.0, "episode_return_env": 26.0, "game_score": null, "mean_latency_ms": 160.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 61, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 26, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 160.0, "p99_latency_ms": 160.0, "return_raw": null, "survival_steps": 26}
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4/observation_attempts.jsonl
ADDED
|
File without changes
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4/resolved_config.yaml
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
experiment:
|
| 2 |
+
name: starvla_gymnasium_train_eval
|
| 3 |
+
seed: 42
|
| 4 |
+
backend:
|
| 5 |
+
run_mode: eval
|
| 6 |
+
executor:
|
| 7 |
+
mode: simulated
|
| 8 |
+
simulated_inference_pool: false
|
| 9 |
+
simulated_worker_capacity: null
|
| 10 |
+
env:
|
| 11 |
+
name: gymnasium
|
| 12 |
+
task_name: inverted_pendulum_rgb_state
|
| 13 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 14 |
+
registration_imports:
|
| 15 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 16 |
+
env_fps: 25.0
|
| 17 |
+
obs_fps: 25.0
|
| 18 |
+
frame_stack: 1
|
| 19 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose exactly
|
| 20 |
+
one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 21 |
+
push_right_hard.'
|
| 22 |
+
action_labels:
|
| 23 |
+
- push_left_hard
|
| 24 |
+
- push_left_soft
|
| 25 |
+
- zero_force
|
| 26 |
+
- push_right_soft
|
| 27 |
+
- push_right_hard
|
| 28 |
+
action_values:
|
| 29 |
+
- 0
|
| 30 |
+
- 1
|
| 31 |
+
- 2
|
| 32 |
+
- 3
|
| 33 |
+
- 4
|
| 34 |
+
noop_action_id: 2
|
| 35 |
+
make_kwargs:
|
| 36 |
+
base_env_id: InvertedPendulum-v4
|
| 37 |
+
render_mode: rgb_array
|
| 38 |
+
force_values:
|
| 39 |
+
- -3.0
|
| 40 |
+
- -1.5
|
| 41 |
+
- 0.0
|
| 42 |
+
- 1.5
|
| 43 |
+
- 3.0
|
| 44 |
+
base_make_kwargs: {}
|
| 45 |
+
state_space:
|
| 46 |
+
labels:
|
| 47 |
+
- cart_position
|
| 48 |
+
- pole_angle
|
| 49 |
+
- cart_velocity
|
| 50 |
+
- pole_angular_velocity
|
| 51 |
+
action_order:
|
| 52 |
+
- push_left_hard
|
| 53 |
+
- push_left_soft
|
| 54 |
+
- zero_force
|
| 55 |
+
- push_right_soft
|
| 56 |
+
- push_right_hard
|
| 57 |
+
action_map:
|
| 58 |
+
push_left_hard: 0
|
| 59 |
+
push_left_soft: 1
|
| 60 |
+
zero_force: 2
|
| 61 |
+
push_right_soft: 3
|
| 62 |
+
push_right_hard: 4
|
| 63 |
+
noop_action: zero_force
|
| 64 |
+
obs_resize:
|
| 65 |
+
- 224
|
| 66 |
+
- 224
|
| 67 |
+
latency:
|
| 68 |
+
method: fixed
|
| 69 |
+
add_latency_info: false
|
| 70 |
+
fixed_latency_ms: 160.0
|
| 71 |
+
scheduler:
|
| 72 |
+
hold_policy: hold
|
| 73 |
+
ordering_policy: issue_order_fifo
|
| 74 |
+
policy:
|
| 75 |
+
type: starvla
|
| 76 |
+
checkpoint_path: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4
|
| 77 |
+
device: cuda
|
| 78 |
+
task_manifest_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/manifest.json
|
| 79 |
+
gymnasium_training_task_contract:
|
| 80 |
+
task_name: inverted_pendulum_rgb_state
|
| 81 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 82 |
+
registration_imports:
|
| 83 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 84 |
+
env_fps: 25.0
|
| 85 |
+
obs_fps: 25.0
|
| 86 |
+
frame_stack: 1
|
| 87 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose
|
| 88 |
+
exactly one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 89 |
+
push_right_hard.'
|
| 90 |
+
action_labels:
|
| 91 |
+
- push_left_hard
|
| 92 |
+
- push_left_soft
|
| 93 |
+
- zero_force
|
| 94 |
+
- push_right_soft
|
| 95 |
+
- push_right_hard
|
| 96 |
+
action_values:
|
| 97 |
+
- 0
|
| 98 |
+
- 1
|
| 99 |
+
- 2
|
| 100 |
+
- 3
|
| 101 |
+
- 4
|
| 102 |
+
noop_action_id: 2
|
| 103 |
+
make_kwargs:
|
| 104 |
+
base_env_id: InvertedPendulum-v4
|
| 105 |
+
render_mode: rgb_array
|
| 106 |
+
force_values:
|
| 107 |
+
- -3.0
|
| 108 |
+
- -1.5
|
| 109 |
+
- 0.0
|
| 110 |
+
- 1.5
|
| 111 |
+
- 3.0
|
| 112 |
+
base_make_kwargs: {}
|
| 113 |
+
state_space:
|
| 114 |
+
labels:
|
| 115 |
+
- cart_position
|
| 116 |
+
- pole_angle
|
| 117 |
+
- cart_velocity
|
| 118 |
+
- pole_angular_velocity
|
| 119 |
+
latency_prompt_map_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_prompt_map.json
|
| 120 |
+
latency_prompt_key: 4
|
| 121 |
+
action_prefix:
|
| 122 |
+
mode: none
|
| 123 |
+
evaluation:
|
| 124 |
+
eval_episodes: 20
|
| 125 |
+
eval_parallel_envs: 5
|
| 126 |
+
eval_max_steps: 3600
|
| 127 |
+
eval_max_decision_steps: 3600
|
| 128 |
+
eval_deterministic: true
|
| 129 |
+
eval_raw_reward: false
|
| 130 |
+
eval_latency_values: null
|
| 131 |
+
logging:
|
| 132 |
+
output_dir: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_exp3/latency_bench_eval/post_train/step_5000/gymnasium/latency_4
|
| 133 |
+
video:
|
| 134 |
+
enabled: false
|
| 135 |
+
num_bins: 1
|
| 136 |
+
save_step_records: false
|
| 137 |
+
save_action_records: false
|
| 138 |
+
save_latency_records: false
|
| 139 |
+
simulated_pipeline_profile: false
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/eval/post_train/step_5000.json
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"per_latency": {
|
| 3 |
+
"gymnasium/latency_0": {
|
| 4 |
+
"latency": 0,
|
| 5 |
+
"num_episodes": 20,
|
| 6 |
+
"mean_reward": 56.2,
|
| 7 |
+
"mean_length": 56.2,
|
| 8 |
+
"std_reward": 8.86904729945669,
|
| 9 |
+
"std_length": 8.86904729945669,
|
| 10 |
+
"episode_rewards": [
|
| 11 |
+
63.0,
|
| 12 |
+
46.0,
|
| 13 |
+
63.0,
|
| 14 |
+
58.0,
|
| 15 |
+
54.0,
|
| 16 |
+
54.0,
|
| 17 |
+
46.0,
|
| 18 |
+
58.0,
|
| 19 |
+
46.0,
|
| 20 |
+
60.0,
|
| 21 |
+
53.0,
|
| 22 |
+
48.0,
|
| 23 |
+
79.0,
|
| 24 |
+
46.0,
|
| 25 |
+
72.0,
|
| 26 |
+
58.0,
|
| 27 |
+
48.0,
|
| 28 |
+
65.0,
|
| 29 |
+
50.0,
|
| 30 |
+
57.0
|
| 31 |
+
],
|
| 32 |
+
"episode_lengths": [
|
| 33 |
+
63,
|
| 34 |
+
46,
|
| 35 |
+
63,
|
| 36 |
+
58,
|
| 37 |
+
54,
|
| 38 |
+
54,
|
| 39 |
+
46,
|
| 40 |
+
58,
|
| 41 |
+
46,
|
| 42 |
+
60,
|
| 43 |
+
53,
|
| 44 |
+
48,
|
| 45 |
+
79,
|
| 46 |
+
46,
|
| 47 |
+
72,
|
| 48 |
+
58,
|
| 49 |
+
48,
|
| 50 |
+
65,
|
| 51 |
+
50,
|
| 52 |
+
57
|
| 53 |
+
],
|
| 54 |
+
"decoded_action_hist": {},
|
| 55 |
+
"fixed_episode_seeds": true,
|
| 56 |
+
"eval_seed": 42,
|
| 57 |
+
"episode_seeds": [
|
| 58 |
+
null,
|
| 59 |
+
null,
|
| 60 |
+
null,
|
| 61 |
+
null,
|
| 62 |
+
null,
|
| 63 |
+
null,
|
| 64 |
+
null,
|
| 65 |
+
null,
|
| 66 |
+
null,
|
| 67 |
+
null,
|
| 68 |
+
null,
|
| 69 |
+
null,
|
| 70 |
+
null,
|
| 71 |
+
null,
|
| 72 |
+
null,
|
| 73 |
+
null,
|
| 74 |
+
null,
|
| 75 |
+
null,
|
| 76 |
+
null,
|
| 77 |
+
null
|
| 78 |
+
],
|
| 79 |
+
"episode_indices": [
|
| 80 |
+
0,
|
| 81 |
+
1,
|
| 82 |
+
2,
|
| 83 |
+
3,
|
| 84 |
+
4,
|
| 85 |
+
5,
|
| 86 |
+
6,
|
| 87 |
+
7,
|
| 88 |
+
8,
|
| 89 |
+
9,
|
| 90 |
+
10,
|
| 91 |
+
11,
|
| 92 |
+
12,
|
| 93 |
+
13,
|
| 94 |
+
14,
|
| 95 |
+
15,
|
| 96 |
+
16,
|
| 97 |
+
17,
|
| 98 |
+
18,
|
| 99 |
+
19
|
| 100 |
+
]
|
| 101 |
+
},
|
| 102 |
+
"gymnasium/latency_2": {
|
| 103 |
+
"latency": 2,
|
| 104 |
+
"num_episodes": 20,
|
| 105 |
+
"mean_reward": 71.55,
|
| 106 |
+
"mean_length": 71.55,
|
| 107 |
+
"std_reward": 28.073964807272947,
|
| 108 |
+
"std_length": 28.073964807272947,
|
| 109 |
+
"episode_rewards": [
|
| 110 |
+
114.0,
|
| 111 |
+
45.0,
|
| 112 |
+
64.0,
|
| 113 |
+
66.0,
|
| 114 |
+
42.0,
|
| 115 |
+
115.0,
|
| 116 |
+
82.0,
|
| 117 |
+
94.0,
|
| 118 |
+
98.0,
|
| 119 |
+
46.0,
|
| 120 |
+
114.0,
|
| 121 |
+
34.0,
|
| 122 |
+
52.0,
|
| 123 |
+
100.0,
|
| 124 |
+
45.0,
|
| 125 |
+
112.0,
|
| 126 |
+
54.0,
|
| 127 |
+
60.0,
|
| 128 |
+
42.0,
|
| 129 |
+
52.0
|
| 130 |
+
],
|
| 131 |
+
"episode_lengths": [
|
| 132 |
+
114,
|
| 133 |
+
45,
|
| 134 |
+
64,
|
| 135 |
+
66,
|
| 136 |
+
42,
|
| 137 |
+
115,
|
| 138 |
+
82,
|
| 139 |
+
94,
|
| 140 |
+
98,
|
| 141 |
+
46,
|
| 142 |
+
114,
|
| 143 |
+
34,
|
| 144 |
+
52,
|
| 145 |
+
100,
|
| 146 |
+
45,
|
| 147 |
+
112,
|
| 148 |
+
54,
|
| 149 |
+
60,
|
| 150 |
+
42,
|
| 151 |
+
52
|
| 152 |
+
],
|
| 153 |
+
"decoded_action_hist": {},
|
| 154 |
+
"fixed_episode_seeds": true,
|
| 155 |
+
"eval_seed": 42,
|
| 156 |
+
"episode_seeds": [
|
| 157 |
+
null,
|
| 158 |
+
null,
|
| 159 |
+
null,
|
| 160 |
+
null,
|
| 161 |
+
null,
|
| 162 |
+
null,
|
| 163 |
+
null,
|
| 164 |
+
null,
|
| 165 |
+
null,
|
| 166 |
+
null,
|
| 167 |
+
null,
|
| 168 |
+
null,
|
| 169 |
+
null,
|
| 170 |
+
null,
|
| 171 |
+
null,
|
| 172 |
+
null,
|
| 173 |
+
null,
|
| 174 |
+
null,
|
| 175 |
+
null,
|
| 176 |
+
null
|
| 177 |
+
],
|
| 178 |
+
"episode_indices": [
|
| 179 |
+
0,
|
| 180 |
+
1,
|
| 181 |
+
2,
|
| 182 |
+
3,
|
| 183 |
+
4,
|
| 184 |
+
5,
|
| 185 |
+
6,
|
| 186 |
+
7,
|
| 187 |
+
8,
|
| 188 |
+
9,
|
| 189 |
+
10,
|
| 190 |
+
11,
|
| 191 |
+
12,
|
| 192 |
+
13,
|
| 193 |
+
14,
|
| 194 |
+
15,
|
| 195 |
+
16,
|
| 196 |
+
17,
|
| 197 |
+
18,
|
| 198 |
+
19
|
| 199 |
+
]
|
| 200 |
+
},
|
| 201 |
+
"gymnasium/latency_4": {
|
| 202 |
+
"latency": 4,
|
| 203 |
+
"num_episodes": 20,
|
| 204 |
+
"mean_reward": 27.45,
|
| 205 |
+
"mean_length": 27.45,
|
| 206 |
+
"std_reward": 4.271709259769443,
|
| 207 |
+
"std_length": 4.271709259769443,
|
| 208 |
+
"episode_rewards": [
|
| 209 |
+
37.0,
|
| 210 |
+
22.0,
|
| 211 |
+
29.0,
|
| 212 |
+
31.0,
|
| 213 |
+
22.0,
|
| 214 |
+
28.0,
|
| 215 |
+
25.0,
|
| 216 |
+
30.0,
|
| 217 |
+
25.0,
|
| 218 |
+
26.0,
|
| 219 |
+
30.0,
|
| 220 |
+
26.0,
|
| 221 |
+
33.0,
|
| 222 |
+
26.0,
|
| 223 |
+
22.0,
|
| 224 |
+
36.0,
|
| 225 |
+
27.0,
|
| 226 |
+
26.0,
|
| 227 |
+
22.0,
|
| 228 |
+
26.0
|
| 229 |
+
],
|
| 230 |
+
"episode_lengths": [
|
| 231 |
+
37,
|
| 232 |
+
22,
|
| 233 |
+
29,
|
| 234 |
+
31,
|
| 235 |
+
22,
|
| 236 |
+
28,
|
| 237 |
+
25,
|
| 238 |
+
30,
|
| 239 |
+
25,
|
| 240 |
+
26,
|
| 241 |
+
30,
|
| 242 |
+
26,
|
| 243 |
+
33,
|
| 244 |
+
26,
|
| 245 |
+
22,
|
| 246 |
+
36,
|
| 247 |
+
27,
|
| 248 |
+
26,
|
| 249 |
+
22,
|
| 250 |
+
26
|
| 251 |
+
],
|
| 252 |
+
"decoded_action_hist": {},
|
| 253 |
+
"fixed_episode_seeds": true,
|
| 254 |
+
"eval_seed": 42,
|
| 255 |
+
"episode_seeds": [
|
| 256 |
+
null,
|
| 257 |
+
null,
|
| 258 |
+
null,
|
| 259 |
+
null,
|
| 260 |
+
null,
|
| 261 |
+
null,
|
| 262 |
+
null,
|
| 263 |
+
null,
|
| 264 |
+
null,
|
| 265 |
+
null,
|
| 266 |
+
null,
|
| 267 |
+
null,
|
| 268 |
+
null,
|
| 269 |
+
null,
|
| 270 |
+
null,
|
| 271 |
+
null,
|
| 272 |
+
null,
|
| 273 |
+
null,
|
| 274 |
+
null,
|
| 275 |
+
null
|
| 276 |
+
],
|
| 277 |
+
"episode_indices": [
|
| 278 |
+
0,
|
| 279 |
+
1,
|
| 280 |
+
2,
|
| 281 |
+
3,
|
| 282 |
+
4,
|
| 283 |
+
5,
|
| 284 |
+
6,
|
| 285 |
+
7,
|
| 286 |
+
8,
|
| 287 |
+
9,
|
| 288 |
+
10,
|
| 289 |
+
11,
|
| 290 |
+
12,
|
| 291 |
+
13,
|
| 292 |
+
14,
|
| 293 |
+
15,
|
| 294 |
+
16,
|
| 295 |
+
17,
|
| 296 |
+
18,
|
| 297 |
+
19
|
| 298 |
+
]
|
| 299 |
+
}
|
| 300 |
+
},
|
| 301 |
+
"aggregate": {
|
| 302 |
+
"stage": "post_train",
|
| 303 |
+
"step": 5000,
|
| 304 |
+
"task": "gymnasium",
|
| 305 |
+
"model_alias": "openvla",
|
| 306 |
+
"fixed_episode_seeds": true,
|
| 307 |
+
"eval_seed": 42,
|
| 308 |
+
"total_episodes": 60,
|
| 309 |
+
"mean_reward": 51.733333333333334,
|
| 310 |
+
"mean_length": 51.733333333333334,
|
| 311 |
+
"std_reward": 25.08244184462288,
|
| 312 |
+
"std_length": 25.08244184462288,
|
| 313 |
+
"task_count": 1,
|
| 314 |
+
"macro_mean_reward": 51.73333333333333,
|
| 315 |
+
"macro_mean_length": 51.73333333333333,
|
| 316 |
+
"distributed_eval": false
|
| 317 |
+
}
|
| 318 |
+
}
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/episode_metrics.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"episode_id": 0, "episode_return": 63.0, "episode_return_env": 63.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 42, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 63, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 63}
|
| 2 |
+
{"episode_id": 1, "episode_return": 46.0, "episode_return_env": 46.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 43, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 46, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 46}
|
| 3 |
+
{"episode_id": 2, "episode_return": 63.0, "episode_return_env": 63.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 44, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 63, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 63}
|
| 4 |
+
{"episode_id": 3, "episode_return": 58.0, "episode_return_env": 58.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 45, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 58, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 58}
|
| 5 |
+
{"episode_id": 4, "episode_return": 54.0, "episode_return_env": 54.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 46, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 54, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 54}
|
| 6 |
+
{"episode_id": 5, "episode_return": 54.0, "episode_return_env": 54.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 47, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 54, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 54}
|
| 7 |
+
{"episode_id": 6, "episode_return": 46.0, "episode_return_env": 46.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 48, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 46, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 46}
|
| 8 |
+
{"episode_id": 7, "episode_return": 58.0, "episode_return_env": 58.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 49, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 58, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 58}
|
| 9 |
+
{"episode_id": 8, "episode_return": 46.0, "episode_return_env": 46.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 50, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 46, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 46}
|
| 10 |
+
{"episode_id": 9, "episode_return": 60.0, "episode_return_env": 60.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 51, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 60, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 60}
|
| 11 |
+
{"episode_id": 10, "episode_return": 53.0, "episode_return_env": 53.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 52, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 53, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 53}
|
| 12 |
+
{"episode_id": 11, "episode_return": 48.0, "episode_return_env": 48.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 53, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 48, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 48}
|
| 13 |
+
{"episode_id": 12, "episode_return": 79.0, "episode_return_env": 79.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 54, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 79, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 79}
|
| 14 |
+
{"episode_id": 13, "episode_return": 46.0, "episode_return_env": 46.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 55, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 46, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 46}
|
| 15 |
+
{"episode_id": 14, "episode_return": 72.0, "episode_return_env": 72.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 56, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 72, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 72}
|
| 16 |
+
{"episode_id": 15, "episode_return": 58.0, "episode_return_env": 58.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 57, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 58, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 58}
|
| 17 |
+
{"episode_id": 16, "episode_return": 48.0, "episode_return_env": 48.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 58, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 48, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 48}
|
| 18 |
+
{"episode_id": 17, "episode_return": 65.0, "episode_return_env": 65.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 59, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 65, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 65}
|
| 19 |
+
{"episode_id": 18, "episode_return": 50.0, "episode_return_env": 50.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 60, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 50, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 50}
|
| 20 |
+
{"episode_id": 19, "episode_return": 57.0, "episode_return_env": 57.0, "game_score": null, "mean_latency_ms": 0.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 61, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "zero", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 57, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 0.0, "p99_latency_ms": 0.0, "return_raw": null, "survival_steps": 57}
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/observation_attempts.jsonl
ADDED
|
File without changes
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0/resolved_config.yaml
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
experiment:
|
| 2 |
+
name: starvla_gymnasium_train_eval
|
| 3 |
+
seed: 42
|
| 4 |
+
backend:
|
| 5 |
+
run_mode: eval
|
| 6 |
+
executor:
|
| 7 |
+
mode: simulated
|
| 8 |
+
simulated_inference_pool: false
|
| 9 |
+
simulated_worker_capacity: null
|
| 10 |
+
env:
|
| 11 |
+
name: gymnasium
|
| 12 |
+
task_name: inverted_pendulum_rgb_state
|
| 13 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 14 |
+
registration_imports:
|
| 15 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 16 |
+
env_fps: 25.0
|
| 17 |
+
obs_fps: 25.0
|
| 18 |
+
frame_stack: 1
|
| 19 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose exactly
|
| 20 |
+
one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 21 |
+
push_right_hard.'
|
| 22 |
+
action_labels:
|
| 23 |
+
- push_left_hard
|
| 24 |
+
- push_left_soft
|
| 25 |
+
- zero_force
|
| 26 |
+
- push_right_soft
|
| 27 |
+
- push_right_hard
|
| 28 |
+
action_values:
|
| 29 |
+
- 0
|
| 30 |
+
- 1
|
| 31 |
+
- 2
|
| 32 |
+
- 3
|
| 33 |
+
- 4
|
| 34 |
+
noop_action_id: 2
|
| 35 |
+
make_kwargs:
|
| 36 |
+
base_env_id: InvertedPendulum-v4
|
| 37 |
+
render_mode: rgb_array
|
| 38 |
+
force_values:
|
| 39 |
+
- -3.0
|
| 40 |
+
- -1.5
|
| 41 |
+
- 0.0
|
| 42 |
+
- 1.5
|
| 43 |
+
- 3.0
|
| 44 |
+
base_make_kwargs: {}
|
| 45 |
+
state_space:
|
| 46 |
+
labels:
|
| 47 |
+
- cart_position
|
| 48 |
+
- pole_angle
|
| 49 |
+
- cart_velocity
|
| 50 |
+
- pole_angular_velocity
|
| 51 |
+
action_order:
|
| 52 |
+
- push_left_hard
|
| 53 |
+
- push_left_soft
|
| 54 |
+
- zero_force
|
| 55 |
+
- push_right_soft
|
| 56 |
+
- push_right_hard
|
| 57 |
+
action_map:
|
| 58 |
+
push_left_hard: 0
|
| 59 |
+
push_left_soft: 1
|
| 60 |
+
zero_force: 2
|
| 61 |
+
push_right_soft: 3
|
| 62 |
+
push_right_hard: 4
|
| 63 |
+
noop_action: zero_force
|
| 64 |
+
obs_resize:
|
| 65 |
+
- 224
|
| 66 |
+
- 224
|
| 67 |
+
latency:
|
| 68 |
+
method: zero
|
| 69 |
+
add_latency_info: false
|
| 70 |
+
scheduler:
|
| 71 |
+
hold_policy: hold
|
| 72 |
+
ordering_policy: issue_order_fifo
|
| 73 |
+
policy:
|
| 74 |
+
type: starvla
|
| 75 |
+
checkpoint_path: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0
|
| 76 |
+
device: cuda
|
| 77 |
+
task_manifest_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/manifest.json
|
| 78 |
+
gymnasium_training_task_contract:
|
| 79 |
+
task_name: inverted_pendulum_rgb_state
|
| 80 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 81 |
+
registration_imports:
|
| 82 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 83 |
+
env_fps: 25.0
|
| 84 |
+
obs_fps: 25.0
|
| 85 |
+
frame_stack: 1
|
| 86 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose
|
| 87 |
+
exactly one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 88 |
+
push_right_hard.'
|
| 89 |
+
action_labels:
|
| 90 |
+
- push_left_hard
|
| 91 |
+
- push_left_soft
|
| 92 |
+
- zero_force
|
| 93 |
+
- push_right_soft
|
| 94 |
+
- push_right_hard
|
| 95 |
+
action_values:
|
| 96 |
+
- 0
|
| 97 |
+
- 1
|
| 98 |
+
- 2
|
| 99 |
+
- 3
|
| 100 |
+
- 4
|
| 101 |
+
noop_action_id: 2
|
| 102 |
+
make_kwargs:
|
| 103 |
+
base_env_id: InvertedPendulum-v4
|
| 104 |
+
render_mode: rgb_array
|
| 105 |
+
force_values:
|
| 106 |
+
- -3.0
|
| 107 |
+
- -1.5
|
| 108 |
+
- 0.0
|
| 109 |
+
- 1.5
|
| 110 |
+
- 3.0
|
| 111 |
+
base_make_kwargs: {}
|
| 112 |
+
state_space:
|
| 113 |
+
labels:
|
| 114 |
+
- cart_position
|
| 115 |
+
- pole_angle
|
| 116 |
+
- cart_velocity
|
| 117 |
+
- pole_angular_velocity
|
| 118 |
+
latency_prompt_map_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_prompt_map.json
|
| 119 |
+
latency_prompt_key: 0
|
| 120 |
+
prompt_mode: latency_neutral
|
| 121 |
+
action_prefix:
|
| 122 |
+
mode: none
|
| 123 |
+
evaluation:
|
| 124 |
+
eval_episodes: 20
|
| 125 |
+
eval_parallel_envs: 5
|
| 126 |
+
eval_max_steps: 3600
|
| 127 |
+
eval_max_decision_steps: 3600
|
| 128 |
+
eval_deterministic: true
|
| 129 |
+
eval_raw_reward: false
|
| 130 |
+
eval_latency_values: null
|
| 131 |
+
logging:
|
| 132 |
+
output_dir: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_0
|
| 133 |
+
video:
|
| 134 |
+
enabled: false
|
| 135 |
+
num_bins: 1
|
| 136 |
+
save_step_records: false
|
| 137 |
+
save_action_records: false
|
| 138 |
+
save_latency_records: false
|
| 139 |
+
simulated_pipeline_profile: false
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/episode_metrics.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"episode_id": 0, "episode_return": 114.0, "episode_return_env": 114.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 42, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 114, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 114}
|
| 2 |
+
{"episode_id": 1, "episode_return": 45.0, "episode_return_env": 45.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 43, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 45, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 45}
|
| 3 |
+
{"episode_id": 2, "episode_return": 64.0, "episode_return_env": 64.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 44, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 64, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 64}
|
| 4 |
+
{"episode_id": 3, "episode_return": 66.0, "episode_return_env": 66.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 45, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 66, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 66}
|
| 5 |
+
{"episode_id": 4, "episode_return": 42.0, "episode_return_env": 42.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 46, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 42, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 42}
|
| 6 |
+
{"episode_id": 5, "episode_return": 115.0, "episode_return_env": 115.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 47, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 115, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 115}
|
| 7 |
+
{"episode_id": 6, "episode_return": 82.0, "episode_return_env": 82.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 48, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 82, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 82}
|
| 8 |
+
{"episode_id": 7, "episode_return": 94.0, "episode_return_env": 94.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 49, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 94, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 94}
|
| 9 |
+
{"episode_id": 8, "episode_return": 98.0, "episode_return_env": 98.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 50, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 98, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 98}
|
| 10 |
+
{"episode_id": 9, "episode_return": 46.0, "episode_return_env": 46.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 51, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 46, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 46}
|
| 11 |
+
{"episode_id": 10, "episode_return": 114.0, "episode_return_env": 114.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 52, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 114, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 114}
|
| 12 |
+
{"episode_id": 11, "episode_return": 34.0, "episode_return_env": 34.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 53, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 34, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 34}
|
| 13 |
+
{"episode_id": 12, "episode_return": 52.0, "episode_return_env": 52.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 54, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 52, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 52}
|
| 14 |
+
{"episode_id": 13, "episode_return": 100.0, "episode_return_env": 100.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 55, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 100, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 100}
|
| 15 |
+
{"episode_id": 14, "episode_return": 45.0, "episode_return_env": 45.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 56, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 45, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 45}
|
| 16 |
+
{"episode_id": 15, "episode_return": 112.0, "episode_return_env": 112.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 57, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 112, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 112}
|
| 17 |
+
{"episode_id": 16, "episode_return": 54.0, "episode_return_env": 54.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 58, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 54, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 54}
|
| 18 |
+
{"episode_id": 17, "episode_return": 60.0, "episode_return_env": 60.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 59, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 60, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 60}
|
| 19 |
+
{"episode_id": 18, "episode_return": 42.0, "episode_return_env": 42.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 60, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 42, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 42}
|
| 20 |
+
{"episode_id": 19, "episode_return": 52.0, "episode_return_env": 52.0, "game_score": null, "mean_latency_ms": 80.0, "metadata": {"action_prefix": {"mode": "none"}, "checkpoint_path": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "config_name": "starvla_gymnasium_train_eval", "env_fps": 25.0, "env_id": "LatencyBench/InvertedPendulumDiscrete-v0", "episode_seed": 61, "frame_ms": 40.0, "gpu_class": null, "instance_id": null, "latency_type": "fixed", "mode": "simulated", "model_id": null, "obs_fps": 25.0, "output_dir": "/home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2", "policy_id": "starvla", "profile_ref": null, "run_name": "starvla_gymnasium_train_eval", "source_run_id": null, "workload_id": null}, "num_actions": 52, "num_dropped_actions": 0, "num_invalid_actions": 0, "p90_latency_ms": 80.0, "p99_latency_ms": 80.0, "return_raw": null, "survival_steps": 52}
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/observation_attempts.jsonl
ADDED
|
File without changes
|
evaluations/inverted-pendulum/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2/resolved_config.yaml
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
experiment:
|
| 2 |
+
name: starvla_gymnasium_train_eval
|
| 3 |
+
seed: 42
|
| 4 |
+
backend:
|
| 5 |
+
run_mode: eval
|
| 6 |
+
executor:
|
| 7 |
+
mode: simulated
|
| 8 |
+
simulated_inference_pool: false
|
| 9 |
+
simulated_worker_capacity: null
|
| 10 |
+
env:
|
| 11 |
+
name: gymnasium
|
| 12 |
+
task_name: inverted_pendulum_rgb_state
|
| 13 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 14 |
+
registration_imports:
|
| 15 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 16 |
+
env_fps: 25.0
|
| 17 |
+
obs_fps: 25.0
|
| 18 |
+
frame_stack: 1
|
| 19 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose exactly
|
| 20 |
+
one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 21 |
+
push_right_hard.'
|
| 22 |
+
action_labels:
|
| 23 |
+
- push_left_hard
|
| 24 |
+
- push_left_soft
|
| 25 |
+
- zero_force
|
| 26 |
+
- push_right_soft
|
| 27 |
+
- push_right_hard
|
| 28 |
+
action_values:
|
| 29 |
+
- 0
|
| 30 |
+
- 1
|
| 31 |
+
- 2
|
| 32 |
+
- 3
|
| 33 |
+
- 4
|
| 34 |
+
noop_action_id: 2
|
| 35 |
+
make_kwargs:
|
| 36 |
+
base_env_id: InvertedPendulum-v4
|
| 37 |
+
render_mode: rgb_array
|
| 38 |
+
force_values:
|
| 39 |
+
- -3.0
|
| 40 |
+
- -1.5
|
| 41 |
+
- 0.0
|
| 42 |
+
- 1.5
|
| 43 |
+
- 3.0
|
| 44 |
+
base_make_kwargs: {}
|
| 45 |
+
state_space:
|
| 46 |
+
labels:
|
| 47 |
+
- cart_position
|
| 48 |
+
- pole_angle
|
| 49 |
+
- cart_velocity
|
| 50 |
+
- pole_angular_velocity
|
| 51 |
+
action_order:
|
| 52 |
+
- push_left_hard
|
| 53 |
+
- push_left_soft
|
| 54 |
+
- zero_force
|
| 55 |
+
- push_right_soft
|
| 56 |
+
- push_right_hard
|
| 57 |
+
action_map:
|
| 58 |
+
push_left_hard: 0
|
| 59 |
+
push_left_soft: 1
|
| 60 |
+
zero_force: 2
|
| 61 |
+
push_right_soft: 3
|
| 62 |
+
push_right_hard: 4
|
| 63 |
+
noop_action: zero_force
|
| 64 |
+
obs_resize:
|
| 65 |
+
- 224
|
| 66 |
+
- 224
|
| 67 |
+
latency:
|
| 68 |
+
method: fixed
|
| 69 |
+
add_latency_info: false
|
| 70 |
+
fixed_latency_ms: 80.0
|
| 71 |
+
scheduler:
|
| 72 |
+
hold_policy: hold
|
| 73 |
+
ordering_policy: issue_order_fifo
|
| 74 |
+
policy:
|
| 75 |
+
type: starvla
|
| 76 |
+
checkpoint_path: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2
|
| 77 |
+
device: cuda
|
| 78 |
+
task_manifest_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/manifest.json
|
| 79 |
+
gymnasium_training_task_contract:
|
| 80 |
+
task_name: inverted_pendulum_rgb_state
|
| 81 |
+
env_id: LatencyBench/InvertedPendulumDiscrete-v0
|
| 82 |
+
registration_imports:
|
| 83 |
+
- latency_bench.envs.gymnasium_mujoco
|
| 84 |
+
env_fps: 25.0
|
| 85 |
+
obs_fps: 25.0
|
| 86 |
+
frame_stack: 1
|
| 87 |
+
base_prompt: 'Keep the pole upright by applying horizontal cart forces. Choose
|
| 88 |
+
exactly one action from: push_left_hard, push_left_soft, zero_force, push_right_soft,
|
| 89 |
+
push_right_hard.'
|
| 90 |
+
action_labels:
|
| 91 |
+
- push_left_hard
|
| 92 |
+
- push_left_soft
|
| 93 |
+
- zero_force
|
| 94 |
+
- push_right_soft
|
| 95 |
+
- push_right_hard
|
| 96 |
+
action_values:
|
| 97 |
+
- 0
|
| 98 |
+
- 1
|
| 99 |
+
- 2
|
| 100 |
+
- 3
|
| 101 |
+
- 4
|
| 102 |
+
noop_action_id: 2
|
| 103 |
+
make_kwargs:
|
| 104 |
+
base_env_id: InvertedPendulum-v4
|
| 105 |
+
render_mode: rgb_array
|
| 106 |
+
force_values:
|
| 107 |
+
- -3.0
|
| 108 |
+
- -1.5
|
| 109 |
+
- 0.0
|
| 110 |
+
- 1.5
|
| 111 |
+
- 3.0
|
| 112 |
+
base_make_kwargs: {}
|
| 113 |
+
state_space:
|
| 114 |
+
labels:
|
| 115 |
+
- cart_position
|
| 116 |
+
- pole_angle
|
| 117 |
+
- cart_velocity
|
| 118 |
+
- pole_angular_velocity
|
| 119 |
+
latency_prompt_map_path: /home/ubuntu/talha/playground/Datasets/rl_games/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_prompt_map.json
|
| 120 |
+
latency_prompt_key: 2
|
| 121 |
+
prompt_mode: latency_neutral
|
| 122 |
+
action_prefix:
|
| 123 |
+
mode: none
|
| 124 |
+
evaluation:
|
| 125 |
+
eval_episodes: 20
|
| 126 |
+
eval_parallel_envs: 5
|
| 127 |
+
eval_max_steps: 3600
|
| 128 |
+
eval_max_decision_steps: 3600
|
| 129 |
+
eval_deterministic: true
|
| 130 |
+
eval_raw_reward: false
|
| 131 |
+
eval_latency_values: null
|
| 132 |
+
logging:
|
| 133 |
+
output_dir: /home/ubuntu/talha/results/Checkpoints/openvla_inverted_pendulum_mixed_latency_024_og_l0_native_no_latency_prompt_exp2/latency_bench_eval/post_train/step_5000/gymnasium/latency_2
|
| 134 |
+
video:
|
| 135 |
+
enabled: false
|
| 136 |
+
num_bins: 1
|
| 137 |
+
save_step_records: false
|
| 138 |
+
save_action_records: false
|
| 139 |
+
save_latency_records: false
|
| 140 |
+
simulated_pipeline_profile: false
|