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
| Name | Type | JSON name | Description |
|---|---|---|---|
AcceleratorClass | string? | acceleratorClass | Accelerator class (`nvidia-rtx-5060-laptop-8gb` | `cpu`). |
AcceleratorCount | int? | acceleratorCount | Accelerator count (`0..8`, default `1`). |
Annotations | Models.Ai.TrainingJob_annotations? | annotations | At most 256 KiB in all; never policy input. |
Args | List<string>? | args | Optional entrypoint arguments. |
Attempts | int? | attempts | Execution attempt count. |
BudgetLimitMicros | long? | budgetLimitMicros | Optional hard job spend ceiling in integer micro-euros (`BUDGET_CAP` suspension). |
CheckpointKeep | int? | checkpointKeep | Number of verified checkpoints retained (`1..10`, default `3`). |
CheckpointMode | string? | checkpointMode | Checkpoint protocol: `cooperative` (default) | `none`. |
Command | List<string>? | command | Optional entrypoint command override. |
CreateTime | DateTimeOffset? | createTime | The createTime property |
CurrentStep | long? | currentStep | Latest committed or observed training step. |
DatasetUri | string? | datasetUri | Optional cell-local dataset bucket URI (`s3://...` or `projects/.../buckets/...`). |
DeleteTime | DateTimeOffset? | deleteTime | The deleteTime property |
DisplayName | string? | displayName | Up to 63 characters. |
EndTime | DateTimeOffset? | endTime | The endTime property |
EnergyGpuWh | double? | energyGpuWh | Cumulative GPU energy in watt-hours. |
EnergyProvenance | string? | energyProvenance | Energy telemetry provenance (`Measured` on bare metal NVML, `Simulated` in lab Fake; ADR-1208). |
Env | Models.Ai.TrainingJob_env? | env | Non-secret environment variables (`<= 64`). |
Etag | string? | etag | "{generation}"; send it back in If-Match. |
Experiment | string? | experiment | Optional experiment name for grouping runs and metrics (ADR-1005). |
GoodputRatio | double? | goodputRatio | Productive goodput ratio (`0.0..1.0`). |
GraceSeconds | int? | graceSeconds | Cooperative `SIGUSR1 -> SIGTERM` checkpoint grace window in seconds (`10..300`, default `60`). |
Image | string? | image | Digest-pinned container image (`registry/repo@sha256:<64 hex>`). |
Labels | Models.Ai.TrainingJob_labels? | labels | At most 64. |
LatestCheckpointSha256 | string? | latestCheckpointSha256 | SHA-256 hex digest of the latest verified checkpoint payload. |
LatestCheckpointStep | long? | latestCheckpointStep | Step number of the latest verified SHA-256 checkpoint. |
LatestLoss | double? | latestLoss | Latest reported training loss. |
MaxSteps | long? | maxSteps | Target training step count (`>= 1`, default `100`). |
MemoryMib | int? | memoryMib | Memory in MiB (`512..262144`, default `8192`). |
MeteredAcceleratorSeconds | long? | meteredAcceleratorSeconds | Cumulative active `gpu-seconds` metered (`0` while `QUEUED`, `SUSPENDED`, or `PREEMPTED`). |
Modality | string? | modality | Modality (`text` | `embeddings` | `rerank`; generative media refused with `modality-not-available`). |
Model | string? | model | Optional base `ai.Model` name or `@sha256:` artefact reference. |
Name | string? | name | The resource name, for example projects/p/locations/l/instances/i. |
Preemptible | bool? | preemptible | Whether this job may be preempted with cooperative `SIGUSR1` checkpointing. |
Priority | string? | priority | Queue priority band: `PAID` | `BATCH` | `SYSTEM` (`FREE` refused when `acceleratorCount > 0`; ADR-1001). |
PurgeTime | DateTimeOffset? | purgeTime | The purgeTime property |
RecommendedCheckpointIntervalSeconds | double? | recommendedCheckpointIntervalSeconds | Young-Daly optimal checkpoint interval in seconds (`sqrt(2 * C * M)`). |
Reconciling | bool? | reconciling | True while the platform works toward the spec. |
Simulated | bool? | simulated | True when executed on the lab Fake substrate. |
SkippedCorruptCheckpoints | int? | skippedCorruptCheckpoints | Count of corrupt newer checkpoints automatically skipped during recovery (`CheckpointStore.RestoreLatestValid`). |
StartTime | DateTimeOffset? | startTime | The startTime property |
State | Models.Ai.TrainingJobState? | state | Batch fine-tuning and AI training job lifecycle states (ADR-1001, ADR-1002). |
StateReason | string? | stateReason | Machine-readable transition/suspension reason (`PREEMPTED` | `BUDGET_CAP` | `POWER_POLICY` | `QUIET_HOURS` | `NODE_LOST` | `USER`). |
Uid | string? | uid | UUIDv7, never reused. |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |
Vcpus | int? | vcpus | vCPU count (`1..64`, default `4`). |