Class PreTunedModel
A pre-tuned model for continuous tuning. This data type is not supported in Gemini API.
public record PreTunedModel : IEquatable<PreTunedModel>
- Inheritance
-
PreTunedModel
- Implements
- Inherited Members
Properties
BaseModel
Output only. The name of the base model this PreTunedModel was tuned from.
[JsonPropertyName("baseModel")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? BaseModel { get; set; }
Property Value
CheckpointId
Optional. The source checkpoint id. If not specified, the default checkpoint will be used.
[JsonPropertyName("checkpointId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? CheckpointId { get; set; }
Property Value
TunedModelName
The resource name of the Model. E.g., a model resource name with a specified version id or
alias: projects/{project}/locations/{location}/models/{model}@{version_id}
projects/{project}/locations/{location}/models/{model}@{alias} Or, omit the version id to
use the default version: projects/{project}/locations/{location}/models/{model}
[JsonPropertyName("tunedModelName")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? TunedModelName { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a PreTunedModel object.
public static PreTunedModel? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- PreTunedModel
The deserialized PreTunedModel object, or null if deserialization fails.