Skip to content

Commit be918e9

Browse files
Merge pull request #2462 from AI-Hypercomputer:pyproj_req_update
PiperOrigin-RevId: 817323126
2 parents 53bdfaa + 099f7af commit be918e9

8 files changed

Lines changed: 299 additions & 239 deletions

File tree

.github/workflows/run_tests_against_package.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
XLA_PYTHON_CLIENT_MEM_FRACTION: ${{ inputs.xla_python_client_mem_fraction }}
5959
TF_FORCE_GPU_ALLOW_GROWTH: ${{ inputs.tf_force_gpu_allow_growth }}
6060
TPU_SKIP_MDS_QUERY: ${{ inputs.device_type == 'cpu' && '1' || '' }}
61+
MAXTEXT_PACKAGE_EXTRA: ${{ inputs.device_type == 'cpu' && 'tpu' || inputs.device_type }}
6162
options: ${{ inputs.container_resource_option }}
6263
steps:
6364
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -66,8 +67,12 @@ jobs:
6667
with:
6768
name: maxtext-wheel
6869
- name: Install the maxtext wheel
70+
shell: bash
6971
run: |
70-
python3 -m uv pip install maxtext-*-py3-none-any.whl --resolution=lowest --system
72+
python3 -m uv venv --seed
73+
source .venv/bin/activate
74+
maxtext_wheel=$(ls maxtext-*-py3-none-any.whl 2>/dev/null)
75+
uv pip install ${maxtext_wheel}[${MAXTEXT_PACKAGE_EXTRA}] --resolution=lowest
7176
install_maxtext_github_deps
7277
python3 --version
7378
python3 -m pip freeze
@@ -76,6 +81,7 @@ jobs:
7681
- name: Display contents of workspace # TODO: Remove
7782
run: ls -R
7883
- name: Run Tests
84+
shell: bash
7985
run: |
8086
if [ "${{ inputs.is_scheduled_run }}" == "true" ]; then
8187
FINAL_PYTEST_MARKER="${{ inputs.pytest_marker }}"
@@ -88,4 +94,4 @@ jobs:
8894
export MAXTEXT_TEST_ASSETS_ROOT=$(pwd)/src/MaxText/test_assets
8995
export MAXTEXT_PKG_DIR=$(pwd)/src/MaxText
9096
# TODO: Fix the skipped tests and remove the deselect flags
91-
python3 -m pytest -v -m "${FINAL_PYTEST_MARKER}" --durations=0 --deselect "tests/aot_hlo_identical_test.py::AotHloIdenticalTest::test_default_hlo_match" --deselect "tests/tokenizer_test.py::TokenizerTest::test_detokenize"
97+
.venv/bin/python3 -m pytest -v -m "${FINAL_PYTEST_MARKER}" --durations=0 --deselect "tests/aot_hlo_identical_test.py::AotHloIdenticalTest::test_default_hlo_match" --deselect "tests/tokenizer_test.py::TokenizerTest::test_detokenize"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ cd maxtext
5757

