Skip to content

Commit 5e7853f

Browse files
authored
chore(aiplatform); Gen AI code samples update to suport the recent product changes (GoogleCloudPlatform#8452)
1 parent 5e5de69 commit 5e7853f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

aiplatform/src/main/java/aiplatform/CreatePipelineJobModelTuningSample.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,12 @@ public class CreatePipelineJobModelTuningSample {
3333
public static void main(String[] args) throws IOException {
3434
// TODO(developer): Replace these variables before running the sample.
3535
String project = "PROJECT";
36-
String location =
37-
"europe-west4"; // Model tuning is only supported in europe-west4 for Public Preview
36+
String location = "europe-west4"; // europe-west4 and us-central1 are the supported regions
3837
String pipelineJobDisplayName = "PIPELINE_JOB_DISPLAY_NAME";
3938
String modelDisplayName = "MODEL_DISPLAY_NAME";
4039
String outputDir = "OUTPUT_DIR";
4140
String datasetUri = "DATASET_URI";
42-
int trainingSteps = 100;
41+
int trainingSteps = 300;
4342

4443
createPipelineJobModelTuningSample(
4544
project,
@@ -88,7 +87,7 @@ public static void createPipelineJobModelTuningSample(
8887
PipelineJob pipelineJob =
8988
PipelineJob.newBuilder()
9089
.setTemplateUri(
91-
"https://us-kfp.pkg.dev/ml-pipeline/large-language-model-pipelines/tune-large-model/v1.0.0")
90+
"https://us-kfp.pkg.dev/ml-pipeline/large-language-model-pipelines/tune-large-model/v2.0.0")
9291
.setDisplayName(pipelineJobDisplayName)
9392
.setRuntimeConfig(runtimeConfig)
9493
.build();

aiplatform/src/test/java/aiplatform/CreatePipelineJobModelTuningSampleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class CreatePipelineJobModelTuningSampleTest {
5151
"gs://ucaip-samples-europe-west4/training_pipeline_output";
5252
private static final String DATASET_URI =
5353
"gs://cloud-samples-data/ai-platform/generative_ai/headline_classification.jsonl";
54-
private static final int TRAINING_STEPS = 100;
54+
private static final int TRAINING_STEPS = 300;
5555
private String pipelineJobName;
5656
private ByteArrayOutputStream bout;
5757
private PrintStream originalPrintStream;

0 commit comments

Comments
 (0)