Resource: TuningJob
Represents a TuningJob that runs with Google owned models.
namestring
Output only. Identifier. Resource name of a TuningJob. Format: projects/{project}/locations/{location}/tuningJobs/{tuningJob}
tunedModelDisplayNamestring
Optional. The display name of the TunedModel. The name can be up to 128 characters long and can consist of any UTF-8 characters. For continuous tuning, tunedModelDisplayName will by default use the same display name as the pre-tuned model. If a new display name is provided, the tuning job will create a new model instead of a new version.
descriptionstring
Optional. The description of the TuningJob.
customBaseModelstring
Optional. The user-provided path to custom model weights. Set this field to tune a custom model. The path must be a Cloud Storage directory that contains the model weights in .safetensors format along with associated model metadata files. If this field is set, the baseModel field must still be set to indicate which base model the custom model is derived from. This feature is only available for open source models.
Output only. The detailed state of the job.
Output only. The detail state of the tuning job (while the overall JobState is running).
Output only. time when the TuningJob was created.
Uses RFC 3339, where generated output will always be Z-normalized and use 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".
Output only. time when the TuningJob for the first time entered the JOB_STATE_RUNNING state.
Uses RFC 3339, where generated output will always be Z-normalized and use 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".
Output only. time when the TuningJob entered any of the following JobStates: JOB_STATE_SUCCEEDED, JOB_STATE_FAILED, JOB_STATE_CANCELLED, JOB_STATE_EXPIRED.
Uses RFC 3339, where generated output will always be Z-normalized and use 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".
Output only. time when the TuningJob was most recently updated.
Uses RFC 3339, where generated output will always be Z-normalized and use 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".
Output only. Only populated when job's state is JOB_STATE_FAILED or JOB_STATE_CANCELLED.
labelsmap (key: string, value: string)
Optional. The labels with user-defined metadata to organize TuningJob and generated resources such as Model and Endpoint.
label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed.
See https://goo.gl/xmQnxf for more information and examples of labels.
experimentstring
Output only. The Experiment associated with this TuningJob.
Output only. The tuned model resources associated with this TuningJob.
Output only. The tuning data statistics associated with this TuningJob.
pipelineJob
(deprecated)string
Output only. The resource name of the PipelineJob associated with the TuningJob. Format: projects/{project}/locations/{location}/pipelineJobs/{pipelineJob}.
Customer-managed encryption key options for a TuningJob. If this is set, then all resources created by the TuningJob will be encrypted with the provided encryption key.
serviceAccountstring
The service account that the tuningJob workload runs as. If not specified, the Vertex AI Secure Fine-Tuned service Agent in the project will be used. See https://cloud.google.com/iam/docs/service-agents#vertex-ai-secure-fine-tuning-service-agent
Users starting the pipeline must have the iam.serviceAccounts.actAs permission on this service account.
outputUristring
Optional. Cloud Storage path to the directory where tuning job outputs are written to. This field is only available and required for open source models.
Output only. Evaluation runs for the Tuning Job.
satisfiesPzsboolean
Output only. reserved for future use.
satisfiesPziboolean
Output only. reserved for future use.
source_modelUnion type
source_model can be only one of the following:baseModelstring
The base model that is being tuned. See Supported models.
The pre-tuned model for continuous tuning.
tuning_specUnion type
tuning_spec can be only one of the following:Tuning Spec for Supervised Fine Tuning.
Tuning Spec for Distillation.
Tuning Spec for open sourced and third party Partner models.
Tuning Spec for Preference Optimization.
Tuning Spec for Veo Tuning.
Tuning Spec for Full Fine Tuning.
| JSON representation |
|---|
{ "name": string, "tunedModelDisplayName": string, "description": string, "customBaseModel": string, "state": enum ( |
PreTunedModel
A pre-tuned model for continuous tuning.
tunedModelNamestring
The resource name of the Model. E.g., a model resource name with a specified version id or alias:
projects/{project}/locations/{location}/models/{model}@{versionId}
projects/{project}/locations/{location}/models/{model}@{alias}
Or, omit the version id to use the default version:
projects/{project}/locations/{location}/models/{model}
checkpointIdstring
Optional. The source checkpoint id. If not specified, the default checkpoint will be used.
baseModelstring
Output only. The name of the base model this PreTunedModel was tuned from.
| JSON representation |
|---|
{ "tunedModelName": string, "checkpointId": string, "baseModel": string } |
SupervisedTuningSpec
Tuning Spec for Supervised Tuning for first party models.
trainingDatasetUristring
Required. Training dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset.
validationDatasetUristring
Optional. Validation dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset.
Optional. Hyperparameters for SFT.
exportLastCheckpointOnlyboolean
Optional. If set to true, disable intermediate checkpoints for SFT and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints for SFT. Default is false.
Optional. Evaluation Config for Tuning Job.
Tuning mode.
| JSON representation |
|---|
{ "trainingDatasetUri": string, "validationDatasetUri": string, "hyperParameters": { object ( |
SupervisedHyperParameters
Hyperparameters for SFT.
Optional. Number of complete passes the model makes over the entire training dataset during training.
learningRateMultipliernumber
Optional. Multiplier for adjusting the default learning rate. Mutually exclusive with learningRate. This feature is only available for 1P models.
learningRatenumber
Optional. Learning rate for tuning. Mutually exclusive with learningRateMultiplier. This feature is only available for open source models.
Optional. Adapter size for tuning.
Optional. Batch size for tuning. This feature is only available for open source models.
| JSON representation |
|---|
{
"epochCount": string,
"learningRateMultiplier": number,
"learningRate": number,
"adapterSize": enum ( |
AdapterSize
Supported adapter sizes for tuning.
| Enums | |
|---|---|
ADAPTER_SIZE_UNSPECIFIED |
Adapter size is unspecified. |
ADAPTER_SIZE_ONE |
Adapter size 1. |
ADAPTER_SIZE_TWO |
Adapter size 2. |
ADAPTER_SIZE_FOUR |
Adapter size 4. |
ADAPTER_SIZE_EIGHT |
Adapter size 8. |
ADAPTER_SIZE_SIXTEEN |
Adapter size 16. |
ADAPTER_SIZE_THIRTY_TWO |
Adapter size 32. |
EvaluationConfig
Evaluation Config for Tuning Job.
Required. The metrics used for evaluation.
Required. Config for evaluation output.
Optional. Autorater config for evaluation.
| JSON representation |
|---|
{ "metrics": [ { object ( |
OutputConfig
Config for evaluation output.
destinationUnion type
destination can be only one of the following:Cloud storage destination for evaluation output.
| JSON representation |
|---|
{
// destination
"gcsDestination": {
object ( |
TuningMode
Supported tuning modes.
| Enums | |
|---|---|
TUNING_MODE_UNSPECIFIED |
Tuning mode is unspecified. |
TUNING_MODE_FULL |
Full fine-tuning mode. |
TUNING_MODE_PEFT_ADAPTER |
PEFT adapter tuning mode. |
DistillationSpec
Tuning Spec for Distillation.
trainingDatasetUri
(deprecated)string
Deprecated. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.
Optional. Hyperparameters for Distillation.
studentModel
(deprecated)string
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it". Deprecated. Use baseModel instead.
pipelineRootDirectory
(deprecated)string
Deprecated. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts.
teacher_modelUnion type
teacher_model can be only one of the following:baseTeacherModelstring
The base teacher model that is being distilled. See Supported models.
tunedTeacherModelSourcestring
The resource name of the Tuned teacher model. Format: projects/{project}/locations/{location}/models/{model}.
validationDatasetUristring
Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
| JSON representation |
|---|
{
"trainingDatasetUri": string,
"hyperParameters": {
object ( |
DistillationHyperParameters
Hyperparameters for Distillation.
Optional. Adapter size for distillation.
Optional. Number of complete passes the model makes over the entire training dataset during training.
learningRateMultipliernumber
Optional. Multiplier for adjusting the default learning rate.
| JSON representation |
|---|
{
"adapterSize": enum ( |
PartnerModelTuningSpec
Tuning spec for Partner models.
trainingDatasetUristring
Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.
validationDatasetUristring
Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
Hyperparameters for tuning. The accepted hyperParameters and their valid range of values will differ depending on the base model.
| JSON representation |
|---|
{ "trainingDatasetUri": string, "validationDatasetUri": string, "hyperParameters": { string: value, ... } } |
PreferenceOptimizationSpec
Tuning Spec for Preference Optimization.
trainingDatasetUristring
Required. Cloud Storage path to file containing training dataset for preference optimization tuning. The dataset must be formatted as a JSONL file.
Optional. Hyperparameters for Preference Optimization.
exportLastCheckpointOnlyboolean
Optional. If set to true, disable intermediate checkpoints for Preference Optimization and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints for Preference Optimization. Default is false.
validationDatasetUristring
Optional. Cloud Storage path to file containing validation dataset for preference optimization tuning. The dataset must be formatted as a JSONL file.
| JSON representation |
|---|
{
"trainingDatasetUri": string,
"hyperParameters": {
object ( |
PreferenceOptimizationHyperParameters
Hyperparameters for Preference Optimization.
Optional. Adapter size for preference optimization.
Optional. Number of complete passes the model makes over the entire training dataset during training.
learningRateMultipliernumber
Optional. Multiplier for adjusting the default learning rate.
betanumber
Optional. weight for KL Divergence regularization.
| JSON representation |
|---|
{
"adapterSize": enum ( |
VeoTuningSpec
Tuning Spec for Veo Model Tuning.
trainingDatasetUristring
Required. Training dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset.
validationDatasetUristring
Optional. Validation dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset.
Optional. Hyperparameters for Veo.
| JSON representation |
|---|
{
"trainingDatasetUri": string,
"validationDatasetUri": string,
"hyperParameters": {
object ( |
VeoHyperParameters
Hyperparameters for Veo.
Optional. Number of complete passes the model makes over the entire training dataset during training.
learningRateMultipliernumber
Optional. Multiplier for adjusting the default learning rate.
Optional. The tuning task. Either I2V or T2V.
| JSON representation |
|---|
{
"epochCount": string,
"learningRateMultiplier": number,
"tuningTask": enum ( |
TuningTask
An enum defining the tuning task used for Veo.
| Enums | |
|---|---|
TUNING_TASK_UNSPECIFIED |
Default value. This value is unused. |
TUNING_TASK_I2V |
Tuning task for image to video. |
TUNING_TASK_T2V |
Tuning task for text to video. |
TUNING_TASK_R2V |
Tuning task for reference to video. |
FullFineTuningSpec
Tuning Spec for Full Fine Tuning.
trainingDatasetUristring
Required. Training dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset.
validationDatasetUristring
Optional. Validation dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset.
Optional. Hyperparameters for Full Fine Tuning.
| JSON representation |
|---|
{
"trainingDatasetUri": string,
"validationDatasetUri": string,
"hyperParameters": {
object ( |
JobState
Describes the state of a job.
| Enums | |
|---|---|
JOB_STATE_UNSPECIFIED |
The job state is unspecified. |
JOB_STATE_QUEUED |
The job has been just created or resumed and processing has not yet begun. |
JOB_STATE_PENDING |
The service is preparing to run the job. |
JOB_STATE_RUNNING |
The job is in progress. |
JOB_STATE_SUCCEEDED |
The job completed successfully. |
JOB_STATE_FAILED |
The job failed. |
JOB_STATE_CANCELLING |
The job is being cancelled. From this state the job may only go to either JOB_STATE_SUCCEEDED, JOB_STATE_FAILED or JOB_STATE_CANCELLED. |
JOB_STATE_CANCELLED |
The job has been cancelled. |
JOB_STATE_PAUSED |
The job has been stopped, and can be resumed. |
JOB_STATE_EXPIRED |
The job has expired. |
JOB_STATE_UPDATING |
The job is being updated. Only jobs in the RUNNING state can be updated. After updating, the job goes back to the RUNNING state. |
JOB_STATE_PARTIALLY_SUCCEEDED |
The job is partially succeeded, some results may be missing due to errors. |
TuningJobState
Represents the detailed state of the tuning job while the overall JobState is running.
| Enums | |
|---|---|
TUNING_JOB_STATE_UNSPECIFIED |
Default tuning job state. |
TUNING_JOB_STATE_WAITING_FOR_QUOTA |
Tuning job is waiting for job quota. |
TUNING_JOB_STATE_PROCESSING_DATASET |
Tuning job is validating the dataset. |
TUNING_JOB_STATE_WAITING_FOR_CAPACITY |
Tuning job is waiting for hardware capacity. |
TUNING_JOB_STATE_TUNING |
Tuning job is running. |
TUNING_JOB_STATE_POST_PROCESSING |
Tuning job is doing some post processing steps. |
TunedModel
The Model Registry Model and Online Prediction Endpoint associated with this TuningJob.
modelstring
Output only. The resource name of the TunedModel. Format:
projects/{project}/locations/{location}/models/{model}@{versionId}
When tuning from a base model, the version id will be 1.
For continuous tuning, if the provided tunedModelDisplayName is set and different from parent model's display name, the tuned model will have a new parent model with version 1. Otherwise the version id will be incremented by 1 from the last version id in the parent model. E.g.,
projects/{project}/locations/{location}/models/{model}@{last_version_id +
1}
endpointstring
Output only. A resource name of an Endpoint. Format: projects/{project}/locations/{location}/endpoints/{endpoint}.
Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.
| JSON representation |
|---|
{
"model": string,
"endpoint": string,
"checkpoints": [
{
object ( |
TunedModelCheckpoint
TunedModelCheckpoint for the Tuned Model of a Tuning Job.
checkpointIdstring
The id of the checkpoint.
The epoch of the checkpoint.
The step of the checkpoint.
endpointstring
The Endpoint resource name that the checkpoint is deployed to. Format: projects/{project}/locations/{location}/endpoints/{endpoint}.
| JSON representation |
|---|
{ "checkpointId": string, "epoch": string, "step": string, "endpoint": string } |
TuningDataStats
The tuning data statistic values for TuningJob.
tuning_data_statsUnion type
tuning_data_stats can be only one of the following:The SFT Tuning data stats.
Output only. Statistics for distillation.
Output only. Statistics for preference optimization.
| JSON representation |
|---|
{ // tuning_data_stats "supervisedTuningDataStats": { object ( |
SupervisedTuningDataStats
Tuning data statistics for Supervised Tuning.
Output only. Number of examples in the tuning dataset.
Output only. Number of tuning characters in the tuning dataset.
Output only. Number of billable characters in the tuning dataset.
Output only. Number of billable tokens in the tuning dataset.
Output only. Number of tuning steps for this Tuning Job.
Output only. Dataset distributions for the user input tokens.
Output only. Dataset distributions for the user output tokens.
Output only. Dataset distributions for the messages per example.
Output only. Sample user messages in the training dataset uri.
Output only. The number of examples in the dataset that have been dropped. An example can be dropped for reasons including: too many tokens, contains an invalid image, contains too many images, etc.
Output only. A partial sample of the indices (starting from 1) of the dropped examples.
droppedExampleReasons[]string
Output only. For each index in truncatedExampleIndices, the user-facing reason why the example was dropped.
| JSON representation |
|---|
{ "tuningDatasetExampleCount": string, "totalTuningCharacterCount": string, "totalBillableCharacterCount": string, "totalBillableTokenCount": string, "tuningStepCount": string, "userInputTokenDistribution": { object ( |
SupervisedTuningDatasetDistribution
Dataset distribution for Supervised Tuning.
Output only. Sum of a given population of values.
Output only. Sum of a given population of values that are billable.
minnumber
Output only. The minimum of the population values.
maxnumber
Output only. The maximum of the population values.
meannumber
Output only. The arithmetic mean of the values in the population.
mediannumber
Output only. The median of the values in the population.
p5number
Output only. The 5th percentile of the values in the population.
p95number
Output only. The 95th percentile of the values in the population.
Output only. Defines the histogram bucket.
| JSON representation |
|---|
{
"sum": string,
"billableSum": string,
"min": number,
"max": number,
"mean": number,
"median": number,
"p5": number,
"p95": number,
"buckets": [
{
object ( |
DatasetBucket
Dataset bucket used to create a histogram for the distribution given a population of values.
countnumber
Output only. Number of values in the bucket.
leftnumber
Output only. left bound of the bucket.
rightnumber
Output only. Right bound of the bucket.
| JSON representation |
|---|
{ "count": number, "left": number, "right": number } |
DistillationDataStats
Statistics computed for datasets used for distillation.
Output only. Statistics computed for the training dataset.
| JSON representation |
|---|
{
"trainingDatasetStats": {
object ( |
DatasetStats
Statistics computed over a tuning dataset.
Output only. Number of examples in the tuning dataset.
Output only. Number of tuning characters in the tuning dataset.
Output only. Number of billable characters in the tuning dataset.
Output only. Number of tuning steps for this Tuning Job.
Output only. Dataset distributions for the user input tokens.
Output only. Dataset distributions for the messages per example.
Output only. Sample user messages in the training dataset uri.
Output only. A partial sample of the indices (starting from 1) of the dropped examples.
droppedExampleReasons[]string
Output only. For each index in droppedExampleIndices, the user-facing reason why the example was dropped.
Output only. Dataset distributions for the user output tokens.
| JSON representation |
|---|
{ "tuningDatasetExampleCount": string, "totalTuningCharacterCount": string, "totalBillableCharacterCount": string, "tuningStepCount": string, "userInputTokenDistribution": { object ( |
DatasetDistribution
Distribution computed over a tuning dataset.
sumnumber
Output only. Sum of a given population of values.
minnumber
Output only. The minimum of the population values.
maxnumber
Output only. The maximum of the population values.
meannumber
Output only. The arithmetic mean of the values in the population.
mediannumber
Output only. The median of the values in the population.
p5number
Output only. The 5th percentile of the values in the population.
p95number
Output only. The 95th percentile of the values in the population.
Output only. Defines the histogram bucket.
| JSON representation |
|---|
{
"sum": number,
"min": number,
"max": number,
"mean": number,
"median": number,
"p5": number,
"p95": number,
"buckets": [
{
object ( |
DistributionBucket
Dataset bucket used to create a histogram for the distribution given a population of values.
Output only. Number of values in the bucket.
leftnumber
Output only. left bound of the bucket.
rightnumber
Output only. Right bound of the bucket.
| JSON representation |
|---|
{ "count": string, "left": number, "right": number } |
PreferenceOptimizationDataStats
Statistics computed for datasets used for preference optimization.
Output only. Number of examples in the tuning dataset.
Output only. Number of billable tokens in the tuning dataset.
Output only. Number of tuning steps for this Tuning Job.
Output only. Dataset distributions for the user input tokens.
Output only. Dataset distributions for the user output tokens.
Output only. Dataset distributions for scores variance per example.
Output only. Dataset distributions for scores.
Output only. Sample user examples in the training dataset.
Output only. A partial sample of the indices (starting from 1) of the dropped examples.
droppedExampleReasons[]string
Output only. For each index in droppedExampleIndices, the user-facing reason why the example was dropped.
| JSON representation |
|---|
{ "tuningDatasetExampleCount": string, "totalBillableTokenCount": string, "tuningStepCount": string, "userInputTokenDistribution": { object ( |
GeminiPreferenceExample
Input example for preference optimization.
Multi-turn contents that represents the Prompt.
List of completions for a given prompt.
| JSON representation |
|---|
{ "contents": [ { object ( |
Completion
EvaluateDatasetRun
Evaluate Dataset Run result for Tuning Job.
operationNamestring
Output only. The operation id of the evaluation run. Format: projects/{project}/locations/{location}/operations/{operationId}.
checkpointIdstring
Output only. The checkpoint id used in the evaluation run. Only populated when evaluating checkpoints.
Output only. Results for EvaluationService.EvaluateDataset.
Output only. The error of the evaluation run if any.
| JSON representation |
|---|
{ "operationName": string, "checkpointId": string, "evaluateDatasetResponse": { object ( |
EvaluateDatasetResponse
Response in LRO for EvaluationService.EvaluateDataset.
Output only. Aggregation statistics derived from results of EvaluationService.EvaluateDataset.
Output only. Output info for EvaluationService.EvaluateDataset.
| JSON representation |
|---|
{ "aggregationOutput": { object ( |
AggregationOutput
The aggregation result for the entire dataset and all metrics.
The dataset used for evaluation & aggregation.
One AggregationResult per metric.
| JSON representation |
|---|
{ "dataset": { object ( |
EvaluationDataset
The dataset used for evaluation.
sourceUnion type
source can be only one of the following:Cloud storage source holds the dataset. Currently only one Cloud Storage file path is supported.
BigQuery source holds the dataset.
| JSON representation |
|---|
{ // source "gcsSource": { object ( |
BigQuerySource
The BigQuery location for the input content.
inputUristring
Required. BigQuery URI to a table, up to 2000 characters long. Accepted forms:
- BigQuery path. For example:
bq://projectId.bqDatasetId.bqTableId.
| JSON representation |
|---|
{ "inputUri": string } |
AggregationResult
The aggregation result for a single metric.
Aggregation metric.
aggregation_resultUnion type
aggregation_result can be only one of the following:result for pointwise metric.
result for pairwise metric.
Results for exact match metric.
Results for bleu metric.
Results for rouge metric.
result for code execution metric.
| JSON representation |
|---|
{ "aggregationMetric": enum ( |
PointwiseMetricResult
Spec for pointwise metric result.
explanationstring
Output only. Explanation for pointwise metric score.
Output only. Spec for custom output.
scorenumber
Output only. Pointwise metric score.
| JSON representation |
|---|
{
"explanation": string,
"customOutput": {
object ( |
CustomOutput
RawOutput
Raw output.
rawOutput[]string
Output only. Raw output string.
| JSON representation |
|---|
{ "rawOutput": [ string ] } |
PairwiseMetricResult
Spec for pairwise metric result.
Output only. Pairwise metric choice.
explanationstring
Output only. Explanation for pairwise metric score.
Output only. Spec for custom output.
| JSON representation |
|---|
{ "pairwiseChoice": enum ( |
PairwiseChoice
Pairwise prediction autorater preference.
| Enums | |
|---|---|
PAIRWISE_CHOICE_UNSPECIFIED |
Unspecified prediction choice. |
BASELINE |
baseline prediction wins |
CANDIDATE |
Candidate prediction wins |
TIE |
Winner cannot be determined |
ExactMatchMetricValue
Exact match metric value for an instance.
scorenumber
Output only. Exact match score.
| JSON representation |
|---|
{ "score": number } |
BleuMetricValue
Bleu metric value for an instance.
scorenumber
Output only. Bleu score.
| JSON representation |
|---|
{ "score": number } |
RougeMetricValue
Rouge metric value for an instance.
scorenumber
Output only. Rouge score.
| JSON representation |
|---|
{ "score": number } |
CustomCodeExecutionResult
result for custom code execution metric.
scorenumber
Output only. Custom code execution score.
| JSON representation |
|---|
{ "score": number } |
OutputInfo
Describes the info for output of EvaluationService.EvaluateDataset.
output_locationUnion type
output_location can be only one of the following:gcsOutputDirectorystring
Output only. The full path of the Cloud Storage directory created, into which the evaluation results and aggregation results are written.
| JSON representation |
|---|
{ // output_location "gcsOutputDirectory": string // Union type } |
Methods |
|
|---|---|
|
Cancels a TuningJob. |
|
Creates a TuningJob. |
|
Gets a TuningJob. |
|
Lists TuningJobs in a Location. |
|
Optimizes a prompt. |
|
Rebase a TunedModel. |