adapt for ModelHub agent platform
This commit is contained in:
15
modelhub_submmit_api/setup.sh
Normal file
15
modelhub_submmit_api/setup.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$SCRIPT_DIR"
|
||||
echo "=== ModelHub Submmit Setup ==="
|
||||
python3 -c 'import sys; sys.exit(0 if sys.version_info >= (3,9) else 1)' || { echo "ERROR: Python 3.9+ required"; exit 1; }
|
||||
mkdir -p runs ledger outcomes history daily_runs poll_runs logs
|
||||
python3 -c '
|
||||
import json,argparse,sys,time,pathlib,typing,concurrent.futures,threading,http.client,urllib,socket,dataclasses,collections,datetime,os,re
|
||||
print("Python stdlib OK (zero external deps)")
|
||||
'
|
||||
wc -l templates/public_submit/adapt_task_templates.jsonl
|
||||
grep -q 'XC_TOKEN\s*=\s*[a-z0-9]\{32\}' KEY.md 2>/dev/null && echo "XC_TOKEN found" || echo "WARNING: Set XC_TOKEN in KEY.md"
|
||||
echo "Setup done."
|
||||
echo "Test: ./run_poll.sh --gpu k100 --max-scan-models 3 --max-cycles 2 --dry-run"
|
||||
Reference in New Issue
Block a user