Class Model.Builder
- Enclosing class:
- Model
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Modelbuild()checkpoints(Checkpoint... checkpoints) Setter for checkpoints.checkpoints(Checkpoint.Builder... checkpointsBuilders) Setter for checkpoints builder.abstract Model.Buildercheckpoints(List<Checkpoint> checkpoints) Setter for checkpoints.Clears the value of checkpoints field.Clears the value of defaultCheckpointId field.Clears the value of description field.Clears the value of displayName field.Clears the value of endpoints field.Clears the value of inputTokenLimit field.Clears the value of labels field.Clears the value of maxTemperature field.Clears the value of name field.Clears the value of outputTokenLimit field.Clears the value of supportedActions field.Clears the value of temperature field.Clears the value of thinking field.Clears the value of topK field.Clears the value of topP field.Clears the value of tunedModelInfo field.Clears the value of version field.abstract Model.BuilderdefaultCheckpointId(String defaultCheckpointId) Setter for defaultCheckpointId.abstract Model.Builderdescription(String description) Setter for description.abstract Model.BuilderdisplayName(String displayName) Setter for displayName.Setter for endpoints.endpoints(Endpoint.Builder... endpointsBuilders) Setter for endpoints builder.abstract Model.BuilderSetter for endpoints.abstract Model.BuilderinputTokenLimit(Integer inputTokenLimit) Setter for inputTokenLimit.abstract Model.BuilderSetter for labels.abstract Model.BuildermaxTemperature(Float maxTemperature) Setter for maxTemperature.abstract Model.BuilderSetter for name.abstract Model.BuilderoutputTokenLimit(Integer outputTokenLimit) Setter for outputTokenLimit.supportedActions(String... supportedActions) Setter for supportedActions.abstract Model.BuildersupportedActions(List<String> supportedActions) Setter for supportedActions.abstract Model.Buildertemperature(Float temperature) Setter for temperature.abstract Model.Builderthinking(boolean thinking) Setter for thinking.abstract Model.BuilderSetter for topK.abstract Model.BuilderSetter for topP.abstract Model.BuildertunedModelInfo(TunedModelInfo tunedModelInfo) Setter for tunedModelInfo.tunedModelInfo(TunedModelInfo.Builder tunedModelInfoBuilder) Setter for tunedModelInfo builder.abstract Model.BuilderSetter for version.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Setter for name.name: Resource name of the model.
-
clearName
Clears the value of name field. -
displayName
Setter for displayName.displayName: Display name of the model.
-
clearDisplayName
Clears the value of displayName field. -
description
Setter for description.description: Description of the model.
-
clearDescription
Clears the value of description field. -
version
Setter for version.version: Version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model ID. The version ID is an auto-incrementing decimal number in string representation.
-
clearVersion
Clears the value of version field. -
endpoints
Setter for endpoints.endpoints: List of deployed models created from this base model. Note that a model could have been deployed to endpoints in different locations.
-
endpoints
Setter for endpoints.endpoints: List of deployed models created from this base model. Note that a model could have been deployed to endpoints in different locations.
-
endpoints
Setter for endpoints builder.endpoints: List of deployed models created from this base model. Note that a model could have been deployed to endpoints in different locations.
-
clearEndpoints
Clears the value of endpoints field. -
labels
Setter for labels.labels: Labels with user-defined metadata to organize your models.
-
clearLabels
Clears the value of labels field. -
tunedModelInfo
Setter for tunedModelInfo.tunedModelInfo: Information about the tuned model from the base model.
-
tunedModelInfo
@CanIgnoreReturnValue public Model.Builder tunedModelInfo(TunedModelInfo.Builder tunedModelInfoBuilder) Setter for tunedModelInfo builder.tunedModelInfo: Information about the tuned model from the base model.
-
clearTunedModelInfo
Clears the value of tunedModelInfo field. -
inputTokenLimit
Setter for inputTokenLimit.inputTokenLimit: The maximum number of input tokens that the model can handle.
-
clearInputTokenLimit
Clears the value of inputTokenLimit field. -
outputTokenLimit
Setter for outputTokenLimit.outputTokenLimit: The maximum number of output tokens that the model can generate.
-
clearOutputTokenLimit
Clears the value of outputTokenLimit field. -
supportedActions
Setter for supportedActions.supportedActions: List of actions that are supported by the model.
-
supportedActions
Setter for supportedActions.supportedActions: List of actions that are supported by the model.
-
clearSupportedActions
Clears the value of supportedActions field. -
defaultCheckpointId
Setter for defaultCheckpointId.defaultCheckpointId: The default checkpoint id of a model version.
-
clearDefaultCheckpointId
Clears the value of defaultCheckpointId field. -
checkpoints
Setter for checkpoints.checkpoints: The checkpoints of the model.
-
checkpoints
Setter for checkpoints.checkpoints: The checkpoints of the model.
-
checkpoints
Setter for checkpoints builder.checkpoints: The checkpoints of the model.
-
clearCheckpoints
Clears the value of checkpoints field. -
temperature
Setter for temperature.temperature: Temperature value used for sampling set when the dataset was saved. This value is used to tune the degree of randomness.
-
clearTemperature
Clears the value of temperature field. -
maxTemperature
Setter for maxTemperature.maxTemperature: The maximum temperature value used for sampling set when the dataset was saved. This value is used to tune the degree of randomness.
-
clearMaxTemperature
Clears the value of maxTemperature field. -
topP
Setter for topP.topP: Optional. Specifies the nucleus sampling threshold. The model considers only the smallest set of tokens whose cumulative probability is at least `top_p`. This helps generate more diverse and less repetitive responses. For example, a `top_p` of 0.9 means the model considers tokens until the cumulative probability of the tokens to select from reaches 0.9. It's recommended to adjust either temperature or `top_p`, but not both.
-
clearTopP
Clears the value of topP field. -
topK
Setter for topK.topK: Optional. Specifies the top-k sampling threshold. The model considers only the top k most probable tokens for the next token. This can be useful for generating more coherent and less random text. For example, a `top_k` of 40 means the model will choose the next word from the 40 most likely words.
-
clearTopK
Clears the value of topK field. -
thinking
Setter for thinking.thinking: Whether the model supports thinking features. If true, thoughts are returned only if the model supports thought and thoughts are available.
-
clearThinking
Clears the value of thinking field. -
build
-