From 065fa1ab6c05e9787c10d015676a6ea3b4d69c39 Mon Sep 17 00:00:00 2001 From: hsuan-lun-chiang Date: Mon, 29 Dec 2025 10:37:41 +0000 Subject: [PATCH] Fix Pydantic validation error for Vertex Tensorboard args --- src/MaxText/configs/types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MaxText/configs/types.py b/src/MaxText/configs/types.py index b9f243a07..60ebd89dc 100644 --- a/src/MaxText/configs/types.py +++ b/src/MaxText/configs/types.py @@ -1,5 +1,5 @@ # Copyright 2023–2025 Google LLC -# + # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -1302,8 +1302,8 @@ class Tensorboard(BaseModel): enable_tensorboard: bool = Field(True, description="Enable Tensorboard logging.") use_vertex_tensorboard: bool = Field(False, description="Set to True for GCE, False if running via XPK.") - vertex_tensorboard_project: str = Field("", description="GCP project for Vertex AI Tensorboard.") - vertex_tensorboard_region: str = Field("", description="Region for Vertex AI Tensorboard.") + vertex_tensorboard_project: Optional[str] = Field("", description="GCP project for Vertex AI Tensorboard.") + vertex_tensorboard_region: Optional[str] = Field("", description="Region for Vertex AI Tensorboard.") class MultimodalGeneral(BaseModel):