|
12 | 12 | # See the License for the specific language governing permissions and |
13 | 13 | # limitations under the License. |
14 | 14 |
|
| 15 | +"""Configuration parameters for MaxText Pathways DAGs.""" |
| 16 | + |
15 | 17 | from airflow.models.param import Param |
16 | 18 | from dags.maxtext_pathways.configs import model_configs as model_cfg |
17 | 19 | from dags.common.vm_resource import TpuVersion |
|
35 | 37 | "root", |
36 | 38 | type="string", |
37 | 39 | title="User", |
38 | | - description="User name is used to confirm the first three characters of the pod in the cluster.", |
| 40 | + description=( |
| 41 | + "User name is used to confirm the first three characters " |
| 42 | + "of the pod in the cluster." |
| 43 | + ), |
39 | 44 | ), |
40 | 45 | "cluster_name": Param( |
41 | | - "pw-v6e-64", |
| 46 | + "pw-v6e-8", |
42 | 47 | type="string", |
43 | 48 | title="Cluster Name", |
44 | 49 | description="GCP cluster name for training model.", |
|
63 | 68 | enum=DEVICE_VERSION, |
64 | 69 | ), |
65 | 70 | "core_count": Param( |
66 | | - 64, |
| 71 | + 8, |
67 | 72 | type="integer", |
68 | 73 | title="Core Count", |
69 | 74 | description='Device core count for the cluster. ex: v6e-"64"', |
|
118 | 123 | "default_basic_1", # Available model for device type 'v6e' |
119 | 124 | type="string", |
120 | 125 | title="Model Name", |
121 | | - description='Select a model name to run. Only when "customized_model_name" is selected for "Model Name", the input value of "customized_model_name" parameter will take effect.', |
| 126 | + description=( |
| 127 | + "Select a model name to run. Only when 'customized_model_name' " |
| 128 | + "is selected for 'Model Name', the input value of " |
| 129 | + "'customized_model_name' parameter will take effect." |
| 130 | + ), |
122 | 131 | enum=["customized_model_name"] + MODEL_NAME, |
123 | 132 | ), |
124 | 133 | "customized_model_name": Param( |
125 | 134 | None, |
126 | 135 | type=["null", "string"], |
127 | 136 | title="Customized Model Name", |
128 | | - description='Select a customized model name to run. Only when "customized_model_name" is selected for "Model Name", the input value of "customized_model_name" parameter will take effect.', |
| 137 | + description=( |
| 138 | + "Select a customized model name to run. Only when " |
| 139 | + "'customized_model_name' is selected for 'Model Name', " |
| 140 | + "the input value of 'customized_model_name' parameter " |
| 141 | + "will take effect." |
| 142 | + ), |
129 | 143 | ), |
130 | 144 | "priority": Param( |
131 | 145 | "medium", |
|
164 | 178 | type=["null", "integer"], |
165 | 179 | title="Override Timeout In Minutes", |
166 | 180 | description=( |
167 | | - "Timeout in minutes for the workload task. " |
168 | | - "Adjust it when your meet (airflow.exceptions.AirflowException: Timed out after ...) issue. " |
169 | | - "The default value `None` means automatic calculation of timeout." |
| 181 | + "Timeout in minutes for the workload task. Adjust it when you " |
| 182 | + "meet (airflow.exceptions.AirflowException: Timed out after ...) " |
| 183 | + "issue. The default value `None` means automatic calculation " |
| 184 | + "of timeout." |
170 | 185 | ), |
171 | 186 | ), |
172 | 187 | } |
0 commit comments