Dominevo
ReferenceHTTP API

training

The training router: 13 methods of the training capability, with tier, scope, input and output.

Capability training · scope system · mode singleton · source packages/types/src/capabilities/training.cap.ts:275.

Every method is called at /trpc/training.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
listBaseModelsqueryadminadmin onlyno
planJobqueryadminadmin onlyno
startJobmutationadminadmin onlyno
startJobBatchmutationadminadmin onlyno
listJobsqueryadminadmin onlyno
getJobqueryadminadmin onlyno
cancelJobmutationadminadmin onlyno
getJobResultqueryadminadmin onlyno
listCanaryTargetsqueryadminadmin onlyno
registerResultmutationadminadmin onlyno
canaryResultmutationadminadmin onlyno
rollbackCanarymutationadminadmin onlyno
discardResultmutationadminadmin onlyno

training.listBaseModels

  • Kind: query — GET /trpc/training.listBaseModels
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=training.listBaseModels on your hub

Input

{}

Output

TrainingBaseModelSchema[]

Shapes: TrainingBaseModelSchema

training.planJob

  • Kind: query — GET /trpc/training.planJob
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=training.planJob on your hub

Input

TrainingJobRequestSchema

Output

TrainingJobPlanSchema

Shapes: TrainingJobRequestSchema · TrainingJobPlanSchema

training.startJob

  • Kind: mutation — POST /trpc/training.startJob
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=training.startJob on your hub

Input

{ selection: TrainingCorpusSelectionSchema; entryId: string; gpuType: string; region: string; baseModelId: string; preset: TrainingPresetSchema; freeze: number | null; holdoutCameras: number[] | null; name: string; maxCostUsd: number; maxRuntimeSec: number; idempotencyKey: string }

Output

{ kind: "started"; job: TrainingJobSchema } | { kind: "refused"; reason: TrainingRefusalReasonSchema; detail: string }

Shapes: TrainingCorpusSelectionSchema · TrainingPresetSchema · TrainingJobSchema · TrainingRefusalReasonSchema

training.startJobBatch

  • Kind: mutation — POST /trpc/training.startJobBatch
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=training.startJobBatch on your hub

Input

{ selection: TrainingCorpusSelectionSchema; entryId: string; gpuType: string; region: string; preset: TrainingPresetSchema; freeze: number | null; holdoutCameras: number[] | null; baseModelIds: string[]; name: string; maxCostUsd: number; maxRuntimeSec: number; idempotencyKey: string }

Output

{ kind: "started"; batchId: string; jobs: TrainingJobSchema[] } | { kind: "refused"; reason: TrainingRefusalReasonSchema; detail: string }

Shapes: TrainingCorpusSelectionSchema · TrainingPresetSchema · TrainingJobSchema · TrainingRefusalReasonSchema

training.listJobs

  • Kind: query — GET /trpc/training.listJobs
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=training.listJobs on your hub

Input

{}

Output

TrainingJobSchema[]

Shapes: TrainingJobSchema

training.getJob

  • Kind: query — GET /trpc/training.getJob
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=training.getJob on your hub

Input

{ id: string }

Output

TrainingJobSchema | null

Shapes: TrainingJobSchema

training.cancelJob

  • Kind: mutation — POST /trpc/training.cancelJob
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=training.cancelJob on your hub

Input

{ id: string }

Output

TrainingJobSchema

Shapes: TrainingJobSchema

training.getJobResult

  • Kind: query — GET /trpc/training.getJobResult
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=training.getJobResult on your hub

Input

{ id: string }

Output

{ schema: "camstack.training-result/v1"; jobKey: string; status: "succeeded" | "failed"; error: { stage: string; code: string; message: string } | null; trainer: { version: string; revision: string }; toolchain: Record<string, string | null>; dataset?: { versionId: string; annotationHash: string; sha256: string; frames: { train: number; val: number; holdout: number }; holdoutCameras: number[]; replayImages: number }; training?: { epochsRun: number; bestEpoch: number; bestMap50: number; bestMap50_95: number; seconds: number }; evaluation?: { holdoutFrames: number; baseline: { frames: number; classes: Record<string, { positives: number; floor: number | null; tp: number; fp: number; fn: number; precision: number | null; recall: number | null; ap50: number | null; recallByCamera?: Record<string, number | null>; recallByLight?: Record<string, number | null>; fpByCamera?: Record<string, number>; smallFound?: number; smallTotal?: number }> } | null; candidate: { frames: number; classes: Record<string, { positives: number; floor: number | null; tp: number; fp: number; fn: number; precision: number | null; recall: number | null; ap50: number | null; recallByCamera?: Record<string, number | null>; recallByLight?: Record<string, number | null>; fpByCamera?: Record<string, number>; smallFound?: number; smallTotal?: number }> } | null; candidateInt8: { frames: number; classes: Record<string, { positives: number; floor: number | null; tp: number; fp: number; fn: number; precision: number | null; recall: number | null; ap50: number | null; recallByCamera?: Record<string, number | null>; recallByLight?: Record<string, number | null>; fpByCamera?: Record<string, number>; smallFound?: number; smallTotal?: number }> } | null; recallDeltaByCamera: Record<string, Record<string, number>> | null; map50: Record<string, number | null> }; floors?: { baseline: Record<string, number>; candidate: Record<string, number>; candidateInt8: Record<string, number> | null; notes: string[] }; int8?: { kept: boolean; map50Fp16: number | null; map50Int8: number | null; reason: string | null }; exportsDropped?: ({ export: string; reason: string })[]; files?: ({ path: string; bytes: number; sha256: string; format: "onnx" | "openvino" | "coreml" | "pt"; variant: "base" | "int8" })[]; bundle?: { path: "bundle.tar"; bytes: number; sha256: string } | null; catalogDraft?: { base: { id: string; name: string; description: string; labels: unknown[]; inputSize: { width: number; height: number }; preprocessMode: "letterbox"; defaultClassFloors: Record<string, number>; formats: { onnx?: {…}; openvino?: {…}; coreml?: {…} } }; int8: { id: string; name: string; description: string; labels: unknown[]; inputSize: { width: number; height: number }; preprocessMode: "letterbox"; defaultClassFloors: Record<string, number>; formats: { onnx?: {…}; openvino?: {…}; coreml?: {…} } } | null } | null; licence: string } | null

training.listCanaryTargets

  • Kind: query — GET /trpc/training.listCanaryTargets
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=training.listCanaryTargets on your hub

Input

void

Output

TrainingCanaryTargetSchema[]

Shapes: TrainingCanaryTargetSchema

training.registerResult

  • Kind: mutation — POST /trpc/training.registerResult
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=training.registerResult on your hub

Input

{ id: string; canaryAccelerators: TrainingAcceleratorRefSchema[] }

Output

TrainingJobSchema

Shapes: TrainingAcceleratorRefSchema · TrainingJobSchema

training.canaryResult

  • Kind: mutation — POST /trpc/training.canaryResult
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=training.canaryResult on your hub

Input

{ id: string; accelerators: TrainingAcceleratorRefSchema[] }

Output

TrainingJobSchema

Shapes: TrainingAcceleratorRefSchema · TrainingJobSchema

training.rollbackCanary

  • Kind: mutation — POST /trpc/training.rollbackCanary
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=training.rollbackCanary on your hub

Input

{ id: string }

Output

TrainingJobSchema

Shapes: TrainingJobSchema

training.discardResult

  • Kind: mutation — POST /trpc/training.discardResult
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=training.discardResult on your hub

Input

{ id: string }

Output

TrainingJobSchema

Shapes: TrainingJobSchema