Skip to content

Commit 191fafb

Browse files
committed
Update Gemini version: llm_tuning
1 parent 18e78b2 commit 191fafb

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

notebooks/vertex_genai/labs/vertex_llm_tuning_with_gemini.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
"}\n",
203203
"```\n",
204204
"\n",
205-
"This is the format example we need to tune a Gemini 1.5 model.\n",
205+
"This is the format example we need to tune a Gemini 2.0 Flash model.\n",
206206
"\n",
207207
"Please refer to [the document](https://cloud.google.com/vertex-ai/generative-ai/docs/models/gemini-supervised-tuning-prepare#dataset_example_for_gemini-15-pro_and_gemini-15-flash) to check other fields you can use.\n",
208208
"\n",
@@ -393,7 +393,7 @@
393393
"source": [
394394
"client = genai.Client(vertexai=True, location=\"us-central1\")\n",
395395
"\n",
396-
"base_model = \"gemini-1.5-pro-002\"\n",
396+
"base_model = \"gemini-2.0-flash-001\"\n",
397397
"\n",
398398
"training_dataset = types.TuningDataset(\n",
399399
" gcs_uri=TRAINING_DATA_URI,\n",
@@ -634,7 +634,7 @@
634634
"\n",
635635
"#### Model tuning metrics\n",
636636
"\n",
637-
"The model tuning job automatically collects the following tuning metrics for `gemini-1.5-pro-002`.\n",
637+
"The model tuning job automatically collects the following tuning metrics for `gemini-2.0-flash`.\n",
638638
"\n",
639639
"* `/train_total_loss`: Loss for the tuning dataset at a training step.\n",
640640
"* `/train_fraction_of_correct_next_step_preds`: The token accuracy at a training step. A single prediction consists of a sequence of tokens. This metric measures the accuracy of the predicted tokens when compared to the ground truth in the tuning dataset.\n",

notebooks/vertex_genai/solutions/vertex_llm_tuning_with_gemini.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
"}\n",
203203
"```\n",
204204
"\n",
205-
"This is the format example we need to tune a Gemini 1.5 model.\n",
205+
"This is the format example we need to tune a Gemini 2.0 Flash model.\n",
206206
"\n",
207207
"Please refer to [the document](https://cloud.google.com/vertex-ai/generative-ai/docs/models/gemini-supervised-tuning-prepare#dataset_example_for_gemini-15-pro_and_gemini-15-flash) to check other fields you can use.\n",
208208
"\n",
@@ -404,7 +404,7 @@
404404
"source": [
405405
"client = genai.Client(vertexai=True, location=\"us-central1\")\n",
406406
"\n",
407-
"base_model = \"gemini-1.5-pro-002\"\n",
407+
"base_model = \"gemini-2.0-flash-001\"\n",
408408
"\n",
409409
"training_dataset = types.TuningDataset(\n",
410410
" gcs_uri=TRAINING_DATA_URI,\n",
@@ -647,7 +647,7 @@
647647
"\n",
648648
"#### Model tuning metrics\n",
649649
"\n",
650-
"The model tuning job automatically collects the following tuning metrics for `gemini-1.5-pro-002`.\n",
650+
"The model tuning job automatically collects the following tuning metrics for `gemini-2.0-flash`.\n",
651651
"\n",
652652
"* `/train_total_loss`: Loss for the tuning dataset at a training step.\n",
653653
"* `/train_fraction_of_correct_next_step_preds`: The token accuracy at a training step. A single prediction consists of a sequence of tokens. This metric measures the accuracy of the predicted tokens when compared to the ground truth in the tuning dataset.\n",

0 commit comments

Comments
 (0)