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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
listBaseModels | query | admin | admin only | no |
planJob | query | admin | admin only | no |
startJob | mutation | admin | admin only | no |
startJobBatch | mutation | admin | admin only | no |
listJobs | query | admin | admin only | no |
getJob | query | admin | admin only | no |
cancelJob | mutation | admin | admin only | no |
getJobResult | query | admin | admin only | no |
listCanaryTargets | query | admin | admin only | no |
registerResult | mutation | admin | admin only | no |
canaryResult | mutation | admin | admin only | no |
rollbackCanary | mutation | admin | admin only | no |
discardResult | mutation | admin | admin only | no |
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.listBaseModelson 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.planJobon your hub
Input
TrainingJobRequestSchemaOutput
TrainingJobPlanSchemaShapes: 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.startJobon 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.startJobBatchon 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.listJobson 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.getJobon your hub
Input
{ id: string }Output
TrainingJobSchema | nullShapes: 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.cancelJobon your hub
Input
{ id: string }Output
TrainingJobSchemaShapes: 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.getJobResulton 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 } | nulltraining.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.listCanaryTargetson your hub
Input
voidOutput
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.registerResulton your hub
Input
{ id: string; canaryAccelerators: TrainingAcceleratorRefSchema[] }Output
TrainingJobSchemaShapes: 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.canaryResulton your hub
Input
{ id: string; accelerators: TrainingAcceleratorRefSchema[] }Output
TrainingJobSchemaShapes: 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.rollbackCanaryon your hub
Input
{ id: string }Output
TrainingJobSchemaShapes: 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.discardResulton your hub
Input
{ id: string }Output
TrainingJobSchemaShapes: TrainingJobSchema