Package-level declarations

Types

Link copied to clipboard

Per-execution gate that lets exactly one ExecutionAbortException escape an experiment execution. Construct one per training session / evaluation run and share it with every AbortPolicy and optimizer-facing stage scope.

Link copied to clipboard
fun interface AbortPolicy

A condition that may abort an execution based on the running cumulative LLM consumption.

Link copied to clipboard
class DatasetFailureRateExceededAbortException(val failedItems: Int, val finishedItems: Int, val failureRateThreshold: Double) : ExecutionAbortException

Execution-level abort raised when the observed dataset-item failure rate exceeds its configured maximum.

Link copied to clipboard

Marker for an execution-level abort: the runner has decided to stop the current training session or evaluation run as a whole, rather than failing a single stage or leaf operation.

Link copied to clipboard
class SpendLimitExceededException(val configuredLimit: LLMConsumption, val consumedAtAbort: LLMConsumption) : ExecutionAbortException

Cumulative LLM consumption crossed the configured spend cap.