Skip to content

Commit 81d653c

Browse files
SamuelMarksGoogle-ML-Automation
authored andcommitted
Copybara import of the project:
-- 6747e19 by Samuel Marks <807580+SamuelMarks@users.noreply.github.com>: [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 ; [tests/configs_test.py] Test every config in the repo ; [tests/configs_value_test.py] Test various config values COPYBARA_INTEGRATE_REVIEW=#1836 from SamuelMarks:pydantic 6747e19 PiperOrigin-RevId: 832500924
1 parent d8b7dcf commit 81d653c

File tree

12 files changed

+4231
-1457
lines changed

12 files changed

+4231
-1457
lines changed

dependencies/requirements/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

dependencies/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

dependencies/requirements/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)