LLM inference and GPU workloads
LLM inference and GPU execution are separate capabilities:
- LLM inference sends a request to a model already served by OmniCloud.
- GPU execution starts your own workload component with requested GPU capacity.
The full-pipeline imaging CONOPS combines both with imaging and stored results as an advanced simulator experiment.
Call an LLM from a workload
Use the workload’s injected machine identity to authenticate, list models with
GET /vllm/v1/models, and pass an ID from the catalog to
POST /vllm/v1/chat/completions. See the LLM workload examples
for a complete request. Some models accept images alongside text.
Request GPU capacity
The runnable candidate in docs/examples/gpu-workload.yaml requests one GPU
access token and verifies that PyTorch can see a CUDA device:
spec:
components:
- name: gpu-check
mode: job
image: registry.dphi.space/base/pytorch:25.08-py3
gpuRequest: true
command:
- python
- -c
- |
import torch
assert torch.cuda.is_available(), "CUDA is unavailable"
print(f"CUDA device: {torch.cuda.get_device_name(0)}")
Submit it from the repository root in an interactive omnicloud-cli session:
dphi> run create docs/examples/gpu-workload.yaml --idempotency-key gpu-check-001
dphi> run get YOUR_RUN_ID
dphi> run wait YOUR_RUN_ID --timeout 900
dphi> run logs YOUR_RUN_ID --component-name gpu-check
A successful log contains CUDA device: followed by the accelerator name. The
Run must reach Succeeded; request acceptance alone does not prove that GPU
capacity was allocated or CUDA was available.
dphi> run logs 01K9A000000000000000000001 --component-name gpu-check
2026-11-05T10:00:00Z gpu-check: CUDA device: Example accelerator
gpuRequest: true requests one shared GPU access token. It does not promise an
exclusive physical GPU. A valid run can remain Pending with
GPUUnavailable. Continue observing within your operational deadline or
cancel the run; resubmitting with another idempotency key does not create
capacity:
dphi> run get 01K9A000000000000000000001
╭─ Run 01K9A000000000000000000001: Pending ─╮
│ Run ID 01K9A000000000000000000001 │
│ Source Ad hoc │
│ Accepted at 2026-11-04T10:00:00Z │
╰───────────────────────────────────────────╯
Timeline
┏━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┓
┃ Event ┃ At ┃
┡━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━┩
│ Accepted │ 2026-11-04T10:00:00Z │
└──────────┴──────────────────────┘
┏━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Component ┃ Phase ┃ Diagnostics ┃
┡━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ gpu-check │ Pending │ Reason: GPUUnavailable │
│ │ │ Message: GPU capacity is unavailable. │
│ │ │ Remediation: Wait for capacity or cancel this run. │
└───────────┴─────────┴────────────────────────────────────────────────────┘
Conditions: none
dphi> run cancel YOUR_RUN_ID
dphi> run wait YOUR_RUN_ID
Benchmark compute on Thor
Measure host elapsed time inside the workload with
a monotonic timer such as Python's time.perf_counter(). Start just before the
compute you want to measure and stop when that work finishes. For asynchronous
CUDA work, synchronize the device before starting the timer and again before
stopping it so the measurement includes GPU completion.
Report what the timed interval includes, such as inference for one batch or preprocessing plus inference. Timing from CLI submission through completion also includes scheduling and can include communication delays. Use that interval when measuring end-to-end turnaround.