19 lines
1.1 KiB
Bash
Executable file
19 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
hf jobs run --detach --flavor l4x1 --timeout 2h \
|
|
--secrets HF_TOKEN \
|
|
--env HF_MODEL_REPO=coyotte508/powergrid-ai-germany-v1 \
|
|
--env RUN_NAME=baseline-v2 --env GAMES=600 --env BC_EPOCHS=12 \
|
|
--env RL_UPDATES=16 --env ENVS=64 --env WORKERS=4 --env BATCH_SIZE=1024 --env ROLLOUT_SAMPLES=8000 \
|
|
--label project=powergrid-ai --label stage=baseline-v2 \
|
|
-- pytorch/pytorch:2.6.0-cuda12.4-cudnn9-runtime bash -lc '
|
|
set -euo pipefail
|
|
python -m pip install --quiet huggingface_hub onnx
|
|
mkdir -p /workspace
|
|
python -c "import urllib.request,tarfile; urllib.request.urlretrieve(\"https://nodejs.org/dist/v24.14.0/node-v24.14.0-linux-x64.tar.xz\",\"/tmp/node.tar.xz\");tarfile.open(\"/tmp/node.tar.xz\").extractall(\"/opt\")"
|
|
export PATH=/opt/node-v24.14.0-linux-x64/bin:$PATH
|
|
python -c "from huggingface_hub import hf_hub_download;import tarfile;p=hf_hub_download(\"coyotte508/powergrid-ai-training-v1\",\"source-v4.tgz\",repo_type=\"dataset\");tarfile.open(p).extractall(\"/workspace\")"
|
|
cd /workspace
|
|
node --test ai/test.cjs
|
|
python -u ai/train.py
|
|
'
|