Table of Contents

Class GeminiTunedModelCreationData

A fine-tuned model to be created using ModelService.CreateTunedModel.

public class GeminiTunedModelCreationData
Inheritance
GeminiTunedModelCreationData
Extension Methods

Fields

BaseModel

The name of the GeminiModel to tune. Example: models/gemini-1.5-flash-0

public GeminiModelId BaseModel

Field Value

GeminiModelId

Remarks

If not provided, TunedModelSource must be provided.

Description

A short description of the model.

public string Description

Field Value

string

DisplayName

The name to display for this model in user interfaces.

public string DisplayName

Field Value

string

Remarks

The display name must be up to 40 characters including spaces.

ReaderProjectNumbers

List of project numbers that have read access to the tuned model.

public long[] ReaderProjectNumbers

Field Value

long[]

Temperature

Controls the randomness of the output.

public float? Temperature

Field Value

float?

Remarks

Values can range over [0.0,1.0], inclusive. A value closer to 1.0 will produce responses that are more varied, while a value closer
to 0.0 will typically result in less surprising responses from the model. This value specifies default to be the one used by the
base model while creating the model.

TopK

For Top-k sampling.

public int? TopK

Field Value

int?

Remarks

Top-k sampling considers the set of topK most probable tokens. This value specifies default to be used by the backend while
making the call to the model. This value specifies default to be the one used by the base model while creating the model.

TopP

For Nucleus sampling.

public float? TopP

Field Value

float?

Remarks

Nucleus sampling considers the smallest set of tokens whose probability sum is at least topP. This value specifies default to be
the one used by the base model while creating the model.

TunedModelSource

TunedModel to use as the starting point for training the new model.

public GeminiTunedModelSource TunedModelSource

Field Value

GeminiTunedModelSource

Remarks

If not provided, BaseModel must be provided.

TuningTask

The tuning task that creates the tuned model.

public GeminiInitialTuningTask TuningTask

Field Value

GeminiInitialTuningTask