{ "image": "pytorch/pytorch:2.4.1-cuda12.1-cudnn9-runtime", "command": [ "python", "-c", "import hashlib,json,os,sys,time,urllib.request\nU=\"https://symbioza.dev/specs/v1/train.py.txt\"\nH=\"35291dc6507623970d38f0abe9f9a2a02564108725a8acea4911e92442783d66\"\nO=os.environ.get(\"ARTIFACTS_DIR\",\"/workspace/artifacts\")\nos.makedirs(O,exist_ok=True)\nfor i in range(3):\n time.sleep(10*i)\n try:\n b=urllib.request.urlopen(U,timeout=60).read()\n e=None if hashlib.sha256(b).hexdigest()==H else \"sha256 mismatch\"\n except Exception as x:\n e=f\"{type(x).__name__}: {x}\"\n if not e:\n break\nif e:\n j=json.dumps({\"ok\":False,\"stage\":\"download job script\",\"url\":U,\"error\":e,\"exit_code\":2}).encode()\n open(O+\"/error.json\",\"wb\").write(j)\n open(O+\"/SHA256SUMS\",\"w\").write(hashlib.sha256(j).hexdigest()+\" error.json\\n\")\n print(\"job script download failed:\",U,e,flush=True)\n sys.exit(2)\nopen(\"/tmp/job.py\",\"wb\").write(b)\nos.execv(sys.executable,[sys.executable,\"/tmp/job.py\"])\n" ], "gpu": {}, "budgetUsd": 1 }