Foundation Models Tuning Service API, gRPC: TuningService.GetOptions
- gRPC request
- GetOptionsRequest
- GetOptionsResponse
- WeightedDataset
- TextToTextCompletionTuningParams
- TuningTypeLora
- TuningTypePromptTune
- Scheduler
- SchedulerLinear
- SchedulerConstant
- SchedulerCosine
- Optimizer
- OptimizerAdamw
- TextClassificationMultilabelParams
- Scheduler
- Optimizer
- TextClassificationMulticlassParams
- Scheduler
- Optimizer
gRPC request
rpc GetOptions (GetOptionsRequest) returns (GetOptionsResponse)
GetOptionsRequest
{
"task_id": "string"
}
Field |
Description |
task_id |
string Required field. |
GetOptionsResponse
{
"task_id": "string",
"base_model_uri": "string",
"train_datasets": [
{
"dataset_id": "string",
"weight": "double"
}
],
"validation_datasets": [
{
"dataset_id": "string",
"weight": "double"
}
],
// Includes only one of the fields `text_to_text_completion`, `text_classification_multilabel`, `text_classification_multiclass`
"text_to_text_completion": {
"seed": "int64",
"lr": "double",
"n_samples": "int64",
"additional_arguments": "string",
// Includes only one of the fields `lora`, `prompt_tune`
"lora": {
"rank": "int64",
"alpha": "double",
"initialization": "string",
"type": "string"
},
"prompt_tune": {
"virtual_tokens": "int64"
},
// end of the list of possible fields
"scheduler": {
// Includes only one of the fields `linear`, `constant`, `cosine`
"linear": {
"min_lr": "double"
},
"constant": "SchedulerConstant",
"cosine": {
"min_lr": "double"
},
// end of the list of possible fields
"warmup_ratio": "double"
},
"optimizer": {
// Includes only one of the fields `adamw`
"adamw": {
"beta1": "double",
"beta2": "double",
"eps": "double",
"weight_decay": "double"
}
// end of the list of possible fields
}
},
"text_classification_multilabel": {
"seed": "int64",
"lr": "double",
"n_samples": "int64",
"additional_arguments": "string",
// Includes only one of the fields `lora`, `prompt_tune`
"lora": {
"rank": "int64",
"alpha": "double",
"initialization": "string",
"type": "string"
},
"prompt_tune": {
"virtual_tokens": "int64"
},
// end of the list of possible fields
"scheduler": {
// Includes only one of the fields `linear`, `constant`, `cosine`
"linear": {
"min_lr": "double"
},
"constant": "SchedulerConstant",
"cosine": {
"min_lr": "double"
},
// end of the list of possible fields
"warmup_ratio": "double"
},
"optimizer": {
// Includes only one of the fields `adamw`
"adamw": {
"beta1": "double",
"beta2": "double",
"eps": "double",
"weight_decay": "double"
}
// end of the list of possible fields
}
},
"text_classification_multiclass": {
"seed": "int64",
"lr": "double",
"n_samples": "int64",
"additional_arguments": "string",
// Includes only one of the fields `lora`, `prompt_tune`
"lora": {
"rank": "int64",
"alpha": "double",
"initialization": "string",
"type": "string"
},
"prompt_tune": {
"virtual_tokens": "int64"
},
// end of the list of possible fields
"scheduler": {
// Includes only one of the fields `linear`, `constant`, `cosine`
"linear": {
"min_lr": "double"
},
"constant": "SchedulerConstant",
"cosine": {
"min_lr": "double"
},
// end of the list of possible fields
"warmup_ratio": "double"
},
"optimizer": {
// Includes only one of the fields `adamw`
"adamw": {
"beta1": "double",
"beta2": "double",
"eps": "double",
"weight_decay": "double"
}
// end of the list of possible fields
}
}
// end of the list of possible fields
}
Field |
Description |
task_id |
string |
base_model_uri |
string |
train_datasets[] |
|
validation_datasets[] |
|
text_to_text_completion |
TextToTextCompletionTuningParams Includes only one of the fields |
text_classification_multilabel |
TextClassificationMultilabelParams Includes only one of the fields |
text_classification_multiclass |
TextClassificationMulticlassParams Includes only one of the fields |
WeightedDataset
Field |
Description |
dataset_id |
string Required field. |
weight |
double |
TextToTextCompletionTuningParams
Field |
Description |
seed |
int64 |
lr |
double |
n_samples |
int64 |
additional_arguments |
string |
lora |
Includes only one of the fields |
prompt_tune |
Includes only one of the fields |
scheduler |
|
optimizer |
TuningTypeLora
Field |
Description |
rank |
int64 |
alpha |
double |
initialization |
string |
type |
string |
TuningTypePromptTune
Field |
Description |
virtual_tokens |
int64 |
Scheduler
Field |
Description |
linear |
Includes only one of the fields |
constant |
Includes only one of the fields |
cosine |
Includes only one of the fields |
warmup_ratio |
double |
SchedulerLinear
Field |
Description |
min_lr |
double |
SchedulerConstant
Field |
Description |
Empty |
SchedulerCosine
Field |
Description |
min_lr |
double |
Optimizer
Field |
Description |
adamw |
Includes only one of the fields |
OptimizerAdamw
Field |
Description |
beta1 |
double |
beta2 |
double |
eps |
double |
weight_decay |
double |
TextClassificationMultilabelParams
Field |
Description |
seed |
int64 |
lr |
double |
n_samples |
int64 |
additional_arguments |
string |
lora |
Includes only one of the fields |
prompt_tune |
Includes only one of the fields |
scheduler |
|
optimizer |
Scheduler
Field |
Description |
linear |
Includes only one of the fields |
constant |
Includes only one of the fields |
cosine |
Includes only one of the fields |
warmup_ratio |
double |
Optimizer
Field |
Description |
adamw |
Includes only one of the fields |
TextClassificationMulticlassParams
Field |
Description |
seed |
int64 |
lr |
double |
n_samples |
int64 |
additional_arguments |
string |
lora |
Includes only one of the fields |
prompt_tune |
Includes only one of the fields |
scheduler |
|
optimizer |
Scheduler
Field |
Description |
linear |
Includes only one of the fields |
constant |
Includes only one of the fields |
cosine |
Includes only one of the fields |
warmup_ratio |
double |
Optimizer
Field |
Description |
adamw |
Includes only one of the fields |