5858
# 2. Install dependencies in editable mode
5959
pip install uv
60-
uv pip install -e . --resolution=lowest
60+
uv pip install -e .[tpu] --resolution=lowest
6161
install_maxtext_github_deps
6262
```
6363

base_requirements/requirements.txt

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
absl-py
2+
aqtp
3+
array-record
4+
cloud-accelerator-diagnostics
5+
cloud-tpu-diagnostics
6+
datasets
7+
flax
8+
gcsfs
9+
google-api-python-client
10+
google-cloud-aiplatform
11+
google-cloud-monitoring
12+
grain[parquet]
13+
huggingface_hub
14+
jax!=0.7.1, !=0.7.2
15+
jaxlib!=0.7.1, !=0.7.2
16+
jaxtyping
17+
jsonlines
18+
ml-collections
19+
ml-goodput-measurement
20+
numpy
21+
omegaconf
22+
optax
23+
orbax-checkpoint
24+
pathwaysutils
25+
pillow
26+
pre-commit
27+
protobuf
28+
pyink
29+
pylint
30+
pytest
31+
pytype
32+
sentencepiece
33+
tensorboard-plugin-profile
34+
tensorboardx
35+
tensorflow-datasets
36+
tensorflow-text
37+
tensorflow
38+
tiktoken
39+
transformers
40+
qwix
41+
google-jetstream @ https://github.com/AI-Hypercomputer/JetStream/archive/daedc21c393f23449fb54ddc4f75fca34348ea9c.zip
42+
mlperf-logging @ https://github.com/mlcommons/logging/archive/38ab22670527888c8eb7825a4ece176fcc36a95d.zip
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-r requirements.txt
2+
google-tunix
Lines changed: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,235 @@
1+
# Generated by seed-env. Do not edit manually.
2+
# If you need to modify dependencies, please do so in the host requirements file and run seed-env again.
3+
4+
absl-py>=2.3.1
5+
aiofiles>=24.1.0
6+
aiohappyeyeballs>=2.6.1
7+
aiohttp>=3.13.0
8+
aiosignal>=1.4.0
9+
annotated-types>=0.7.0
10+
antlr4-python3-runtime>=4.9.3
11+
anyio>=4.11.0
12+
aqtp>=0.9.0
13+
array-record>=0.8.1
14+
astroid>=3.3.11
15+
astunparse>=1.6.3
16+
attrs>=25.3.0
17+
auditwheel>=6.4.1
18+
black>=24.10.0
19+
blobfile>=3.1.0
20+
build>=1.2.2.post1
21+
cachetools>=6.2.0
22+
certifi>=2025.10.5
23+
cffi>=2.0.0 ; platform_python_implementation == 'PyPy'
24+
cfgv>=3.4.0
25+
charset-normalizer>=3.4.3
26+
chex>=0.1.90
27+
click>=8.3.0
28+
cloud-accelerator-diagnostics>=0.1.1
29+
cloud-tpu-diagnostics>=0.1.5
30+
cloudpickle>=3.1.1
31+
clu>=0.0.12
32+
colorama>=0.4.6
33+
contourpy>=1.3.2
34+
coverage>=7.10.7
35+
cycler>=0.12.1
36+
datasets>=4.2.0
37+
decorator>=5.2.1
38+
dill>=0.4.0
39+
distlib>=0.4.0
40+
dm-tree>=0.1.9
41+
docstring-parser>=0.17.0
42+
editdistance>=0.8.1
43+
einops>=0.8.1
44+
etils>=1.13.0
45+
evaluate>=0.4.6
46+
execnet>=2.1.1
47+
fastapi>=0.118.2
48+
filelock>=3.18.0
49+
flatbuffers>=25.2.10
50+
flax>=0.11.2
51+
fonttools>=4.59.0
52+
frozenlist>=1.8.0
53+
fsspec>=2025.7.0
54+
gast>=0.6.0
55+
gcsfs>=2025.7.0
56+
google-api-core>=2.26.0
57+
google-api-python-client>=2.184.0
58+
google-auth-httplib2>=0.2.0
59+
google-auth-oauthlib>=1.2.2
60+
google-auth>=2.41.1
61+
google-cloud-aiplatform>=1.120.0
62+
google-cloud-appengine-logging>=1.6.2
63+
google-cloud-audit-log>=0.3.3
64+
google-cloud-bigquery>=3.38.0
65+
google-cloud-core>=2.4.3
66+
google-cloud-logging>=3.12.1
67+
google-cloud-monitoring>=2.27.2
68+
google-cloud-resource-manager>=1.14.2
69+
google-cloud-storage>=2.19.0
70+
google-crc32c>=1.7.1
71+
google-genai>=1.42.0
72+
google-pasta>=0.2.0
73+
google-resumable-media>=2.7.2
74+
google-tunix>=0.1.1
75+
googleapis-common-protos>=1.70.0
76+
grain>=0.2.12
77+
grpc-google-iam-v1>=0.14.2
78+
grpcio-status>=1.71.2
79+
grpcio>=1.75.1
80+
gviz-api>=1.10.0
81+
h11>=0.16.0
82+
h5py>=3.14.0
83+
hf-xet>=1.1.10 ; platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'
84+
httpcore>=1.0.9
85+
httplib2>=0.31.0
86+
httpx>=0.28.1
87+
huggingface-hub>=0.35.3
88+
humanize>=4.13.0
89+
hypothesis>=6.136.4
90+
identify>=2.6.15
91+
idna>=3.10
92+
immutabledict>=4.2.1
93+
importlab>=0.8.1
94+
importlib-metadata>=8.7.0
95+
importlib-resources>=6.5.2
96+
iniconfig>=2.1.0
97+
isort>=6.1.0
98+
jax==0.7.0
99+
jaxlib==0.7.0
100+
jaxtyping>=0.3.3
101+
jinja2>=3.1.6
102+
joblib>=1.5.2
103+
jsonlines>=4.0.0
104+
kagglehub>=0.3.13
105+
keras>=3.11.3
106+
kiwisolver>=1.4.8
107+
libclang>=18.1.1
108+
libcst>=1.8.5
109+
libtpu>=0.0.19
110+
lxml>=6.0.2
111+
markdown-it-py>=3.0.0
112+
markdown>=3.9
113+
markupsafe>=3.0.3
114+
matplotlib>=3.10.3
115+
mccabe>=0.7.0
116+
mdurl>=0.1.2
117+
ml-collections>=1.1.0
118+
ml-dtypes>=0.5.3
119+
ml-goodput-measurement>=0.0.15
120+
more-itertools>=10.8.0
121+
mpmath>=1.3.0
122+
msgpack>=1.1.2
123+
msgspec>=0.19.0
124+
multidict>=6.7.0
125+
multiprocess>=0.70.16
126+
mypy-extensions>=1.1.0
127+
namex>=0.1.0
128+
nest-asyncio>=1.6.0
129+
networkx>=3.5
130+
ninja>=1.13.0
131+
nltk>=3.9.2
132+
nodeenv>=1.9.1
133+
numpy>=2.0.2
134+
oauthlib>=3.3.1
135+
omegaconf>=2.3.0
136+
opentelemetry-api>=1.37.0
137+
opt-einsum>=3.4.0
138+
optax>=0.2.6
139+
optree>=0.17.0
140+
orbax-checkpoint>=0.11.25
141+
packaging>=25.0
142+
pandas>=2.3.3
143+
parameterized>=0.9.0
144+
pathspec>=0.12.1
145+
pathwaysutils>=0.1.3
146+
pillow>=11.3.0
147+
platformdirs>=4.5.0
148+
pluggy>=1.6.0
149+
portpicker>=1.6.0
150+
pre-commit>=4.3.0
151+
prometheus-client>=0.23.1
152+
promise>=2.3
153+
propcache>=0.4.1
154+
proto-plus>=1.26.1
155+
protobuf>=5.29.5
156+
psutil>=7.0.0
157+
pyarrow>=21.0.0
158+
pyasn1-modules>=0.4.2
159+
pyasn1>=0.6.1
160+
pycnite>=2024.7.31
161+
pycparser>=2.23 ; implementation_name != 'PyPy' and platform_python_implementation == 'PyPy'
162+
pycryptodomex>=3.23.0
163+
pydantic-core>=2.41.1
164+
pydantic>=2.12.0
165+
pydot>=4.0.1
166+
pyelftools>=0.32
167+
pyglove>=0.4.5
168+
pygments>=2.19.2
169+
pyink>=24.10.1
170+
pylint>=3.3.9
171+
pyparsing>=3.2.3
172+
pyproject-hooks>=1.2.0
173+
pytest-xdist>=3.8.0
174+
pytest>=8.4.1
175+
python-dateutil>=2.9.0.post0
176+
python-dotenv>=1.1.1
177+
pytype>=2024.10.11
178+
pytz>=2025.2
179+
pyyaml>=6.0.3
180+
qwix>=0.1.1
181+
regex>=2025.9.18
182+
requests-oauthlib>=2.0.0
183+
requests>=2.32.5
184+
rich>=14.1.0
185+
rsa>=4.9.1
186+
safetensors>=0.6.2
187+
scipy>=1.16.0
188+
sentencepiece>=0.2.1
189+
seqio>=0.0.20
190+
setuptools>=80.9.0
191+
shapely>=2.1.2
192+
shortuuid>=1.0.13
193+
simple-parsing>=0.1.7
194+
simplejson>=3.20.2
195+
six>=1.17.0
196+
sniffio>=1.3.1
197+
sortedcontainers>=2.4.0
198+
starlette>=0.48.0
199+
sympy>=1.14.0
200+
tabulate>=0.9.0
201+
tenacity>=9.1.2
202+
tensorboard-data-server>=0.7.2
203+
tensorboard-plugin-profile>=2.13.0
204+
tensorboard>=2.19.0
205+
tensorboardx>=2.6.4
206+
tensorflow-datasets>=4.9.9
207+
tensorflow-metadata>=1.17.2
208+
tensorflow-text>=2.19.0
209+
tensorflow>=2.19.1
210+
tensorstore>=0.1.76
211+
termcolor>=3.1.0
212+
tiktoken>=0.12.0
213+
tokenizers>=0.22.1
214+
toml>=0.10.2
215+
tomlkit>=0.13.3
216+
toolz>=1.0.0
217+
tqdm>=4.67.1
218+
transformers>=4.57.0
219+
treescope>=0.1.10
220+
typing-extensions>=4.14.1
221+
typing-inspection>=0.4.2
222+
tzdata>=2025.2
223+
uritemplate>=4.2.0
224+
urllib3>=2.5.0
225+
uvicorn>=0.37.0
226+
virtualenv>=20.34.0
227+
wadler-lindig>=0.1.7
228+
websockets>=15.0.1
229+
werkzeug>=3.1.3
230+
wheel>=0.45.1
231+
wrapt>=1.17.3
232+
xxhash>=3.6.0
233+
yarl>=1.22.0
234+
zipp>=3.23.0
235+
zstandard>=0.23.0

0 commit comments

Comments
 (0)