All Bundles
Tuner
Fine-tuning model operations
Derived from: OAuthEndPoint
Operations
Create
Creates a tuned model
function : Create(display_name:String, base_model:String, tuning_task:TuningTask) ~ API.Google.Gemini.Tuning.TunedModel
Parameters
Name | Type | Description |
---|
display_name | String | the name to display for this model in user interfaces |
base_model | String | the name of the base model to tune from |
tuning_task | TuningTask | the tuning task that creates the tuned model |
Return
Type | Description |
---|
TunedModel | snapshot of tuned model and metadata |
Creates a tuned model
function : Create(display_name:String, description:String, tuning_task:TuningTask, tune_model_source:Pair<String,String>, base_model:String, temperature:Float, top_p:Float, top_k:Int) ~ API.Google.Gemini.Tuning.TunedModel
Parameters
Name | Type | Description |
---|
display_name | String | the name to display for this model in user interfaces |
description | String | a short description of this model |
tuning_task | TuningTask | the tuning task that creates the tuned model |
tune_model_source | Pair<String,String> | used as the starting point for training the new model |
base_model | String | the name of the base model to tune from |
temperature | Float | controls the randomness of the output |
top_p | Float | for nucleus sampling considers the smallest set of tokens whose probability sum is at least top-p. |
top_k | Int | for top-k sampling considers the set of top-k most probable tokens. this value specifies default to be used by the backend while making the call to the model |
Return
Type | Description |
---|
TunedModel | snapshot of tuned model and metadata |
DeleteAllModels
Deletes all trained models
function : DeleteAllModels() ~ Bool
Return
Type | Description |
---|
Bool | true if successful, false otherwise |
Get
Creates a tuned model
function : Get(model_id:String) ~ TunedModel
Parameters
Name | Type | Description |
---|
model_id | String | resource model identifier |
Return
List
Lists tuned models owned by the user
function : List() ~ Vector<TunedModel>
Return
ToJson
JSON representation of the instance
method : public : ToJson() ~ JsonElement
Return
Type | Description |
---|
JsonElement | JSON representation of the instance |
ToString
JSON string representation of the instance
method : public : ToString() ~ String
Return
Type | Description |
---|
String | JSON string representation of the instance |
TransferOwnership
Creates a tuned model
function : TransferOwnership(new_email:String, model_id:String) ~ Bool
Parameters
Name | Type | Description |
---|
new_email | String | email address of new owner |
model_id | String | resource model identifier |
Return
Type | Description |
---|
Bool | true if successful, false otherwise |