#!/usr/bin/env bash # sims_pre.sh: speed of the legal-input V46 net inside gmcts3 (random weights, TensorRT fp16 engine for B 256 / K 128): engine check vs torch # (logits, top-1, value) + sims/s of a 1 s search from 40 positions (speed_probe part B). Logs: logs/v46rand_trt.log, logs/v46rand_speed.log cd /marimo/chess PY=/tmp/uv-venv/bin/python mkdir -p dag6 [ -f dag6/dag6_roots.json ] || $PY -c " from huggingface_hub import hf_hub_download as d open('/marimo/chess/dag6/dag6_roots.json', 'wb').write(open(d('Asilarkness/chess-nets', 'code/dag6_roots.json', local_dir='/marimo/chess/hf', force_download=True), 'rb').read())" $PY -c " import sys, torch sys.path.insert(0, 'code') import archzoo torch.manual_seed(0) torch.save({'ARCH': 'V46', 'state': archzoo.make('V46').state_dict()}, 'ckpt_v46rand.pt')" (cd code && GM3_K=128 timeout 900 $PY -u trtnet.py ../ckpt_v46rand.pt 256) > logs/v46rand_trt.log 2>&1 GM3_K=128 timeout 900 $PY -u code/speed_probe.py v46rand B > logs/v46rand_speed.log 2>&1 echo SIMS_PRE_DONE >> logs/v46rand_speed.log