rsm_rise code snapshot (HF_PUSH_ALL) (part 12)
Browse files- rsm_rise/scripts/nb/df_idm_cells/c038_mug_p1_e1_nosel.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c039_mug_p1_e1_dfact.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c040_thr_p1_e2_idm.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c041_thr_p1_e2_rnd.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c042_thr_p1_e2_nosel.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c043_thr_p1_e2_dfact.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c044_mug_p1_e2_idm.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c045_mug_p1_e2_rnd.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c046_mug_p1_e2_nosel.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c047_mug_p1_e2_dfact.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c048_thr_p2_e0_idm.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c049_thr_p2_e0_rnd.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c050_thr_p2_e0_nosel.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c051_thr_p2_e0_dfact.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c052_mug_p2_e0_idm.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c053_mug_p2_e0_rnd.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c054_mug_p2_e0_nosel.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c055_mug_p2_e0_dfact.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c056_thr_p2_e1_idm.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c057_thr_p2_e1_rnd.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c058_thr_p2_e1_nosel.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c059_thr_p2_e1_dfact.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c060_mug_p2_e1_idm.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c061_mug_p2_e1_rnd.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c062_mug_p2_e1_nosel.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c063_mug_p2_e1_dfact.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c064_thr_p2_e2_idm.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c065_thr_p2_e2_rnd.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c066_thr_p2_e2_nosel.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c067_thr_p2_e2_dfact.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c068_mug_p2_e2_idm.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c069_mug_p2_e2_rnd.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c070_mug_p2_e2_nosel.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c071_mug_p2_e2_dfact.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c072_thr_p0_e0_idm_g5.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/c073_mug_p0_e0_idm_g5.sh +4 -0
- rsm_rise/scripts/nb/df_idm_cells/ensure_mug_expert_suboptimal.sh +3 -0
- rsm_rise/scripts/nb/df_idm_cells/ensure_threading_expert_play.sh +3 -0
- rsm_rise/scripts/nb/df_idm_ensure.sh +42 -0
- rsm_rise/scripts/nb/df_idm_eval_payload.sh +116 -0
- rsm_rise/scripts/nb/df_idm_gen_queue.sh +84 -0
- rsm_rise/scripts/nb/df_idm_tab.py +156 -0
- rsm_rise/scripts/nb/df_idm_train_payload.sh +96 -0
- rsm_rise/scripts/nb/df_idmcap_cells/c000_mug_N512_ex8_idm.sh +6 -0
- rsm_rise/scripts/nb/df_idmcap_cells/c001_mug_N512_ex8_rnd.sh +6 -0
- rsm_rise/scripts/nb/df_idmcap_cells/c002_thr_N512_ex8_idm.sh +6 -0
- rsm_rise/scripts/nb/df_idmcap_cells/c003_thr_N512_ex8_rnd.sh +6 -0
- rsm_rise/scripts/nb/df_idmcap_cells/c004_mug_N1024_ex8_idm.sh +6 -0
- rsm_rise/scripts/nb/df_idmcap_cells/c005_mug_N1024_ex8_rnd.sh +6 -0
- rsm_rise/scripts/nb/df_idmcap_cells/c006_thr_N1024_ex8_idm.sh +6 -0
rsm_rise/scripts/nb/df_idm_cells/c038_mug_p1_e1_nosel.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 1 1 1 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c039_mug_p1_e1_dfact.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 128 1 1 dfact argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c040_thr_p1_e2_idm.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 128 1 2 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c041_thr_p1_e2_rnd.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 128 1 2 idm random 50
|
rsm_rise/scripts/nb/df_idm_cells/c042_thr_p1_e2_nosel.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 1 1 2 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c043_thr_p1_e2_dfact.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 128 1 2 dfact argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c044_mug_p1_e2_idm.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 128 1 2 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c045_mug_p1_e2_rnd.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 128 1 2 idm random 50
|
rsm_rise/scripts/nb/df_idm_cells/c046_mug_p1_e2_nosel.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 1 1 2 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c047_mug_p1_e2_dfact.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 128 1 2 dfact argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c048_thr_p2_e0_idm.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 128 2 0 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c049_thr_p2_e0_rnd.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 128 2 0 idm random 50
|
rsm_rise/scripts/nb/df_idm_cells/c050_thr_p2_e0_nosel.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 1 2 0 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c051_thr_p2_e0_dfact.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 128 2 0 dfact argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c052_mug_p2_e0_idm.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 128 2 0 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c053_mug_p2_e0_rnd.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 128 2 0 idm random 50
|
rsm_rise/scripts/nb/df_idm_cells/c054_mug_p2_e0_nosel.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 1 2 0 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c055_mug_p2_e0_dfact.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 128 2 0 dfact argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c056_thr_p2_e1_idm.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 128 2 1 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c057_thr_p2_e1_rnd.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 128 2 1 idm random 50
|
rsm_rise/scripts/nb/df_idm_cells/c058_thr_p2_e1_nosel.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 1 2 1 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c059_thr_p2_e1_dfact.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 128 2 1 dfact argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c060_mug_p2_e1_idm.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 128 2 1 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c061_mug_p2_e1_rnd.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 128 2 1 idm random 50
|
rsm_rise/scripts/nb/df_idm_cells/c062_mug_p2_e1_nosel.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 1 2 1 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c063_mug_p2_e1_dfact.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 128 2 1 dfact argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c064_thr_p2_e2_idm.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 128 2 2 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c065_thr_p2_e2_rnd.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 128 2 2 idm random 50
|
rsm_rise/scripts/nb/df_idm_cells/c066_thr_p2_e2_nosel.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 1 2 2 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c067_thr_p2_e2_dfact.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 128 2 2 dfact argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c068_mug_p2_e2_idm.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 128 2 2 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c069_mug_p2_e2_rnd.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 128 2 2 idm random 50
|
rsm_rise/scripts/nb/df_idm_cells/c070_mug_p2_e2_nosel.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 1 2 2 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c071_mug_p2_e2_dfact.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 128 2 2 dfact argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c072_thr_p0_e0_idm_g5.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 5.0 128 0 0 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/c073_mug_p0_e0_idm_g5.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 5.0 128 0 0 idm argmax 50
|
rsm_rise/scripts/nb/df_idm_cells/ensure_mug_expert_suboptimal.sh
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated -- train/locate this task's IDM decoders before any eval cell needs them
|
| 3 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_ensure.sh mug_expert_suboptimal
|
rsm_rise/scripts/nb/df_idm_cells/ensure_threading_expert_play.sh
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated -- train/locate this task's IDM decoders before any eval cell needs them
|
| 3 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_ensure.sh threading_expert_play
|
rsm_rise/scripts/nb/df_idm_ensure.sh
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# gen_q#274 run 36 -- make sure this task's IDM decoders exist before an eval cell runs.
|
| 3 |
+
#
|
| 4 |
+
# WHY THIS EXISTS RATHER THAN AN LSF DEPENDENCY. The whole wave is ONE resumable pack whose slots
|
| 5 |
+
# drain a shared queue (scripts/pack_drain.sh), so an eval payload can start before the training
|
| 6 |
+
# payload on another slot has finished. A `-w done(...)` dependency would instead need a second
|
| 7 |
+
# submission and would not fire if stage 1 were preempted -- and preemption is the normal case on
|
| 8 |
+
# this queue. So each eval payload calls this first: whoever gets the lock trains, everyone else
|
| 9 |
+
# waits for the probe's output file. Training is idempotent and skips completed variants, so a
|
| 10 |
+
# preempted trainer simply resumes on the next slot that takes the lock.
|
| 11 |
+
#
|
| 12 |
+
# usage: df_idm_ensure.sh <task> -> 0 when status/nb/df_idm/<task>_best.txt exists
|
| 13 |
+
set -uo pipefail
|
| 14 |
+
ROOT=/proj/dmfexp/zwhong/rsm_rise
|
| 15 |
+
TASK=${1:?usage: df_idm_ensure.sh <task>}
|
| 16 |
+
STAT=$ROOT/status/nb/df_idm
|
| 17 |
+
BEST=$STAT/${TASK}_best.txt
|
| 18 |
+
LOCK=$ROOT/runs/$TASK/idm/.train.lockd
|
| 19 |
+
mkdir -p "$STAT" "$ROOT/runs/$TASK/idm"
|
| 20 |
+
[ -s "$BEST" ] && exit 0
|
| 21 |
+
for attempt in $(seq 1 240); do # 240 x 60 s = 4 h of patience, then give up loudly
|
| 22 |
+
[ -s "$BEST" ] && { echo "[df_idm_ensure] $TASK ready ($(cat $BEST))"; exit 0; }
|
| 23 |
+
if mkdir "$LOCK" 2>/dev/null; then
|
| 24 |
+
echo "host=$(hostname) pid=$$ job=${LSB_JOBID:-none} $(date -u)" > "$LOCK/owner"
|
| 25 |
+
trap 'rm -rf "$LOCK"' EXIT
|
| 26 |
+
echo "[df_idm_ensure] $TASK: took the lock, training the IDMs $(date -u)"
|
| 27 |
+
bash $ROOT/scripts/nb/df_idm_train_payload.sh "$TASK"; rc=$?
|
| 28 |
+
rm -rf "$LOCK"; trap - EXIT
|
| 29 |
+
[ -s "$BEST" ] && exit 0
|
| 30 |
+
echo "[df_idm_ensure] $TASK: training returned rc=$rc but $BEST is absent"
|
| 31 |
+
exit 2
|
| 32 |
+
fi
|
| 33 |
+
# break a lock whose owner is gone (a preempted trainer leaves the directory behind)
|
| 34 |
+
if [ -n "$(find "$LOCK" -maxdepth 0 -mmin +90 2>/dev/null)" ]; then
|
| 35 |
+
echo "[df_idm_ensure] $TASK: stale lock older than 90 min, breaking it"
|
| 36 |
+
rm -rf "$LOCK" 2>/dev/null
|
| 37 |
+
fi
|
| 38 |
+
[ "$attempt" = 1 ] && echo "[df_idm_ensure] $TASK: another slot is training; waiting $(date -u)"
|
| 39 |
+
sleep 60
|
| 40 |
+
done
|
| 41 |
+
echo "[df_idm_ensure] $TASK: TIMED OUT waiting for $BEST"
|
| 42 |
+
exit 2
|
rsm_rise/scripts/nb/df_idm_eval_payload.sh
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# gen_q#274, stream DF_MAKEITWORK run 36 -- ONE eval cell of the IDM-decoded DF column, or of the
|
| 3 |
+
# diffused-action arm it is published beside.
|
| 4 |
+
#
|
| 5 |
+
# ============================================================================================
|
| 6 |
+
# THE DESIGN CHOICE, DECLARED IN THE CELL NAME ITSELF SO IT CANNOT GO MISSING.
|
| 7 |
+
# decode=idm -> "DF plans OBSERVATION LATENTS, a LEARNED DECODER emits actions".
|
| 8 |
+
# decode=dfact -> "DF emits actions" (its own diffused action channel) -- the arm every
|
| 9 |
+
# landed RISE DF cell ran, kept measurable side by side at the identical
|
| 10 |
+
# world model, horizon, guidance, candidate count, policy seed and eval seed.
|
| 11 |
+
# The IDM arm's tag carries the decoder shape (idmk8 / idmkfull / idmk1), and the diag JSON
|
| 12 |
+
# records decode / idm_dir / idm_mode / idm_offsets / idm_noise_rel / idm_step.
|
| 13 |
+
# Upstream's own headline maze2d numbers use a hand-written PD controller on diffused POSITIONS
|
| 14 |
+
# rather than the model's actions (df_planning.py:272-320; README 71/126), and our main-branch
|
| 15 |
+
# gate measured 46.3 +- 1.5 for that arm vs 15.1 +- 1.1 for diffused actions (LSF 1895313). The
|
| 16 |
+
# IDM is the general, LEARNED form of that controller. The reader is told, every time.
|
| 17 |
+
#
|
| 18 |
+
# EVALUATION CONTRACT -- no exceptions, and every one of these is fixed here, not chosen per cell:
|
| 19 |
+
# * the task's canonical region and the project's own env config (no narrowed initial-state box);
|
| 20 |
+
# * horizon 400 (scripts/eval_cell.sh's project default, what every DINO-WM MPC row uses);
|
| 21 |
+
# * 50 episodes per cell;
|
| 22 |
+
# * 3 policy seeds (S0A_seed0/1/2) x 3 eval seeds (0/1/2) -- no hand-picked seed;
|
| 23 |
+
# * the stock success criterion (threading stock, mug in_drawer -- eval_cell.sh's defaults, i.e.
|
| 24 |
+
# the SAME criterion every other column in tab:flagship is scored with). Not relaxed here.
|
| 25 |
+
#
|
| 26 |
+
# CONTROLS THE WAVE PUBLISHES BESIDE EVERY SCORE (generated by df_idm_gen_queue.sh, same grid):
|
| 27 |
+
# * random-of-N over the IDENTICAL candidate pool (select=random: same model, same guidance, same
|
| 28 |
+
# generator, same n_plans bundle; only the pick changes);
|
| 29 |
+
# * the NO-SELECTION floor (n_plans=1 -- there is nothing to select among);
|
| 30 |
+
# * per-cell J spread / ties-at-max / selection gap, from the diag JSON;
|
| 31 |
+
# * the BC-actor no-selection baseline already on record: threading 0.000, mug 0.027
|
| 32 |
+
# (status/nb/df_table.txt:9,90).
|
| 33 |
+
#
|
| 34 |
+
# FAIRNESS. training.plan_n=1 keeps the RISE planner OFF and selects the plain rollout policy, so
|
| 35 |
+
# no RSM/IQL critic ever ranks a DF candidate (rule 7; eval.py refuses the cell without it). No
|
| 36 |
+
# goal guidance. The guidance objective is DF's own predicted binary-provenance reward channel,
|
| 37 |
+
# unchanged. The IDM adds no information: same cache, same encoder, same split, dataset actions
|
| 38 |
+
# as supervision -- exactly what a BC column gets.
|
| 39 |
+
# ============================================================================================
|
| 40 |
+
#
|
| 41 |
+
# usage: df_idm_eval_payload.sh <task> <gamma> <guidance> <n_plans> <polseed> <evalseed> \
|
| 42 |
+
# <decode: idm|dfact> <select: argmax|random|mean> [rollouts]
|
| 43 |
+
set -uo pipefail
|
| 44 |
+
ROOT=/proj/dmfexp/zwhong/rsm_rise
|
| 45 |
+
TASK=$1; GAMMA=$2; GUID=$3; NP=$4; PSEED=$5; SEED=$6; DEC=$7; SEL=$8; ROLL=${9:-50}
|
| 46 |
+
case "$TASK" in
|
| 47 |
+
threading_expert_play) ENVCFG=robomimic_threading_coverage ;;
|
| 48 |
+
mug_expert_suboptimal) ENVCFG=robomimic_mug ;;
|
| 49 |
+
*) echo "[df_idm_eval] unknown task $TASK"; exit 2 ;;
|
| 50 |
+
esac
|
| 51 |
+
case "$DEC" in idm|dfact) ;; *) echo "[df_idm_eval] decode must be idm|dfact"; exit 2;; esac
|
| 52 |
+
case "$SEL" in argmax|random|mean) ;; *) echo "[df_idm_eval] select must be argmax|random|mean"; exit 2;; esac
|
| 53 |
+
|
| 54 |
+
PY=$ROOT/venv_df/bin/python
|
| 55 |
+
H=$($PY -c "print(int(round(1/(1-$GAMMA))))")
|
| 56 |
+
CKPT=$(ls $ROOT/runs/$TASK/policy/S0A_seed${PSEED}/*/*/models/model_epoch_5000.pth 2>/dev/null | head -1)
|
| 57 |
+
WM=${RR_DF_IDM_WM:-$ROOT/runs/$TASK/wm/df_G0/ckpt_s40000.pt}
|
| 58 |
+
FS=$ROOT/cache/$TASK/feat_stats.npz
|
| 59 |
+
for f in "$CKPT" "$WM" "$FS"; do [ -f "$f" ] || { echo "[df_idm_eval] MISSING $f"; exit 2; }; done
|
| 60 |
+
case "$WM" in *df_G1*) echo "[df_idm_eval] REFUSING df_G1 -- measured worse (run 35)"; exit 2;; esac
|
| 61 |
+
|
| 62 |
+
DECTAG=dfact
|
| 63 |
+
if [ "$DEC" = idm ]; then
|
| 64 |
+
bash $ROOT/scripts/nb/df_idm_ensure.sh "$TASK" || exit 1
|
| 65 |
+
IDMTAG=${RR_DF_IDM_TAG:-$(cat $ROOT/status/nb/df_idm/${TASK}_best.txt 2>/dev/null)}
|
| 66 |
+
[ -n "$IDMTAG" ] || { echo "[df_idm_eval] no IDM tag for $TASK"; exit 1; }
|
| 67 |
+
IDMDIR=$ROOT/runs/$TASK/idm/$IDMTAG
|
| 68 |
+
[ -f "$IDMDIR/idm_last.pt" ] || { echo "[df_idm_eval] MISSING $IDMDIR/idm_last.pt"; exit 1; }
|
| 69 |
+
DECTAG="idm${IDMTAG}"
|
| 70 |
+
export RR_DF_DECODE=idm RR_DF_IDM=$IDMDIR
|
| 71 |
+
else
|
| 72 |
+
export RR_DF_DECODE=diffused
|
| 73 |
+
fi
|
| 74 |
+
|
| 75 |
+
SELTAG=""; [ "$SEL" != argmax ] && SELTAG="-$SEL"
|
| 76 |
+
NOSEL=""; [ "$NP" = 1 ] && NOSEL="-nosel" # the no-selection floor: nothing to select among
|
| 77 |
+
# WM tag derived from the checkpoint path so an RR_DF_IDM_WM override cannot collide with, or
|
| 78 |
+
# silently overwrite, a cell measured on a different world model. For the DEFAULT WM
|
| 79 |
+
# (wm/df_G0/ckpt_s40000.pt) this yields exactly "DFG0s40000", i.e. every already-landed cell name
|
| 80 |
+
# is unchanged byte for byte.
|
| 81 |
+
WMTAG="DF$(basename "$(dirname "$WM")" | sed 's/^df_//')$(basename "$WM" .pt | sed 's/^ckpt_//')"
|
| 82 |
+
# The planner commits RR_DF_EXECUTE frames of each plan before replanning. The project default is
|
| 83 |
+
# 8 and EVERY landed cell ran at 8; an override is tagged into the cell name so an ex!=8 cell can
|
| 84 |
+
# neither collide with nor overwrite a landed ex=8 cell. At ex=8 EXTAG is empty, i.e. every
|
| 85 |
+
# already-landed cell name is unchanged byte for byte.
|
| 86 |
+
EX=${RR_DF_EXECUTE:-8}
|
| 87 |
+
EXTAG=""; [ "$EX" != 8 ] && EXTAG="-ex$EX"
|
| 88 |
+
CELL="E1-$WMTAG-R$GAMMA-$H-plan-Ndf$NP-g$GUID$EXTAG$SELTAG$NOSEL-$DECTAG-DF274IDM-es1-sS0As${PSEED}"
|
| 89 |
+
OUTD=$ROOT/runs/$TASK/eval_onactor/df274idm; mkdir -p "$OUTD"
|
| 90 |
+
O=$OUTD/${CELL}-s${SEED}.json
|
| 91 |
+
if [ -s "$O" ]; then echo "[df_idm_eval] $O exists -- skip"; exit 0; fi
|
| 92 |
+
|
| 93 |
+
export RR_DF_CKPT=$WM RR_DF_FEAT_STATS=$FS RR_DF_HORIZON=$H RR_DF_GUIDANCE=$GUID \
|
| 94 |
+
RR_DF_GAMMA=$GAMMA RR_DF_NPLANS=$NP RR_DF_EXECUTE=$EX RR_DF_SEED=$SEED RR_DF_SELECT=$SEL \
|
| 95 |
+
RR_DF_DIAG=$OUTD/${CELL}-s${SEED}.diag.json
|
| 96 |
+
echo "[df_idm_eval] $(date -u) host=$(hostname) gpu=${CUDA_VISIBLE_DEVICES:-?} cell=$CELL seed=$SEED"
|
| 97 |
+
echo "[df_idm_eval] decode=$RR_DF_DECODE idm=${RR_DF_IDM:-none} wm=$WM H=$H g=$GUID n_plans=$NP execute=$EX"
|
| 98 |
+
echo "[df_idm_eval] THIS CELL IS: $( [ "$DEC" = idm ] \
|
| 99 |
+
&& echo 'DF PLANS STATES, A LEARNED DECODER EMITS ACTIONS' \
|
| 100 |
+
|| echo 'DF EMITS ACTIONS (its own diffused action channel)')"
|
| 101 |
+
|
| 102 |
+
$ROOT/scripts/eval_cell.sh "$TASK" "$CKPT" "$ENVCFG" "$O" \
|
| 103 |
+
exp.num_rollouts=$ROLL exp.rollout_horizon=${RR_EVAL_HORIZON:-400} exp.eval_seed=$SEED \
|
| 104 |
+
training.plan_n=1 \
|
| 105 |
+
exp.eval_cell=$CELL exp.eval_task=$TASK
|
| 106 |
+
rc=$?
|
| 107 |
+
if [ -s "$O" ]; then
|
| 108 |
+
echo "[df_idm_eval] JSON LANDED rc=$rc $O"
|
| 109 |
+
else
|
| 110 |
+
# rc=99 is eval_cell.sh's HOST-level claim ("this host cannot create an EGL framebuffer"), not a
|
| 111 |
+
# statement about the cell. Propagate it verbatim so the queue index stays reclaimable.
|
| 112 |
+
if [ "$rc" = 99 ]; then
|
| 113 |
+
echo "[df_idm_eval] NO JSON rc=99 -- HOST-LEVEL; propagating 99"; exit 99
|
| 114 |
+
fi
|
| 115 |
+
echo "[df_idm_eval] NO JSON rc=$rc"; exit 1
|
| 116 |
+
fi
|
rsm_rise/scripts/nb/df_idm_gen_queue.sh
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# gen_q#274, stream DF_MAKEITWORK run 36 -- generate the IDM wave's per-cell payloads and the
|
| 3 |
+
# shared drain queue. Idempotent: re-running regenerates the same files and the same order, and
|
| 4 |
+
# every payload skips a cell whose JSON already exists, so the whole wave is resumable.
|
| 5 |
+
#
|
| 6 |
+
# THE GRID, fixed here so no cell can be added or dropped after a number is seen:
|
| 7 |
+
# tasks threading_expert_play, mug_expert_suboptimal (the RISE flagship pair)
|
| 8 |
+
# world model runs/<task>/wm/df_G0/ckpt_s40000.pt (df_G1's 4:2:1 share measured WORSE, run 35)
|
| 9 |
+
# gamma 0.95 -> H = 1/(1-gamma) = 20 planned frames, the horizon family #273 sweeps
|
| 10 |
+
# guidance 0.0 for the whole 3x3 grid, plus a 5.0 spot check on the headline arm.
|
| 11 |
+
# WHY 0.0 IS THE GRID: FINDING O measured that DF's own objective J ranks its own
|
| 12 |
+
# candidates BACKWARDS (spearman(J,-err) down to -0.292; argmaxJ_gain negative in 3 of
|
| 13 |
+
# 4 cells), and that guidance is NOT inert -- it roughly doubles the pool's action
|
| 14 |
+
# spread. Turning the guidance scale up therefore feeds a knob into a ranker that is
|
| 15 |
+
# anti-correlated with action quality. The grid is run at g=0 so the IDM decoder is
|
| 16 |
+
# tested on its own merits; g=5.0 is carried as a disclosed spot check, never as the
|
| 17 |
+
# headline.
|
| 18 |
+
# n_plans 128 (the stream's number), and 1 for the NO-SELECTION FLOOR
|
| 19 |
+
# seeds policy S0A_seed{0,1,2} x eval seed {0,1,2}, 50 episodes, horizon 400
|
| 20 |
+
# arms per (task, policy seed, eval seed):
|
| 21 |
+
# 1 idm argmax N=128 the headline: DF plans states, a learned decoder emits actions
|
| 22 |
+
# 2 idm random N=128 RANDOM-OF-N over the IDENTICAL pool (the required control)
|
| 23 |
+
# 3 idm argmax N=1 the NO-SELECTION FLOOR (nothing to select among)
|
| 24 |
+
# 4 dfact argmax N=128 DF EMITS ACTIONS -- the arm the IDM replaces, published beside it
|
| 25 |
+
# => 2 tasks x 3 x 3 x 4 = 72 cells, + 2 spot checks = 74.
|
| 26 |
+
#
|
| 27 |
+
# ORDER: policy seed, then eval seed, then task, then arm -- so the four arms of one (task, seed)
|
| 28 |
+
# cell land together (they are only interpretable together), consecutive entries are the SAME task
|
| 29 |
+
# (warm hdf5 page cache, CLAUDE.md), and a partially drained queue still yields complete,
|
| 30 |
+
# control-bearing rows starting with policy seed 0.
|
| 31 |
+
set -uo pipefail
|
| 32 |
+
ROOT=/proj/dmfexp/zwhong/rsm_rise
|
| 33 |
+
D=$ROOT/scripts/nb/df_idm_cells
|
| 34 |
+
Q=$ROOT/status/packs/df_idm_queue_20260924.txt
|
| 35 |
+
mkdir -p "$D" "$(dirname "$Q")"
|
| 36 |
+
GAMMA=0.95
|
| 37 |
+
: > "$Q.new"
|
| 38 |
+
|
| 39 |
+
emit() { # emit <name> <body...>
|
| 40 |
+
local n=$1; shift
|
| 41 |
+
{ echo '#!/usr/bin/env bash'
|
| 42 |
+
echo "# generated by scripts/nb/df_idm_gen_queue.sh -- gen_q#274 run 36 (DF -> IDM decoder wave)"
|
| 43 |
+
echo 'set -uo pipefail'
|
| 44 |
+
echo "$@"
|
| 45 |
+
} > "$D/$n.sh"
|
| 46 |
+
chmod +x "$D/$n.sh"
|
| 47 |
+
echo "$D/$n.sh" >> "$Q.new"
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
for T in threading_expert_play mug_expert_suboptimal; do
|
| 51 |
+
{ echo '#!/usr/bin/env bash'
|
| 52 |
+
echo "# generated -- train/locate this task's IDM decoders before any eval cell needs them"
|
| 53 |
+
echo "exec bash $ROOT/scripts/nb/df_idm_ensure.sh $T"
|
| 54 |
+
} > "$D/ensure_$T.sh"
|
| 55 |
+
chmod +x "$D/ensure_$T.sh"
|
| 56 |
+
done
|
| 57 |
+
|
| 58 |
+
n=0
|
| 59 |
+
for P in 0 1 2; do
|
| 60 |
+
for E in 0 1 2; do
|
| 61 |
+
for T in threading_expert_play mug_expert_suboptimal; do
|
| 62 |
+
case $T in threading_expert_play) TT=thr;; *) TT=mug;; esac
|
| 63 |
+
# arm, decode, select, n_plans
|
| 64 |
+
for SPEC in "idm idm argmax 128" "rnd idm random 128" "nosel idm argmax 1" "dfact dfact argmax 128"; do
|
| 65 |
+
set -- $SPEC; ARM=$1; DEC=$2; SEL=$3; NP=$4
|
| 66 |
+
emit "$(printf 'c%03d' $n)_${TT}_p${P}_e${E}_${ARM}" \
|
| 67 |
+
"exec bash $ROOT/scripts/nb/df_idm_eval_payload.sh $T $GAMMA 0.0 $NP $P $E $DEC $SEL 50"
|
| 68 |
+
n=$((n+1))
|
| 69 |
+
done
|
| 70 |
+
done
|
| 71 |
+
done
|
| 72 |
+
done
|
| 73 |
+
# disclosed spot check: the headline arm with guidance ON, policy seed 0 / eval seed 0 only
|
| 74 |
+
for T in threading_expert_play mug_expert_suboptimal; do
|
| 75 |
+
case $T in threading_expert_play) TT=thr;; *) TT=mug;; esac
|
| 76 |
+
emit "$(printf 'c%03d' $n)_${TT}_p0_e0_idm_g5" \
|
| 77 |
+
"exec bash $ROOT/scripts/nb/df_idm_eval_payload.sh $T $GAMMA 5.0 128 0 0 idm argmax 50"
|
| 78 |
+
n=$((n+1))
|
| 79 |
+
done
|
| 80 |
+
|
| 81 |
+
mv "$Q.new" "$Q"
|
| 82 |
+
echo "[df_idm_gen] wrote $n cell payloads under $D"
|
| 83 |
+
echo "[df_idm_gen] queue $Q ($(wc -l < "$Q") entries)"
|
| 84 |
+
echo "[df_idm_gen] ensure payloads: $D/ensure_*.sh"
|
rsm_rise/scripts/nb/df_idm_tab.py
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Aggregate the DF+IDM on-actor eval cells into the 3x3 (policy seed x eval seed) grid.
|
| 3 |
+
|
| 4 |
+
Cell name grammar (from scripts/nb/df_idm_eval_payload.sh):
|
| 5 |
+
E1-<WM>-R<gamma>-<H>-plan-Ndf<N>-g<guid>[-ex<E>][-random][-nosel]-<dec>-DF274IDM-es1-sS0As<P>-s<E>
|
| 6 |
+
where <P> = policy seed, <E> = eval seed. Arm is one of:
|
| 7 |
+
argmax : Ndf<N>, no -random, no -nosel (DF's own J ranks N candidates)
|
| 8 |
+
random : Ndf<N> -random (random-of-N on the IDENTICAL pool)
|
| 9 |
+
nosel : Ndf1 -nosel (no-selection floor, N=1: nothing to select among)
|
| 10 |
+
Decoder is `dfact` (DF's own diffused actions) or `idm<tag>` (learned inverse dynamics).
|
| 11 |
+
|
| 12 |
+
EVERY KNOB THAT CHANGES THE MEANING OF A NUMBER IS A COLUMN, so two cells can never be averaged
|
| 13 |
+
into one mean because the table did not print what separated them. run 40 added three that the
|
| 14 |
+
previous version silently dropped or never had:
|
| 15 |
+
* g -- guidance scale. The old table KEYED on it but did not PRINT it, so a g=0.0 row and a
|
| 16 |
+
g=5.0 row appeared as two identical-looking lines.
|
| 17 |
+
* N -- candidate count. The old table did not key on it at all; once run 40's N=512/N=1024
|
| 18 |
+
cells land, an N=512 argmax cell would have been averaged into the N=128 headline.
|
| 19 |
+
* ex -- frames committed per plan before replanning (RR_DF_EXECUTE, project default 8).
|
| 20 |
+
The no-selection floor has N=1 by construction, so it is keyed WITHOUT N and shown against every
|
| 21 |
+
N row of the same (task, wm, gamma, H, g, ex, decoder) group -- it is the same measurement for
|
| 22 |
+
each of them. It IS keyed on ex, which does change it.
|
| 23 |
+
|
| 24 |
+
A row is QUOTABLE only when all three arms read 9/9.
|
| 25 |
+
"""
|
| 26 |
+
import json, glob, os, re, sys
|
| 27 |
+
from collections import defaultdict
|
| 28 |
+
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
| 29 |
+
from resume_cov import resume_coverage
|
| 30 |
+
|
| 31 |
+
# run 51-main (gen_q#274). THIS BUILDER AVERAGED NON-QUOTABLE CELLS INTO ITS HEADLINE.
|
| 32 |
+
# status/nb/resume_audit.json names 16 df274idm cells whose published health covers only the episodes
|
| 33 |
+
# AFTER an episode-level resume while their score covers all 50 (FINDING AJ, eval.py:1179-1203: the
|
| 34 |
+
# resume carried the env's numpy state but neither the planner's generator nor its health
|
| 35 |
+
# accumulators, so the tail also flew the WRONG plan draw and the score is not reproducible either).
|
| 36 |
+
# td_table.py has refused such cells since run 48 and df_table.py since earlier this run; this file
|
| 37 |
+
# had no check at all AND it pools up to 9 cells into a mean, so a partial cell was invisible twice
|
| 38 |
+
# over. The headline mean is now computed over FULL-coverage cells ONLY. Nothing is dropped
|
| 39 |
+
# silently: the excluded count rides on the row, the mean it replaces is printed beside it, and every
|
| 40 |
+
# excluded cell is named in the per-cell detail with its coverage.
|
| 41 |
+
PARTIAL = {} # cell name -> resume_coverage() dict, for the cells this builder refuses
|
| 42 |
+
NOTCOMP = set() # cells whose coverage could not be computed at all
|
| 43 |
+
|
| 44 |
+
PAT = re.compile(
|
| 45 |
+
r'^E1-(?P<wm>[^-]+)-R(?P<gam>[\d.]+)-(?P<H>\d+)-plan-Ndf(?P<n>\d+)-g(?P<g>[\d.]+)'
|
| 46 |
+
r'(?:-ex(?P<ex>\d+))?(?P<random>-random)?(?P<nosel>-nosel)?'
|
| 47 |
+
r'-(?P<dec>.+?)-DF274IDM-es1-sS0As(?P<ps>\d+)-s(?P<es>\d+)$')
|
| 48 |
+
|
| 49 |
+
sel = defaultdict(dict) # (task,wm,gam,H,g,ex,dec,N) -> {(arm,ps,es): (sr,nep,hz)}
|
| 50 |
+
floor = defaultdict(dict) # (task,wm,gam,H,g,ex,dec) -> {(ps,es): (sr,nep,hz)}
|
| 51 |
+
for p in sorted(glob.glob('runs/*/eval_onactor/df274idm/*.json')):
|
| 52 |
+
if p.endswith('.diag.json'):
|
| 53 |
+
continue
|
| 54 |
+
name = p.rsplit('/', 1)[1][:-5]
|
| 55 |
+
m = PAT.match(name)
|
| 56 |
+
if not m:
|
| 57 |
+
print('UNPARSED', name, file=sys.stderr); continue
|
| 58 |
+
d = json.load(open(p))
|
| 59 |
+
if d.get('partial'):
|
| 60 |
+
continue
|
| 61 |
+
task = p.split('runs/')[1].split('/')[0]
|
| 62 |
+
ex = m['ex'] or '8'
|
| 63 |
+
# the cell's own diagnostics sidecar carries `plans` and `execute_frames`
|
| 64 |
+
_diag = {}
|
| 65 |
+
_dp = p[:-5] + '.diag.json'
|
| 66 |
+
if os.path.exists(_dp):
|
| 67 |
+
try:
|
| 68 |
+
_diag = json.load(open(_dp))
|
| 69 |
+
except Exception:
|
| 70 |
+
_diag = {}
|
| 71 |
+
_rc = resume_coverage(d, _diag)
|
| 72 |
+
if _rc is None:
|
| 73 |
+
NOTCOMP.add(name)
|
| 74 |
+
elif _rc['verdict'] != 'FULL':
|
| 75 |
+
PARTIAL[name] = _rc
|
| 76 |
+
v = (d['success_rate'], d.get('num_episodes'), d.get('rollout_horizon'), name)
|
| 77 |
+
base = (task, m['wm'], m['gam'], m['H'], m['g'], ex, m['dec'])
|
| 78 |
+
if m['nosel']:
|
| 79 |
+
floor[base][(int(m['ps']), int(m['es']))] = v
|
| 80 |
+
else:
|
| 81 |
+
arm = 'random' if m['random'] else 'argmax'
|
| 82 |
+
sel[base + (int(m['n']),)][(arm, int(m['ps']), int(m['es']))] = v
|
| 83 |
+
|
| 84 |
+
def mean(vs):
|
| 85 |
+
"""vs is a list of (success_rate, cell_name). The mean is over FULL-coverage cells only; the
|
| 86 |
+
count of cells refused for partial health is appended as `-<k>p` so the denominator never
|
| 87 |
+
overstates what was measured cleanly."""
|
| 88 |
+
ok = [sr for sr, nm in vs if nm not in PARTIAL and nm not in NOTCOMP]
|
| 89 |
+
ref = len(vs) - len(ok)
|
| 90 |
+
tag = '' if not ref else '-%dp' % ref
|
| 91 |
+
if not ok:
|
| 92 |
+
return f'{"--":>8s} (0/9{tag})' if not vs else f'{"ALLPARTIAL":>8s} (0/9{tag})'
|
| 93 |
+
return f'{sum(ok)/len(ok):8.3f} ({len(ok)}/9{tag})'
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
def mean_allcells(vs):
|
| 97 |
+
"""The mean this builder USED to print, including the refused cells. Printed beside the headline
|
| 98 |
+
whenever they differ, so the change this run makes is visible and not a silent restatement."""
|
| 99 |
+
if not vs:
|
| 100 |
+
return None
|
| 101 |
+
return sum(sr for sr, nm in vs) / len(vs)
|
| 102 |
+
|
| 103 |
+
hdr = (f"{'task':26s} {'wm':12s} {'gam':6s} {'H':3s} {'g':5s} {'ex':3s} {'N':5s} {'dec':14s} "
|
| 104 |
+
+ ' '.join(f'{a+"(n/9)":>18s}' for a in ('argmax', 'random', 'nosel')))
|
| 105 |
+
print(hdr)
|
| 106 |
+
keys = sorted(sel) + sorted(k + (None,) for k in floor if not any(k == s[:7] for s in sel))
|
| 107 |
+
for key in keys:
|
| 108 |
+
task, wm, gam, H, g, ex, dec, N = key
|
| 109 |
+
cells = sel.get(key, {})
|
| 110 |
+
_sets = [[(v[0], v[3]) for (a, _, _), v in cells.items() if a == arm]
|
| 111 |
+
for arm in ('argmax', 'random')]
|
| 112 |
+
_sets.append([(v[0], v[3]) for v in floor.get(key[:7], {}).values()])
|
| 113 |
+
cols = [mean(x) for x in _sets]
|
| 114 |
+
print(f'{task:26s} {wm:12s} {gam:6s} {H:3s} {g:5s} {ex:3s} '
|
| 115 |
+
f'{("-" if N is None else str(N)):5s} {dec:14s} ' + ' '.join(f'{c:>18s}' for c in cols))
|
| 116 |
+
# If refusing partial cells moved any column, say so on the row itself.
|
| 117 |
+
_msg = []
|
| 118 |
+
for _lab, _x in zip(('argmax', 'random', 'nosel'), _sets):
|
| 119 |
+
_ref = [nm for _, nm in _x if nm in PARTIAL or nm in NOTCOMP]
|
| 120 |
+
if _ref:
|
| 121 |
+
_all = mean_allcells(_x)
|
| 122 |
+
_msg.append('%s: %d of %d cell(s) REFUSED for partial health; the all-cells mean this '
|
| 123 |
+
'replaces was %.3f' % (_lab, len(_ref), len(_x), _all))
|
| 124 |
+
for _m in _msg:
|
| 125 |
+
print(' !! ' + _m)
|
| 126 |
+
if _msg:
|
| 127 |
+
print(' !! a refused cell resumed mid-run, so its health covers fewer episodes than its '
|
| 128 |
+
'score and its tail flew the wrong plan draw (FINDING AJ). Named in the detail below.')
|
| 129 |
+
|
| 130 |
+
def _mark(nm):
|
| 131 |
+
rc = PARTIAL.get(nm)
|
| 132 |
+
if rc:
|
| 133 |
+
return (' !! REFUSED %s: resumed at episode %d of %d, health covers %d plans where all '
|
| 134 |
+
'episodes imply %d (%.0f%%); NOT QUOTABLE -- re-run fresh'
|
| 135 |
+
% (rc['verdict'], rc['resumed_from'], rc['n_ep'], rc['plans'],
|
| 136 |
+
rc['expected_all'], 100.0 * (rc['coverage'] or 0)))
|
| 137 |
+
if nm in NOTCOMP:
|
| 138 |
+
return ' !! REFUSED: health coverage NOT COMPUTABLE (no diag plans / lengths / chunk)'
|
| 139 |
+
return ''
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
print()
|
| 143 |
+
print('HEALTH-COVERAGE REFUSALS (run 51-main): %d cell(s) excluded from every mean above for partial '
|
| 144 |
+
'health, %d for a coverage that could not be computed.' % (len(PARTIAL), len(NOTCOMP)))
|
| 145 |
+
print(' The invariant is scripts/nb/resume_cov.py, the same one td_table.py and df_table.py use.')
|
| 146 |
+
print(' Full audit of every column: status/nb/resume_audit.txt')
|
| 147 |
+
print()
|
| 148 |
+
print('per-cell detail (task/wm/gam/H/g/ex/dec : arm N ps es -> sr, nep, horizon)')
|
| 149 |
+
for key in sorted(sel):
|
| 150 |
+
for (arm, ps, es) in sorted(sel[key]):
|
| 151 |
+
sr, nep, hz, nm = sel[key][(arm, ps, es)]
|
| 152 |
+
print(f' {"/".join(map(str, key[:7]))} : {arm:6s} N={key[7]:<5d} p{ps} e{es} -> {sr:.3f} nep={nep} hz={hz}{_mark(nm)}')
|
| 153 |
+
for key in sorted(floor):
|
| 154 |
+
for (ps, es) in sorted(floor[key]):
|
| 155 |
+
sr, nep, hz, nm = floor[key][(ps, es)]
|
| 156 |
+
print(f' {"/".join(map(str, key))} : nosel N=1 p{ps} e{es} -> {sr:.3f} nep={nep} hz={hz}{_mark(nm)}')
|
rsm_rise/scripts/nb/df_idm_train_payload.sh
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# gen_q#274, stream DF_MAKEITWORK run 36 -- TRAIN THE INVERSE DYNAMICS DECODER for one task.
|
| 3 |
+
#
|
| 4 |
+
# ============================================================================================
|
| 5 |
+
# WHAT THIS CHANGES ABOUT THE DF COLUMN, STATED BEFORE ANY NUMBER EXISTS.
|
| 6 |
+
# The RISE DF column becomes "DF plans OBSERVATION LATENTS, a learned decoder emits actions"
|
| 7 |
+
# instead of "DF emits actions". This is the general form of what upstream's own headline
|
| 8 |
+
# maze2d numbers do: df_planning.py:272-320 executes a HAND-WRITTEN PD controller (gains 12.5
|
| 9 |
+
# and 1.2) on diffused POSITIONS whenever action_dim != 2, which is upstream's own recommended
|
| 10 |
+
# recipe (README 71/126, `dataset.action_mean=[] dataset.action_std=[]`). Our main-branch gate
|
| 11 |
+
# (LSF 1895313, 1024 episodes/cell, maze2d-medium) measured 46.3 +- 1.5 for the PD-controller
|
| 12 |
+
# arm against 15.1 +- 1.1 for the diffused-action arm -- the latter sitting inside the paper's
|
| 13 |
+
# own "Diffuser w/ diffused action" floor of 13.5 +- 2.3. Upstream's README line 86 says, in a
|
| 14 |
+
# commented-out block, that they never got the diffused-action setting working.
|
| 15 |
+
# BOTH ARMS ARE MEASURED AND PUBLISHED SIDE BY SIDE. Nothing is swapped silently.
|
| 16 |
+
#
|
| 17 |
+
# FAIRNESS. The IDM reads cache/<task> ONLY -- the same frozen DINOv2 ViT-S/14 cls+GeM features,
|
| 18 |
+
# the same 9-d proprio, the same feat_stats, the same held-out episode split every other DF
|
| 19 |
+
# diagnostic uses -- and is supervised by cache/<task>/act.f32.npy, the same dataset actions
|
| 20 |
+
# every BC column is trained on. NO reward, NO success bit, NO goal, NO simulator state, NO
|
| 21 |
+
# object poses, NO pixels. `code/df_rise/df_idm.py`'s header enumerates the inputs.
|
| 22 |
+
#
|
| 23 |
+
# ============================================================================================
|
| 24 |
+
# REGISTERED READ-OUT (written here BEFORE the numbers land; repeated in the report):
|
| 25 |
+
# BAR 1 r2_oracle_val (this script's JSONs): IDM R2 on TRUE held-out observation pairs, against
|
| 26 |
+
# the constant "dataset mean action" predictor -- df_actprobe's definition verbatim.
|
| 27 |
+
# >= 0.711 the decoder has capacity; < 0.711 it does NOT clear DF's own action head's
|
| 28 |
+
# best number (FINDING H: threading single 0.569 / K32-mean 0.711, mug 0.283 / 0.474)
|
| 29 |
+
# and I will report plainly that the decoder is not the fix.
|
| 30 |
+
# BAR 2 df_idm_probe.py's `bar2.pass_`: the IDM decoding DF's OWN PLANNED latents must beat
|
| 31 |
+
# DF's own action head at its BEST lag, on the same held-out states, same K-sample mean.
|
| 32 |
+
# This is the decisive offline test and it is what selects WHICH decoder shape goes into
|
| 33 |
+
# the env -- never a success rate, never an eval seed.
|
| 34 |
+
# PESSIMISTIC PRIOR REGISTERED IN ADVANCE: df_G0's health.jsonl at step 40000 gives
|
| 35 |
+
# fid/obs_ratio_h1 = 1.485 (threading) / 1.606 (mug) -- the ONE-STEP planned latent delta
|
| 36 |
+
# is 1.5-1.6x WORSE than the stay-put predictor. So I expect mode `k1` to be the worst
|
| 37 |
+
# of the three shapes and quite possibly at or below DF's own head. The horizons where
|
| 38 |
+
# DF's observation channel is at or below 1.0 are h >= 8, which is why `k8` (one planned
|
| 39 |
+
# waypoint -> the whole 8-action chunk) and `kfull` exist and are the arms with a
|
| 40 |
+
# mechanism behind them.
|
| 41 |
+
# BAR 3 the success contract, enforced by df_idm_eval_payload.sh: canonical region, horizon
|
| 42 |
+
# 400, 50 episodes/cell, 3 policy x 3 eval seeds, and NO number is reportable without
|
| 43 |
+
# random-of-N over the identical pool, the no-selection floor (n_plans=1), per-cell score
|
| 44 |
+
# spread / ties-at-max / selection gap, and the BC-actor floor already on record
|
| 45 |
+
# (status/nb/df_table.txt:9,90 -- threading 0.000, mug 0.027).
|
| 46 |
+
# ============================================================================================
|
| 47 |
+
#
|
| 48 |
+
# RESUMABLE: every variant is skipped if its idm.json exists; training itself resumes from
|
| 49 |
+
# idm_last.pt. The probe is skipped if its JSON exists.
|
| 50 |
+
#
|
| 51 |
+
# usage: df_idm_train_payload.sh <task>
|
| 52 |
+
set -uo pipefail
|
| 53 |
+
ROOT=/proj/dmfexp/zwhong/rsm_rise
|
| 54 |
+
TASK=${1:?usage: df_idm_train_payload.sh <task>}
|
| 55 |
+
PY=$ROOT/venv_df/bin/python
|
| 56 |
+
CACHE=$ROOT/cache/$TASK
|
| 57 |
+
DFCKPT=${RR_DF_IDM_WM:-$ROOT/runs/$TASK/wm/df_G0/ckpt_s40000.pt}
|
| 58 |
+
OUTROOT=$ROOT/runs/$TASK/idm
|
| 59 |
+
STAT=$ROOT/status/nb/df_idm
|
| 60 |
+
STEPS=${RR_IDM_STEPS:-30000}
|
| 61 |
+
mkdir -p "$OUTROOT" "$STAT"
|
| 62 |
+
[ -d "$CACHE" ] || { echo "[df_idm_train] MISSING cache $CACHE"; exit 2; }
|
| 63 |
+
[ -f "$DFCKPT" ] || { echo "[df_idm_train] MISSING DF world model $DFCKPT"; exit 2; }
|
| 64 |
+
# df_G1's 4:2:1 channel share measured WORSE (run 35) and must not be used; df_G0 is the arm.
|
| 65 |
+
case "$DFCKPT" in *df_G1*) echo "[df_idm_train] REFUSING df_G1 -- measured worse (run 35)"; exit 2;; esac
|
| 66 |
+
|
| 67 |
+
echo "[df_idm_train] $(date -u) host=$(hostname) gpu=${CUDA_VISIBLE_DEVICES:-?} task=$TASK wm=$DFCKPT"
|
| 68 |
+
cd $ROOT/code/df_rise || exit 2
|
| 69 |
+
export PYTHONPATH=$ROOT/code/df_rise:${PYTHONPATH:-}
|
| 70 |
+
|
| 71 |
+
rc_all=0
|
| 72 |
+
ARGS=()
|
| 73 |
+
for MODE in k8 kfull k1; do # k8/kfull first: the shapes with a mechanism behind them
|
| 74 |
+
for NR in 1.0 0.0; do
|
| 75 |
+
TAG="${MODE}_n$(echo $NR | tr -d '.')"
|
| 76 |
+
OD=$OUTROOT/$TAG
|
| 77 |
+
ARGS+=("--idm-dir" "$OD")
|
| 78 |
+
if [ -s "$OD/idm.json" ]; then echo "[df_idm_train] $TAG done -- skip"; continue; fi
|
| 79 |
+
echo "[df_idm_train] --- training $TAG (mode=$MODE noise_rel=$NR steps=$STEPS) $(date -u)"
|
| 80 |
+
$PY df_idm.py --cache "$CACHE" --out "$OD" --mode "$MODE" --noise-rel "$NR" \
|
| 81 |
+
--steps "$STEPS" --split-seed 0 --resume 1 || { echo "[df_idm_train] FAILED $TAG"; rc_all=1; }
|
| 82 |
+
done
|
| 83 |
+
done
|
| 84 |
+
|
| 85 |
+
PROBE=$STAT/${TASK}_probe.json
|
| 86 |
+
if [ -s "$PROBE" ]; then
|
| 87 |
+
echo "[df_idm_train] probe $PROBE exists -- skip"
|
| 88 |
+
else
|
| 89 |
+
echo "[df_idm_train] --- probe (BAR 2) $(date -u)"
|
| 90 |
+
$PY df_idm_probe.py --ckpt "$DFCKPT" --cache "$CACHE" "${ARGS[@]}" \
|
| 91 |
+
--out "$PROBE" --best-out $STAT/${TASK}_best.txt \
|
| 92 |
+
--n-states ${RR_IDM_PROBE_STATES:-64} --kmax 32 --execute-frames 8 \
|
| 93 |
+
--guidance 0.0 --guidance 5.0 --gamma 0.95 || { echo "[df_idm_train] PROBE FAILED"; rc_all=1; }
|
| 94 |
+
fi
|
| 95 |
+
echo "[df_idm_train] done rc=$rc_all $(date -u); best=$(cat $STAT/${TASK}_best.txt 2>/dev/null)"
|
| 96 |
+
exit $rc_all
|
rsm_rise/scripts/nb/df_idmcap_cells/c000_mug_N512_ex8_idm.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idmcap_gen_queue.sh -- gen_q#274 run 40 (planner capacity)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
export RR_DF_IDM_TAG=k8_n10
|
| 5 |
+
export RR_DF_EXECUTE=8
|
| 6 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 512 0 0 idm argmax 50
|
rsm_rise/scripts/nb/df_idmcap_cells/c001_mug_N512_ex8_rnd.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idmcap_gen_queue.sh -- gen_q#274 run 40 (planner capacity)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
export RR_DF_IDM_TAG=k8_n10
|
| 5 |
+
export RR_DF_EXECUTE=8
|
| 6 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 512 0 0 idm random 50
|
rsm_rise/scripts/nb/df_idmcap_cells/c002_thr_N512_ex8_idm.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idmcap_gen_queue.sh -- gen_q#274 run 40 (planner capacity)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
export RR_DF_IDM_TAG=k8_n10
|
| 5 |
+
export RR_DF_EXECUTE=8
|
| 6 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 512 0 0 idm argmax 50
|
rsm_rise/scripts/nb/df_idmcap_cells/c003_thr_N512_ex8_rnd.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idmcap_gen_queue.sh -- gen_q#274 run 40 (planner capacity)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
export RR_DF_IDM_TAG=k8_n10
|
| 5 |
+
export RR_DF_EXECUTE=8
|
| 6 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 512 0 0 idm random 50
|
rsm_rise/scripts/nb/df_idmcap_cells/c004_mug_N1024_ex8_idm.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idmcap_gen_queue.sh -- gen_q#274 run 40 (planner capacity)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
export RR_DF_IDM_TAG=k8_n10
|
| 5 |
+
export RR_DF_EXECUTE=8
|
| 6 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 1024 0 0 idm argmax 50
|
rsm_rise/scripts/nb/df_idmcap_cells/c005_mug_N1024_ex8_rnd.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idmcap_gen_queue.sh -- gen_q#274 run 40 (planner capacity)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
export RR_DF_IDM_TAG=k8_n10
|
| 5 |
+
export RR_DF_EXECUTE=8
|
| 6 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh mug_expert_suboptimal 0.95 0.0 1024 0 0 idm random 50
|
rsm_rise/scripts/nb/df_idmcap_cells/c006_thr_N1024_ex8_idm.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# generated by scripts/nb/df_idmcap_gen_queue.sh -- gen_q#274 run 40 (planner capacity)
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
export RR_DF_IDM_TAG=k8_n10
|
| 5 |
+
export RR_DF_EXECUTE=8
|
| 6 |
+
exec bash /proj/dmfexp/zwhong/rsm_rise/scripts/nb/df_idm_eval_payload.sh threading_expert_play 0.95 0.0 1024 0 0 idm argmax 50
|