Table of Contents

Class FullFineTuningSpec

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

Tuning Spec for Full Fine Tuning. This data type is not supported in Gemini API.

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

Properties

HyperParameters

Optional. Hyperparameters for Full Fine Tuning.

[JsonPropertyName("hyperParameters")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public SupervisedHyperParameters? HyperParameters { get; set; }

Property Value

SupervisedHyperParameters

TrainingDatasetUri

Training dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset.

[JsonPropertyName("trainingDatasetUri")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? TrainingDatasetUri { get; set; }

Property Value

string

ValidationDatasetUri

Optional. Validation dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset.

[JsonPropertyName("validationDatasetUri")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ValidationDatasetUri { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a FullFineTuningSpec object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

FullFineTuningSpec

The deserialized FullFineTuningSpec object, or null if deserialization fails.