19 lines
1.1 KiB
Bash
19 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
hf jobs run --detach --flavor cpu-performance --timeout 2h \
|
|
--secrets HF_TOKEN \
|
|
--env HF_MODEL_REPO=coyotte508/powergrid-ai-germany-v1 \
|
|
--env RUN_NAME=search-reference-v1 --env UPDATES=2 --env EVAL_EVERY=10 \
|
|
--env ENVS=32 --env WORKERS=4 --env BATCH_SIZE=1024 --env ROLLOUT_SAMPLES=8000 \
|
|
--label project=powergrid-ai --label stage=search-reference-v1 \
|
|
-- 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\",\"search-source-v1.tgz\",repo_type=\"dataset\");tarfile.open(p).extractall(\"/workspace\")"
|
|
cd /workspace
|
|
node --test ai/test.cjs ai/strong/test.cjs
|
|
python -u ai/strong/search-benchmark.py
|
|
'
|