File size: 2,061 Bytes
b4396f0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# E1 remaining legs after arm-Q training (coordinator 8, 2026-11-18).
# Waits for the training PID, then runs sequentially, logging here:
#   routing 5k/10k (batch 32) -> tokens 5k/10k (batch 32)
#   -> RSA per milestone (CPU) -> 70-ep probe -> composition Z.
# Stops after composition Z: demos + variant F need the scripted-oracle
# demo builder, which the coordinator writes while this chain runs.
# Launched detached (setsid nohup) so it survives coordinator sessions.
set -u
EXP=$HOME/sera_v4_experiments
LOG=$EXP/chain_e1.log
exec >> "$LOG" 2>&1
echo "CHAIN_E1_START $(date -Is)"
while ps -p 846402 > /dev/null 2>&1; do sleep 30; done
echo "TRAINING_DONE $(date -Is)"
cd "$HOME/lerobot" || exit 1
export MUJOCO_GL=egl PYTHONUNBUFFERED=1
for s in 005000 010000; do
  n=$((10#$s))
  .venv/bin/python "$EXP/tools/measure_routing.py" \
    --ckpt "$EXP/sera-v4-q-quest/checkpoints/$s/pretrained_model" \
    --out "$EXP/measurement/results/q-quest-$n.json" --batch 32
  echo "ROUTING_$n DONE $(date -Is)"
done
for s in 005000 010000; do
  n=$((10#$s))
  .venv/bin/python "$EXP/tools/measure_tokens.py" \
    --ckpt "$EXP/sera-v4-q-quest/checkpoints/$s/pretrained_model" \
    --out "$EXP/measurement/results/q-quest-tokens-$n.json" --batch 32
  echo "TOKENS_$n DONE $(date -Is)"
done
for n in 2000 5000 10000; do
  .venv/bin/python "$EXP/tools/measure_rsa.py" \
    --tokens "$EXP/measurement/results/q-quest-tokens-$n.json" \
    --out "$EXP/measurement/results/q-quest-rsa-$n.json"
  echo "RSA_$n DONE $(date -Is)"
done
.venv/bin/python "$EXP/tools/eval_v4.py" \
  --ckpt "$EXP/sera-v4-q-quest/checkpoints/010000/pretrained_model" \
  --arm q-quest --out "$EXP/quest_probe/results/q-quest.jsonl" --seed 0
echo "PROBE DONE $(date -Is)"
.venv/bin/python "$EXP/tools/rollout_skill_v4.py" \
  --ckpt "$EXP/sera-v4-q-quest/checkpoints/010000/pretrained_model" \
  --model v3 --tasks 1,3,4,6,7,8 --eps 0,1,2,3,4,5,6,7,8,9 \
  --out "$EXP/quest_probe/results/q-quest-comp-z.jsonl" --seed 0
echo "COMP_Z DONE $(date -Is)"
echo "CHAIN_E1_END $(date -Is)"