File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
generative_ai/model_tuning Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,15 @@ def gemini_tuning_advanced() -> sft.SupervisedTuningJob:
3131 # PROJECT_ID = "your-project-id"
3232 vertexai .init (project = PROJECT_ID , location = "us-central1" )
3333
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")
37+
38+
39+ # Initialize Vertex AI with your CMEK (Customer-Managed Encryption Key).
40+ # Un-comment the following line and replace "your-kms-key"
41+ # vertexai.init(encryption_spec_key_name="your-kms-key")
42+
3443 sft_tuning_job = sft .train (
3544 source_model = "gemini-1.5-pro-002" ,
3645 train_dataset = "gs://cloud-samples-data/ai-platform/generative_ai/gemini-1_5/text/sft_train_data.jsonl" ,
You can’t perform that action at this time.
0 commit comments