Launch ordered-opponent teacher distillation on separate GPU pools

This commit is contained in:
coyotte508 2026-09-30 20:09:34 +02:00
commit 41843e5652
3 changed files with 67 additions and 4 deletions

View file

@ -106,7 +106,9 @@
"multiplayer-p5-economic-6p": "6abd4db4404719ba37613fd7",
"multiplayer-p5-a260-3p": "6abd4dce404719ba37613fdc",
"multiplayer-p5-search-probe-6p": "6abd4dcffbc85ba68235c3ae",
"multiplayer-distillation-v1-hard-canceled-queued": "6abd4d17fbc85ba68235c391"
"multiplayer-distillation-v1-hard-canceled-queued": "6abd4d17fbc85ba68235c391",
"multiplayer-distillation-v2-soft": "6abd5021fbc85ba68235c463",
"multiplayer-distillation-v2-hard": "6abd5022404719ba37614022"
},
"cancelled_while_queued": [
"6abd128efbc85ba68235b1a6",
@ -1244,6 +1246,41 @@
"hard": 1.3058999043965747,
"soft": 1.3987828060399936
}
},
"parity": {
"positions": 2553,
"by_player_count": {
"2": 349,
"3": 427,
"4": 527,
"5": 609,
"6": 641
},
"inactive_values_zero": true,
"feature_revision": "4.0-multiplayer",
"model_sha256": "6892efae963a1a0611b485c7afd26b3e965c5416fc2b9e6724691ebf4bd41226",
"max_logit_error": 0.0,
"max_value_error": 5.960464477539063e-08,
"all_actions_match": true,
"specialist_route_counts": {}
}
},
"multiplayer_distillation_v2": {
"status": "submitted",
"architecture": "multiplayer_ordered",
"source_archive": "strong-source-v20.tgz",
"source_revision": "c259cc1664fe39565bdbdd5d64789c9825a62692",
"dataset_revision": "082ca1456736940ee32c96db3ad1bc4e4d0b206b",
"jobs": {
"soft": {
"id": "6abd5021fbc85ba68235c463",
"flavor": "l4x1"
},
"hard": {
"id": "6abd5022404719ba37614022",
"flavor": "h200"
}
},
"supersedes": "Both v1 runs were verified canceled while queued; no v1 teacher model was trained."
}
}

View file

@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
revision=${1:?Pin completed dataset revision}
mode=${2:-soft}
[[ "$mode" == hard || "$mode" == soft ]]
hf jobs run --detach --flavor "${HF_FLAVOR:-a10g-large}" --timeout 3h \
--secrets HF_TOKEN \
--env HF_DATA_REPO=coyotte508/powergrid-ai-training-v1 \
--env HF_MODEL_REPO=coyotte508/powergrid-ai-germany-v1 \
--env RUN_NAME="multiplayer-distillation-v2-$mode" --env TARGET_MODE="$mode" --env TRAIN_SEED=622 --env ARCHITECTURE=multiplayer_ordered --env DATA_REVISION="$revision" --env EPOCHS=20 --env DATA_VERSION=multiplayer-teacher-v1 --env SHARDS=5 --env DISAGREEMENT_WEIGHT=2 \
--label project=powergrid-ai --label stage="multiplayer-distillation-v2-$mode" \
-- pytorch/pytorch:2.6.0-cuda12.4-cudnn9-runtime bash -lc '
set -euo pipefail
python -m pip install --quiet --timeout 120 --retries 5 huggingface_hub==2.0.0 onnx==1.20.1 onnxruntime==1.30.0
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\",\"strong-source-v20.tgz\",repo_type=\"dataset\",revision=\"c259cc1664fe39565bdbdd5d64789c9825a62692\");tarfile.open(p).extractall(\"/workspace\")"
cd /workspace
node --test ai/test.cjs ai/strong/test.cjs
python ai/strong/test_teacher_contract.py
python ai/strong/test_model_v4.py
python -u ai/strong/distill.py
'

View file

@ -1,5 +1,5 @@
{
"status": "network restored; soft and hard multiplayer distillation submitted to HF",
"status": "ordered-opponent architecture verified; v2 teacher distillation submitted on L4/H200",
"feature_revision": "4.0-multiplayer",
"scope": {
"map": "Germany",
@ -25,7 +25,9 @@
"action": 98,
"player_slots": 6,
"player_width": 74,
"value": "six slots with inactive players masked to zero"
"value": "six slots with inactive players masked to zero",
"architecture": "multiplayer_ordered",
"parameters": 983682
},
"verified": {
"complete_games": 20,
@ -47,7 +49,7 @@
"teacher_truncated_rollouts": 0
},
"pending": [
"Complete HF pipeline run and inspect count-specific learning stability",
"Collect original pooled-architecture pipeline completion as a development baseline",
"Collect and validate all 1200 HF teacher games; pin immutable dataset revision",
"Run prepared multiplayer distillation with whole-game stratified validation on HF",
"Refine distilled policy against strong opponents and self-play on HF",