Table of Contents

Class VeoHyperParameters

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Hyperparameters for Veo. This data type is not supported in Gemini API.

public record VeoHyperParameters : IEquatable<VeoHyperParameters>
Inheritance
VeoHyperParameters
Implements
Inherited Members

Properties

AdapterSize

Optional. The adapter size for LoRA tuning.

[JsonPropertyName("adapterSize")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public AdapterSize? AdapterSize { get; set; }

Property Value

AdapterSize?

EpochCount

Optional. Number of complete passes the model makes over the entire training dataset during training.

[JsonPropertyName("epochCount")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(StringToNullableLongConverter))]
public long? EpochCount { get; set; }

Property Value

long?

LearningRateMultiplier

Optional. Multiplier for adjusting the default learning rate.

[JsonPropertyName("learningRateMultiplier")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? LearningRateMultiplier { get; set; }

Property Value

double?

TuningSpeed

The speed of the tuning job. Only supported for Veo 3.0 models.

[JsonPropertyName("tuningSpeed")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public TuningSpeed? TuningSpeed { get; set; }

Property Value

TuningSpeed?

TuningTask

The tuning task for Veo.

[JsonPropertyName("tuningTask")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public TuningTask? TuningTask { get; set; }

Property Value

TuningTask?

VeoDataMixtureRatio

Optional. The ratio of Google internal dataset to use in the training mixture, in range of [0, 1). If 0.2, it means 20% of Google internal dataset and 80% of user dataset will be used for training. If not set, the default value is 0.1.

[JsonPropertyName("veoDataMixtureRatio")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? VeoDataMixtureRatio { get; set; }

Property Value

double?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a VeoHyperParameters object.

public static VeoHyperParameters? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

VeoHyperParameters

The deserialized VeoHyperParameters object, or null if deserialization fails.