Dominevo
ReferenceHTTP API

trainingProvider

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

Capability training-provider · scope system · mode collection · source packages/types/src/capabilities/training-provider.cap.ts:186.

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

MethodKindTierToken scopeViewer
describequeryadminadmin onlyno
describeTypesqueryadminadmin onlyno
listEntriesqueryadminadmin onlyno
estimateJobqueryadminadmin onlyno
uploadDatasetmutationadminadmin onlyno
submitJobmutationadminadmin onlyno
getJobqueryadminadmin onlyno
listJobEventsqueryadminadmin onlyno
cancelJobmutationadminadmin onlyno
readResultmutationadminadmin onlyno
offerArtifactmutationadminadmin onlyno
cleanupJobmutationadminadmin onlyno
listJobsqueryadminadmin onlyno

trainingProvider.describe

  • Kind: query — GET /trpc/trainingProvider.describe
  • 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=trainingProvider.describe on your hub

Input

{}

Output

TrainingProviderDescriptorSchema[]

Shapes: TrainingProviderDescriptorSchema

trainingProvider.describeTypes

  • Kind: query — GET /trpc/trainingProvider.describeTypes
  • 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=trainingProvider.describeTypes on your hub

Input

{}

Output

TrainingProviderTypeSchema[]

Shapes: TrainingProviderTypeSchema

trainingProvider.listEntries

  • Kind: query — GET /trpc/trainingProvider.listEntries
  • 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=trainingProvider.listEntries on your hub

Input

{}

Output

TrainingProviderEntrySchema[]

Shapes: TrainingProviderEntrySchema

trainingProvider.estimateJob

  • Kind: query — GET /trpc/trainingProvider.estimateJob
  • 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=trainingProvider.estimateJob on your hub

Input

{ entryId: string; gpuType: string; region: string; datasetBytes: number; gpuSecondsLow: number; gpuSecondsHigh: number }

Output

{ usdLow: number; usdHigh: number; notes: string[] }

trainingProvider.uploadDataset

  • Kind: mutation — POST /trpc/trainingProvider.uploadDataset
  • 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=trainingProvider.uploadDataset on your hub

Input

{ entryId: string; jobKey: string; ticket: { url: string; hostNodeId: string; expiresAtMs: number; declaredBytes: number | null } }

Output

{ bytes: number; sha256: string }

trainingProvider.submitJob

  • Kind: mutation — POST /trpc/trainingProvider.submitJob
  • 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=trainingProvider.submitJob on your hub

Input

{ entryId: string; jobKey: string; trainer: TrainerSourceRefSchema; jobSpecJson: string; gpuType: string; region: string; maxRuntimeSec: number }

Output

ProviderJobStatusSchema

Shapes: TrainerSourceRefSchema · ProviderJobStatusSchema

trainingProvider.getJob

  • Kind: query — GET /trpc/trainingProvider.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=trainingProvider.getJob on your hub

Input

{ entryId: string; jobKey: string }

Output

ProviderJobStatusSchema

Shapes: ProviderJobStatusSchema

trainingProvider.listJobEvents

  • Kind: query — GET /trpc/trainingProvider.listJobEvents
  • 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=trainingProvider.listJobEvents on your hub

Input

{ entryId: string; jobKey: string; cursor?: string; max: number }

Output

{ lines: TrainingLogLineSchema[]; cursor: string }

Shapes: TrainingLogLineSchema

trainingProvider.cancelJob

  • Kind: mutation — POST /trpc/trainingProvider.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=trainingProvider.cancelJob on your hub

Input

{ entryId: string; jobKey: string }

Output

{ ok: true }

trainingProvider.readResult

  • Kind: mutation — POST /trpc/trainingProvider.readResult
  • 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=trainingProvider.readResult on your hub

Input

{ entryId: string; jobKey: string }

Output

{ found: boolean; text?: string }

trainingProvider.offerArtifact

  • Kind: mutation — POST /trpc/trainingProvider.offerArtifact
  • 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=trainingProvider.offerArtifact on your hub

Input

{ entryId: string; jobKey: string; path: "bundle.tar" }

Output

{ ticket: { url: string; hostNodeId: string; expiresAtMs: number; declaredBytes: number | null } }

trainingProvider.cleanupJob

  • Kind: mutation — POST /trpc/trainingProvider.cleanupJob
  • 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=trainingProvider.cleanupJob on your hub

Input

{ entryId: string; jobKey: string }

Output

{ deleted: string[] }

trainingProvider.listJobs

  • Kind: query — GET /trpc/trainingProvider.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=trainingProvider.listJobs on your hub

Input

{ entryId?: string }

Output

ProviderJobStatusSchema[]

Shapes: ProviderJobStatusSchema