/orchestra:plan-hosted-runfrom orchestra
Estimates cost and wall-clock time for hosted ML jobs (fine-tuning, RL, batch inference) and routes to the best provider. Never provisions or spends.
Ships in orchestra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
One skill for the single question "I want to run a hosted job — where, how long, and how much?" It has two halves that usually run together:
references/cost-estimation.md.references/providers.md.This skill estimates and recommends. It never provisions, rents, or spends — those are explicit, separate user actions. Prices and features drift — verify on the provider's live pricing page before any spend.
Optimize the recommendation for reaching the workload objective, not for the
lowest sticker price. Present the recommended outcome-sized plan first, then a
cheaper diagnostic and a faster or higher-confidence option when useful. State
what each buys in capability, confidence, and time-to-answer; follow
../understudy/reference.md → Outcome-first spend
posture.
../prepare-verifier-handoff/SKILL.md).Not for: choosing a model
(../compare-model-sweep/SKILL.md), the
authenticated Orchestra gateway
(../use-understudy-gateway/SKILL.md),
or running the job itself.
Ask only for what the job type needs:
~/.understudy/profile.json often has the local
machine.Two engines, picked by job type. Full constants, benchmarks, and cited prices
live in references/cost-estimation.md.
6 × N × D (forward+backward; the standard 6ND approximation —
the reference cites the origin). LoRA reduces the trainable params but the
forward/backward still flows through the full model, so use full N for
wall-clock.FLOPs / (GPU_peak_FLOPS × MFU). Use realized MFU ~0.3–0.5,
not peak. State the GPU's BF16 dense FLOPS from the reference.mlx_lm.lora (or the probe) and wall-clock ≈ D / throughput.wall-clock_hours × $/GPU-hour (cloud) or $0 (local,
already-owned).num_prompts × rollouts × avg_output_tokens
(+ input tokens if a per-token rate charges for them).total_tokens × $/token (from a provider price page).
Fast to start, no idle cost, but per-token adds up at scale.(total_tokens / sustained_throughput) × $/GPU-hour. Wins above a crossover
volume because you amortize a flat hourly rate. The reference shows how to
find the crossover.Cache tokens are their own line item. Multi-turn/agentic workloads re-send
the growing context every turn, and with provider prompt caching most of those
tokens bill at cache-read/cache-write rates, not the base input rate. On
long-context workloads, cache-read tokens can exceed fresh input tokens by more
than 10× — an estimate priced entirely at the base input rate is wrong in
either direction. Pull the cache fields from measured usage
(cache_read/cache_creation or cached_tokens) and price each class at the
provider's current cached rates, cited with source + date like every other
dollar figure. Measured on an internal synthetic workload, 2026-05-22
(cache-read tokens >10× fresh input tokens on a long-context agentic loop).
To improve a workload's hit rate rather than just price it, see
optimize-workload/references/prompt-cache-optimization.md.
Present local vs cloud side by side: wall-clock and dollars for each, with the band and the dominant assumption. Recommend the route with the best expected progress under the real time, quality, and budget constraints—not local merely because its marginal dollar cost is zero. Cloud is often the correct answer when local wall-clock, capacity, or iteration speed blocks the objective (typical for RL training and large-scale rollouts — the Orchestra local-SFT / cloud-RL split). When the answer is cloud, continue to the routing below.
Providers overlap a lot (most serve open weights over an OpenAI-compatible API
at similar prices); the decision is usually driven by one axis — managed-RFT vs
raw clusters, cheap per-token rollouts vs reserved throughput, or "I already
have quota/credits here." Match the job shape to the lead provider;
references/providers.md has the full comparison.
| Job shape | Lead choice | Why (1-liner) | Alt |
|---|---|---|---|
| Generate RL trajectories / cheap batch rollouts of open-weight frontier models | Together Batch or Fireworks RFT | published batch/RFT paths and rate-limit posture | Lilac only after concurrency is confirmed |
| RL training (GRPO, multi-turn/agentic, reusable env) | Prime Intellect | verifiers env + prime-rl + Environments Hub + hosted Lab; scales 1→1000s GPUs | Fireworks if you want it fully managed |
| Managed RFT (reward fn → trained policy → served), least friction | Fireworks | self-serve GRPO RFT + reward-kit + one-click train→serve | — |
| SFT / LoRA / DPO then serve | Fireworks or Together | both do LoRA+full+DPO at ~$0.50/1M tok (≤16B), serve on same platform | — |
| Raw GPU clusters / run your own training/rollout engine at scale | Together (InfiniBand, up to 4,000+ GPUs) | bare-metal scale under one vendor | Prime Intellect marketplace (spot), or Azure/GCP if you hold quota/credits |
| Serverless per-token inference of open models | Together / Fireworks / Lilac | comparable OpenAI-compatible endpoints | — |
| Hyperscaler with existing quota/credits, Foundry/Vertex, data-residency | Azure or GCP | you manage the stack; good when already invested there | purpose-built RL/RFT providers |
A common pipeline: generate rollouts through a published batch/RFT path (Together Batch or Fireworks RFT) → train with Prime Intellect's verifiers + prime-rl. Lilac can be a cheap OpenAI-compatible probe path, but only promote it for large rollouts after confirming concurrency and retry behavior with the provider. Generation backend and training backend need not be the same vendor.
One line each; full detail + citations in
references/providers.md.
verifiers, prime-rl,
Environments Hub, hosted Lab) on a GPU marketplace (H100 ~$2.43/hr
on-demand, ~$0.94 spot). Route for RL training you want to author once and
scale.A short plan the developer can audit:
references/providers.md.../prepare-verifier-handoff/SKILL.md
for an RL-training handoff packet.references/cost-estimation.md — cited GPU
FLOPS, $/GPU-hour and $/token tables, MLX/Apple-Silicon throughput
benchmarks, the 6ND + MFU derivation, the serverless-vs-rented crossover, and
a worked RL-trajectory example. Its Source freshness table dates and
source-types every outside-party number.references/providers.md — per-provider detail:
offerings, RL/fine-tuning support, batch/throughput, cited pricing, OSS
footprint, route-to lines, and the verified/unverified flags, with its own
Source freshness table.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub understudylabs/orchestra-agent-tools --plugin orchestra43 skills in this plugin
/audit-verifier-reliabilityUse when deciding whether a verifier reward is trustworthy for optimization./calibrate-difficultyMeasure per-band model headroom from a local, source-bound run artifact before investing in training./capture-evidenceUse when a developer wants to build an eval from their real LLM app before changing anything — "measure how my app is doing today", "build an eval from my workload", "we have no baseline", "is my current model actually good". Turns the workload into auditable local artifacts (harness, metric, frozen splits, baseline); has a public-benchmark on-ramp when no traces exist.Other plugins' skills for the same job