OptionalabortAbort signal which can be used to cancel the request.
NOTE: AbortSignal is a client-only operation. Using it to cancel an operation will not cancel the request in the service. You will still be charged usage for any applicable operations.
OptionaladapterAdapter size for tuning.
OptionalbatchThe batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples.
OptionalbetaWeight for KL Divergence regularization, Preference Optimization tuning only.
OptionaldescriptionThe description of the TuningJob
OptionalepochNumber of complete passes the model makes over the entire training dataset during training.
OptionalexportIf set to true, disable intermediate checkpoints and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints.
OptionalhttpUsed to override HTTP request options.
OptionallabelsOptional. The labels with user-defined metadata to organize TuningJob and generated resources such as Model and Endpoint. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.
OptionallearningThe learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples.
OptionallearningMultiplier for adjusting the default learning rate.
OptionalmethodThe method to use for tuning (SUPERVISED_FINE_TUNING or PREFERENCE_TUNING). If not set, the default method (SFT) will be used.
OptionalpreThe optional checkpoint id of the pre-tuned model to use for tuning, if applicable.
OptionaltunedThe display name of the tuned Model. The name can be up to 128 characters long and can consist of any UTF-8 characters.
OptionalvalidationValidation dataset for tuning. The dataset must be formatted as a JSONL file.
Fine-tuning job creation request - optional fields.