TunedModel Class

A fine-tuned model created using [!:ModelService].CreateTunedModel.

Definition

Namespace: GenerativeAI.Types
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public class TunedModel
Inheritance
Object    TunedModel

Constructors

TunedModelInitializes a new instance of the TunedModel class

Properties

BaseModel Immutable. The name of the Model to tune. Example: models/gemini-1.5-flash-001
CreateTime Output only. The timestamp when this model was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
Description Optional. A short description of this model.
DisplayName Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
Name Output only. The tuned model name. A unique name will be generated on create. Example: tunedModels/az2mb0bpw6i If DisplayName is set on create, the id portion of the name will be set by concatenating the words of the DisplayName with hyphens and adding a random portion for uniqueness. Example: - displayName = Sentence Translator - name = tunedModels/sentence-translator-u3b7m
ReaderProjectNumbers Optional. List of project numbers that have read access to the tuned model.
State Output only. The state of the tuned model.
Temperature Optional. Controls the randomness of the output. 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 Optional. For Top-k sampling. 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 Optional. For Nucleus sampling. 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 Optional. TunedModelSource to use as the starting point for training the new model.
TuningTask Required. The tuning task that creates the tuned model.
UpdateTime Output only. The timestamp when this model was updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also