SDK reference / Models / Ai

TrainingJob

Kind: class

Namespace: Egulu.Sdk.Models.Ai

Batch fine-tuning or AI training job with cooperative SIGUSR1 checkpointing, SHA-256 manifest verification,corrupt-checkpoint fallback, and active-interval gpu-seconds metering (ADR-1001, ADR-1002, ADR-1008).

Properties

NameTypeJSON nameDescription
AcceleratorClassstring?acceleratorClassAccelerator class (`nvidia-rtx-5060-laptop-8gb` | `cpu`).
AcceleratorCountint?acceleratorCountAccelerator count (`0..8`, default `1`).
AnnotationsModels.Ai.TrainingJob_annotations?annotationsAt most 256 KiB in all; never policy input.
ArgsList<string>?argsOptional entrypoint arguments.
Attemptsint?attemptsExecution attempt count.
BudgetLimitMicroslong?budgetLimitMicrosOptional hard job spend ceiling in integer micro-euros (`BUDGET_CAP` suspension).
CheckpointKeepint?checkpointKeepNumber of verified checkpoints retained (`1..10`, default `3`).
CheckpointModestring?checkpointModeCheckpoint protocol: `cooperative` (default) | `none`.
CommandList<string>?commandOptional entrypoint command override.
CreateTimeDateTimeOffset?createTimeThe createTime property
CurrentSteplong?currentStepLatest committed or observed training step.
DatasetUristring?datasetUriOptional cell-local dataset bucket URI (`s3://...` or `projects/.../buckets/...`).
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
EndTimeDateTimeOffset?endTimeThe endTime property
EnergyGpuWhdouble?energyGpuWhCumulative GPU energy in watt-hours.
EnergyProvenancestring?energyProvenanceEnergy telemetry provenance (`Measured` on bare metal NVML, `Simulated` in lab Fake; ADR-1208).
EnvModels.Ai.TrainingJob_env?envNon-secret environment variables (`<= 64`).
Etagstring?etag"{generation}"; send it back in If-Match.
Experimentstring?experimentOptional experiment name for grouping runs and metrics (ADR-1005).
GoodputRatiodouble?goodputRatioProductive goodput ratio (`0.0..1.0`).
GraceSecondsint?graceSecondsCooperative `SIGUSR1 -> SIGTERM` checkpoint grace window in seconds (`10..300`, default `60`).
Imagestring?imageDigest-pinned container image (`registry/repo@sha256:<64 hex>`).
LabelsModels.Ai.TrainingJob_labels?labelsAt most 64.
LatestCheckpointSha256string?latestCheckpointSha256SHA-256 hex digest of the latest verified checkpoint payload.
LatestCheckpointSteplong?latestCheckpointStepStep number of the latest verified SHA-256 checkpoint.
LatestLossdouble?latestLossLatest reported training loss.
MaxStepslong?maxStepsTarget training step count (`>= 1`, default `100`).
MemoryMibint?memoryMibMemory in MiB (`512..262144`, default `8192`).
MeteredAcceleratorSecondslong?meteredAcceleratorSecondsCumulative active `gpu-seconds` metered (`0` while `QUEUED`, `SUSPENDED`, or `PREEMPTED`).
Modalitystring?modalityModality (`text` | `embeddings` | `rerank`; generative media refused with `modality-not-available`).
Modelstring?modelOptional base `ai.Model` name or `@sha256:` artefact reference.
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
Preemptiblebool?preemptibleWhether this job may be preempted with cooperative `SIGUSR1` checkpointing.
Prioritystring?priorityQueue priority band: `PAID` | `BATCH` | `SYSTEM` (`FREE` refused when `acceleratorCount > 0`; ADR-1001).
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
RecommendedCheckpointIntervalSecondsdouble?recommendedCheckpointIntervalSecondsYoung-Daly optimal checkpoint interval in seconds (`sqrt(2 * C * M)`).
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
Simulatedbool?simulatedTrue when executed on the lab Fake substrate.
SkippedCorruptCheckpointsint?skippedCorruptCheckpointsCount of corrupt newer checkpoints automatically skipped during recovery (`CheckpointStore.RestoreLatestValid`).
StartTimeDateTimeOffset?startTimeThe startTime property
StateModels.Ai.TrainingJobState?stateBatch fine-tuning and AI training job lifecycle states (ADR-1001, ADR-1002).
StateReasonstring?stateReasonMachine-readable transition/suspension reason (`PREEMPTED` | `BUDGET_CAP` | `POWER_POLICY` | `QUIET_HOURS` | `NODE_LOST` | `USER`).
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
Vcpusint?vcpusvCPU count (`1..64`, default `4`).