Table of Contents

Class DistillationSpec

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Tuning spec for distillation.

public class DistillationSpec
Inheritance
DistillationSpec
Inherited Members
Extension Methods

Properties

BaseTeacherModel

The base teacher model that is being distilled.

[JsonPropertyName("baseTeacherModel")]
public string? BaseTeacherModel { get; set; }

Property Value

string

EvaluationConfig

Optional. Evaluation config for the tuning job.

[JsonPropertyName("evaluationConfig")]
public EvaluationConfig? EvaluationConfig { get; set; }

Property Value

EvaluationConfig

ExportLastCheckpointOnly

Optional. If set to true, disable intermediate checkpoints and only export the last checkpoint.

[JsonPropertyName("exportLastCheckpointOnly")]
public bool? ExportLastCheckpointOnly { get; set; }

Property Value

bool?

HyperParameters

Optional. Hyperparameters for distillation.

[JsonPropertyName("hyperParameters")]
public DistillationHyperParameters? HyperParameters { get; set; }

Property Value

DistillationHyperParameters

PipelineRootDirectory

Deprecated. A path in a Cloud Storage bucket treated as the root output directory of the distillation pipeline.

[JsonPropertyName("pipelineRootDirectory")]
public string? PipelineRootDirectory { get; set; }

Property Value

string

PromptDatasetUri

Optional. Cloud Storage path to the JSONL prompt dataset for distillation.

[JsonPropertyName("promptDatasetUri")]
public string? PromptDatasetUri { get; set; }

Property Value

string

StudentModel

Deprecated. The student model that is being tuned. Use the tuning job base model instead.

[JsonPropertyName("studentModel")]
public string? StudentModel { get; set; }

Property Value

string

TrainingDatasetUri

Deprecated. Cloud Storage path to the JSONL training dataset.

[JsonPropertyName("trainingDatasetUri")]
public string? TrainingDatasetUri { get; set; }

Property Value

string

TunedTeacherModelSource

The resource name of the tuned teacher model. Format: projects/{project}/locations/{location}/models/{model}.

[JsonPropertyName("tunedTeacherModelSource")]
public string? TunedTeacherModelSource { get; set; }

Property Value

string

TuningMode

Optional. The tuning mode for the SFT part of distillation (open source models only).

[JsonPropertyName("tuningMode")]
public TuningMode? TuningMode { get; set; }

Property Value

TuningMode?

ValidationDatasetUri

Optional. Cloud Storage path to the JSONL validation dataset.

[JsonPropertyName("validationDatasetUri")]
public string? ValidationDatasetUri { get; set; }

Property Value

string