Skip to content

Job Model

The envelope

Every job, regardless of workload type, is the same envelope:

  • image — OCI image by digest (arch-verified by the daemon). Minimal but complete: everything the entrypoint needs except model weights.
  • command / args — entrypoint and parameters.
  • model (optional) — {repo, revision}. The daemon resolves it against the content index before start: hit → read-only bind-mount at /models/<repo>; miss → controller-orchestrated fetch (fabric peer first, else designated HF downloader, then P2P). Jobs never download weights themselves — the scheduler prices locality, the daemon stages bytes.
  • artifacts — declared paths under /out that the daemon collects, checksums, and ships. Undeclared files are ignored.
  • resources, constraints (expression string — see Fleet Query), shared_chip_ok (default false — see Resource Model), priority, timeout_s, preemptible.

Example — a kernel benchmark:

{
  "type": "kernel-bench",
  "image": "ghcr.io/pool/triton-bench:arm64@sha256:…",
  "command": ["python", "/bench/matmul_sweep.py"],
  "args": {"m": [4096], "k": [7168], "dtypes": ["fp16"]},
  "artifacts": ["/out/results.json"],
  "resources": {"nodes": 1, "memory_gb": 100},
  "constraints": "gpu.freq_recorded_mhz > 2200",
  "timeout_s": 1800, "priority": 5
}

resources.nodes is an integer spark count — the allocation unit is always a whole Spark, never a fraction. resources.memory_gb is a floor: the node must have at least that much allocatable unified memory (the fleet is heterogeneous after minimization; see Fleet Query). It is not a fractional request — a 1-spark job gets the whole chip.

Execution environment contract

Stable across pool versions. The daemon guarantees:

  • /models/<repo> — read-only model mount (if declared)
  • /out — writable; collected as artifacts
  • /scratch — writable temp; never collected
  • stdout/stderr captured to the run log
  • GPU devices assigned per the run's resource grant

Workload types

The pool cannot make any individual Spark faster. What it buys is throughput: many agents time-sharing the fleet.

  • serve-profile — launch a serving recipe, run the bench harness, return throughput/latency/KV numbers. The flagship workload.
  • kernel-bench — run a GPU kernel microbenchmark (Triton, CUDA, CUTLASS) against given inputs, return timings. Short, single-node, no model weights needed — the ideal backfill for gang-scheduling drain windows.
  • codepath-test — exercise specific vLLM/SGLang code paths (an attention backend, a new quant kernel, a scheduler change) with synthetic inputs; return correctness + timing.
  • debug-profile — run vLLM/SGLang with profiler flags; return nsys/ncu traces and logs as artifacts.
  • eval — accuracy evals (lm-eval-harness style) against a served or offline model; return scores.
  • burn-in — soak/stress test with a duration instead of a completion condition (KV-cache saturation, LMCache offload cycling, sustained high-concurrency load). Streams periodic metric snapshots; the digest carries the full time series plus time-to-failure on fault. Preemptible by higher-priority work with the partial series retained.
  • data — operator-initiated data movement (prefetch/replicate weights). System jobs, not client jobs; lowest priority, never during profiling=true runs.

The scheduler treats all types uniformly; they differ only in setup cost, runtime, and what the digest carries.

Composite jobs: steps, pinning, dependencies

Steps. A job may declare an ordered list of steps, each a full workload (image + command + artifacts). The daemon runs them sequentially on the same node with full teardown between steps (fresh container per step), and the digest carries per-step results. This is the rigorous A/B: recipe A runs, tears down, recipe B runs, tears down, both results in one digest — no gap for another job to change thermal state in between. Steps may repeat entries ([A, B, B, A]) to control for order effects.

Pinning. A job may pin execution: pin: {node: "Space Bunny"} (donor-chosen name over the stable node ID) or pin: {job: "<id>", scope: "same-node" | "same-group" | "same-site"}. Pinning is a hard scheduling constraint — a job pinned to a busy node simply waits.

Dependencies. depends_on: ["<job-id>"] — the job never schedules until its dependencies complete. Combined with pinning: "run on the same machine as job X, after X finishes." If a dependency fails, the dependent moves to blocked and the client is notified (retry the dependency, or cancel).

Measurement split

  • Pool telemetry (always on, uniform): wall time, peak host/GPU memory, sampled GPU clocks + thermals during the run, exit code. Every digest carries these; they make cross-job comparisons sane.
  • Workload harnesses (pool-provided, opt-in per type): e.g. a standard serve-profile bench runner so recipe numbers are comparable across submissions.
  • Agent metrics (opaque, faithful): the job writes whatever it wants as JSON to declared artifact paths — perplexity, KL-divergence, acceptance rates. The pool parses declared JSON artifacts and merges keys into the digest under a custom.* namespace without interpreting them. Domain correctness is the agent's job; faithful transport is the pool's.

The vLLM patching ladder

What people actually change when patching vLLM for a model: new model-arch support (MLA/MoE/MTP wiring), quant GEMM kernels (the big one on Spark — NVFP4/MXFP4/FP8 reaching usable TFLOPS on SM121a), attention backends (FA3/flashinfer on SM120/121), KV-cache/prefix-caching behavior, MTP acceptance tuning, scheduling/chunked-prefill params, torch.compile/CUDA graphs, and accuracy validation of the quant. The workload types map onto the real workflow: kernel-bench the new GEMM in isolation → codepath-test the attention backend → serve-profile the patched image → eval for KL/perplexity.