| """Vast.ai train submission: build the instance payload + submit a run. | |
| The worker stack/env is substrate-neutral, so the per-run worker env and dependency | |
| resolution are shared with RunPod (``providers/runpod/train.py``); this module owns the | |
| Vast-specific submission entrypoint and the instance payload shape. Provisioning, | |
| polling, and teardown live in ``providers/vast/jobs.py``. | |
| """ | |
| from __future__ import annotations | |
| # Shared, substrate-neutral worker stack (single source of truth on RunPod's module). | |
| from flash.providers.runpod.train import ( | |
| WORKER_DEPS, | |
| WORKER_SYSTEM_DEPS, | |
| build_worker_env, | |
| resolve_worker_deps, | |
| ) | |
| from flash.providers.vast.jobs import build_payload, submit_run_vast | |
| __all__ = [ | |
| "WORKER_DEPS", | |
| "WORKER_SYSTEM_DEPS", | |
| "build_payload", | |
| "build_worker_env", | |
| "resolve_worker_deps", | |
| "submit_run_vast", | |
| ] | |