File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
generative_ai/model_tuning Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 2020
2121
2222def gemini_tuning_advanced () -> sft .SupervisedTuningJob :
23- # test: trigger Ci
2423 # [START generativeaionvertexai_tuning_advanced]
2524
2625 import time
@@ -32,14 +31,13 @@ def gemini_tuning_advanced() -> sft.SupervisedTuningJob:
3231 # PROJECT_ID = "your-project-id"
3332 vertexai .init (project = PROJECT_ID , location = "us-central1" )
3433
35- # Initialize Vertex AI with your service account for BYOSA (Bring Your Own Service Account).
36- # Uncomment the following and replace "your-service-account"
37- # vertexai.init(service_account="your-service-account")
34+ # Initialize Vertex AI with your service account for BYOSA (Bring Your Own Service Account).
35+ # Uncomment the following and replace "your-service-account"
36+ # vertexai.init(service_account="your-service-account")
3837
39-
40- # Initialize Vertex AI with your CMEK (Customer-Managed Encryption Key).
41- # Un-comment the following line and replace "your-kms-key"
42- # vertexai.init(encryption_spec_key_name="your-kms-key")
38+ # Initialize Vertex AI with your CMEK (Customer-Managed Encryption Key).
39+ # Un-comment the following line and replace "your-kms-key"
40+ # vertexai.init(encryption_spec_key_name="your-kms-key")
4341
4442 sft_tuning_job = sft .train (
4543 source_model = "gemini-1.5-pro-002" ,
You can’t perform that action at this time.
0 commit comments