Skip to content

Commit 8baac66

Browse files
committed
[src/MaxText/configs/types.py] New pydantic models repesentating all configuration files in MaxText ; [src/MaxText/pyconfig.py] New temporary wrapper to not break existing API ; [src/MaxText/pyconfig_og.py] Move original version here ; [src/MaxText/configs/__init__.py] Make this a module ; [tests/pyconfig_test.py] Import from og pyconfig ; [*requirements*.txt] Add pydantic requirement
1 parent 151fa9f commit 8baac66

File tree

9 files changed

+3116
-1306
lines changed

9 files changed

+3116
-1306
lines changed

base_requirements/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pathwaysutils
2525
pillow
2626
pre-commit
2727
protobuf
28+
pydantic
2829
pyink
2930
pylint
3031
pytest

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pathwaysutils
2525
pillow
2626
pre-commit
2727
protobuf
28+
pydantic
2829
pyink
2930
pylint
3031
pytest

requirements_with_jax_ai_image.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pathwaysutils>=0.1.1
1414
pillow>=11.1.0
1515
pre-commit
1616
protobuf>=5.29.5
17+
pydantic
1718
pyink
1819
pylint
1920
pytest

src/MaxText/configs/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2023–2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.

0 commit comments

Comments
 (0)