Infatoshi's picture
Add files using upload-large-folder tool
060d3af verified
Raw History Blame Contribute Delete
952 Bytes
#!/bin/bash
# lane/invact step 4, the final table: the DAgger heads (items known), greedy and sampled, 16 envs a scenario
cd $HOME/dev/mcsr-speedrun
while ! grep -q "QUEUE2 DONE" data/invhead/queue2.log; do sleep 10; done
export NETHERITE=$HOME/dev/nv2-lanes/invact CUDA_VISIBLE_DEVICES=2
P="taskset -c 32-63,96-127 .venv/bin/python scripts/invact_eval.py --n 16 --scen table,pick,furnace,loot --drivers head"
I=data/invhead
mkdir -p $I/eval3
: > $I/queue3.jobs
for h in dagger-vpt dagger-scratch dagger-vpt-nofurn; do
echo "$P --head $I/$h.pt --greedy --out $I/eval3/$h-greedy.json > $I/eval3/$h-greedy.log 2>&1" >> $I/queue3.jobs
echo "$P --head $I/$h.pt --out $I/eval3/$h-sampled.json > $I/eval3/$h-sampled.log 2>&1" >> $I/queue3.jobs
done
echo "$P --head $I/vpt-ev.pt --no-items --greedy --out $I/eval3/vptev-greedy.json > $I/eval3/vptev-greedy.log 2>&1" >> $I/queue3.jobs
xargs -P 2 -I{} -d '\n' bash -c '{}' < $I/queue3.jobs
echo QUEUE3 DONE