Package com.google.genai.types
Class ReinforcementTuningHyperParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ReinforcementTuningHyperParameters
Hyperparameters for Reinforcement Tuning.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ReinforcementTuningHyperParameters. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<AdapterSize>Optional.Optional.builder()Instantiates a builder for ReinforcementTuningHyperParameters.Optional.Optional.Optional.Deserializes a JSON string to a ReinforcementTuningHyperParameters object.Learning rate multiplier for Reinforcement Learning.Optional.Optional.Optional.abstract Optional<ReinforcementTuningThinkingLevel>Indicates the maximum thinking depth during tuning.Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
ReinforcementTuningHyperParameters
public ReinforcementTuningHyperParameters()
-
-
Method Details
-
epochCount
Optional. Number of training epoches for the tuning job. -
learningRateMultiplier
Learning rate multiplier for Reinforcement Learning. -
adapterSize
Optional. Adapter size for Reinforcement Tuning. -
samplesPerPrompt
Optional. Number of different responses to generate per prompt during tuning. -
batchSize
Optional. Batch size for the tuning job. How many prompts to process at a train step. If not set, the batch size will be determined automatically. -
evaluateInterval
Optional. How often at steps to evaluate the tuning job during training. If not set, evel will be run per epoch. `total_steps = epoch_count * samples_per_prompt / total_prompts_in_dataset` -
checkpointInterval
Optional. How often at steps to save checkpoints during training. If not set, one checkpoint per epoch will be set. ```total_steps = epoch_count * samples_per_prompt / total_prompts_in_dataset``` -
maxOutputTokens
Optional. The maximum number of tokens to generate per prompt. Default to 32768. -
thinkingLevel
Indicates the maximum thinking depth during tuning. Starting from Gemini 3.5 models, the old thinking_budget will no longer be supported and will result in a user error if set. Instead, users should use the thinking_level parameter to control the maximum thinking depth. -
thinkingBudget
Optional. The thinking budget for the tuning job to optimize for (Gemini 2.5 only). * -1 means dynamic thinking * 0 means no thinking * > 0 means thinking budget in tokens If not set, default to -1 (dynamic thinking). -
builder
Instantiates a builder for ReinforcementTuningHyperParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ReinforcementTuningHyperParameters object.
-