#!/usr/bin/env bash # Recreate .venv if a box restart/restore lost it (it is gitignored). CPU torch + numpy + pytest. # Measured on 2026-09-30: torch 2.14.1+cpu reproduces the committed val2048 of K128 1104k exactly (0.3954/0.4653). set -eu cd /workspace/exports/atom-ai if .venv/bin/python -c "import torch, numpy" 2>/dev/null; then echo "venv ok: $(.venv/bin/python -c 'import torch;print(torch.__version__)')"; exit 0; fi python3 -m venv .venv .venv/bin/pip install -q --index-url https://download.pytorch.org/whl/cpu torch .venv/bin/pip install -q numpy pytest .venv/bin/python -c "import torch;print('venv rebuilt: torch', torch.__version__)"