Skip to content

Commit d352bc9

Browse files
Merge pull request #2550 from AI-Hypercomputer:mohit/fix_tokamax
PiperOrigin-RevId: 825207803
2 parents a8499dd + 57fd0e4 commit d352bc9

5 files changed

Lines changed: 122 additions & 101 deletions

File tree

.github/workflows/run_tests_against_package.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ on:
3131
pytest_marker:
3232
required: true
3333
type: string
34+
pytest_addopts:
35+
required: false
36+
type: string
37+
default: ''
3438
is_scheduled_run:
3539
required: true
3640
type: string
@@ -107,4 +111,4 @@ jobs:
107111
fi
108112
# TODO: Fix the skipped tests and remove the deselect flags
109113
[ "${{ inputs.total_workers }}" -gt 1 ] && .venv/bin/python3 -m pip install --quiet pytest-split && SPLIT_ARGS="--splits ${{ inputs.total_workers }} --group ${{ inputs.worker_group }}" || SPLIT_ARGS=""
110-
.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" $SPLIT_ARGS
114+
.venv/bin/python3 -m pytest ${{ inputs.pytest_addopts }} -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" $SPLIT_ARGS

generated_requirements/cuda12-requirements.txt

Lines changed: 93 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -2,120 +2,127 @@
22
# If you need to modify dependencies, please do so in the host requirements file and run seed-env again.
33

44
absl-py>=2.3.1
5-
aiofiles>=24.1.0
5+
aiofiles>=25.1.0
66
aiohappyeyeballs>=2.6.1
7-
aiohttp>=3.13.0
7+
aiohttp>=3.13.1
88
aiosignal>=1.4.0
9+
annotated-doc>=0.0.3
910
annotated-types>=0.7.0
1011
antlr4-python3-runtime>=4.9.3
1112
anyio>=4.11.0
1213
aqtp>=0.9.0
13-
array-record>=0.8.1
14-
astroid>=3.3.11
14+
array-record>=0.8.2
15+
astroid>=4.0.1
1516
astunparse>=1.6.3
16-
attrs>=25.3.0
17-
auditwheel>=6.4.1
17+
attrs>=25.4.0
18+
auditwheel>=6.4.2
1819
black>=24.10.0
1920
blobfile>=3.1.0
20-
build>=1.2.2.post1
21-
cachetools>=6.2.0
21+
build>=1.3.0
22+
cachetools>=6.2.1
2223
certifi>=2025.10.5
23-
cffi>=2.0.0 ; platform_python_implementation == 'PyPy'
2424
cfgv>=3.4.0
25-
charset-normalizer>=3.4.3
26-
chex>=0.1.90
25+
charset-normalizer>=3.4.4
26+
cheroot>=11.0.0
27+
chex>=0.1.91
2728
click>=8.3.0
2829
cloud-accelerator-diagnostics>=0.1.1
2930
cloud-tpu-diagnostics>=0.1.5
3031
cloudpickle>=3.1.1
3132
clu>=0.0.12
3233
colorama>=0.4.6
33-
contourpy>=1.3.2
34-
coverage>=7.10.7
34+
contourpy>=1.3.3
35+
coverage>=7.11.0
3536
cycler>=0.12.1
36-
datasets>=4.2.0
37+
datasets>=4.3.0
3738
decorator>=5.2.1
3839
dill>=0.4.0
3940
distlib>=0.4.0
4041
dm-tree>=0.1.9
4142
docstring-parser>=0.17.0
4243
editdistance>=0.8.1
4344
einops>=0.8.1
45+
einshape>=1.0
4446
etils>=1.13.0
4547
evaluate>=0.4.6
4648
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
49+
fastapi>=0.120.1
50+
filelock>=3.20.0
51+
flatbuffers>=25.9.23
52+
flax>=0.12.0
53+
fonttools>=4.60.1
5254
frozenlist>=1.8.0
53-
fsspec>=2025.7.0
55+
fsspec>=2025.9.0
5456
gast>=0.6.0
55-
gcsfs>=2025.7.0
56-
google-api-core>=2.26.0
57-
google-api-python-client>=2.184.0
57+
gcsfs>=2025.9.0
58+
google-api-core>=2.28.0
59+
google-api-python-client>=2.185.0
5860
google-auth-httplib2>=0.2.0
5961
google-auth-oauthlib>=1.2.2
6062
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
63+
google-benchmark>=1.9.4
64+
google-cloud-aiplatform>=1.122.0
65+
google-cloud-appengine-logging>=1.7.0
66+
google-cloud-audit-log>=0.4.0
6467
google-cloud-bigquery>=3.38.0
6568
google-cloud-core>=2.4.3
6669
google-cloud-logging>=3.12.1
67-
google-cloud-monitoring>=2.27.2
68-
google-cloud-resource-manager>=1.14.2
70+
google-cloud-monitoring>=2.28.0
71+
google-cloud-resource-manager>=1.15.0
6972
google-cloud-storage>=2.19.0
7073
google-crc32c>=1.7.1
71-
google-genai>=1.42.0
74+
google-genai>=1.46.0
75+
google-jetstream @ https://github.com/AI-Hypercomputer/JetStream/archive/29329e8e73820993f77cfc8efe34eb2a73f5de98.zip
7276
google-pasta>=0.2.0
7377
google-resumable-media>=2.7.2
74-
googleapis-common-protos>=1.70.0
75-
grain>=0.2.12
76-
grpc-google-iam-v1>=0.14.2
78+
googleapis-common-protos>=1.71.0
79+
grain>=0.2.13
80+
grpc-google-iam-v1>=0.14.3
7781
grpcio-status>=1.71.2
7882
grpcio>=1.75.1
7983
gviz-api>=1.10.0
8084
h11>=0.16.0
81-
h5py>=3.14.0
82-
hf-xet>=1.1.10 ; platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'
85+
h5py>=3.15.1
86+
hf-xet>=1.2.0 ; platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'
8387
httpcore>=1.0.9
8488
httplib2>=0.31.0
8589
httpx>=0.28.1
86-
huggingface-hub>=0.35.3
87-
humanize>=4.13.0
88-
hypothesis>=6.136.4
90+
huggingface-hub>=0.36.0
91+
humanize>=4.14.0
92+
hypothesis>=6.142.1
8993
identify>=2.6.15
90-
idna>=3.10
91-
immutabledict>=4.2.1
94+
idna>=3.11
95+
immutabledict>=4.2.2
9296
importlab>=0.8.1
9397
importlib-metadata>=8.7.0
9498
importlib-resources>=6.5.2
9599
iniconfig>=2.1.0
96-
isort>=6.1.0
97-
jax-cuda12-pjrt>=0.7.0, !=0.7.1, !=0.7.2 ; sys_platform == 'linux'
98-
jax-cuda12-plugin>=0.7.0, !=0.7.1, !=0.7.2 ; sys_platform == 'linux'
99-
jax>=0.7.0, !=0.7.1, !=0.7.2
100-
jaxlib>=0.7.0, !=0.7.1, !=0.7.2
100+
isort>=7.0.0
101+
jaraco-functools>=4.3.0
102+
jax-cuda12-pjrt>=0.8.0 ; sys_platform == 'linux'
103+
jax-cuda12-plugin>=0.8.0 ; sys_platform == 'linux'
104+
jax-triton>=0.3.0
105+
jax>=0.8.0
106+
jaxlib>=0.8.0
101107
jaxtyping>=0.3.3
102108
jinja2>=3.1.6
103109
joblib>=1.5.2
104110
jsonlines>=4.0.0
105111
keras>=3.11.3
106-
kiwisolver>=1.4.8
112+
kiwisolver>=1.4.9
107113
libclang>=18.1.1
108114
libcst>=1.8.5
109115
lxml>=6.0.2
110-
markdown-it-py>=3.0.0
116+
markdown-it-py>=4.0.0
111117
markdown>=3.9
112118
markupsafe>=3.0.3
113-
matplotlib>=3.10.3
119+
matplotlib>=3.10.7
114120
mccabe>=0.7.0
115121
mdurl>=0.1.2
116122
ml-collections>=1.1.0
117123
ml-dtypes>=0.5.3
118124
ml-goodput-measurement>=0.0.15
125+
mlperf-logging @ https://github.com/mlcommons/logging/archive/38ab22670527888c8eb7825a4ece176fcc36a95d.zip
119126
more-itertools>=10.8.0
120127
mpmath>=1.3.0
121128
msgpack>=1.1.2
@@ -129,32 +136,34 @@ networkx>=3.5
129136
ninja>=1.13.0
130137
nltk>=3.9.2
131138
nodeenv>=1.9.1
139+
numpy-typing-compat>=20250818.2.0
132140
numpy>=2.0.2
133-
nvidia-cublas-cu12>=12.9.1.4
134-
nvidia-cuda-cupti-cu12>=12.9.79
135-
nvidia-cuda-nvcc-cu12>=12.9.86
141+
nvidia-cublas-cu12>=12.9.1.4 ; sys_platform == 'linux'
142+
nvidia-cuda-cupti-cu12>=12.9.79 ; sys_platform == 'linux'
143+
nvidia-cuda-nvcc-cu12>=12.9.86 ; sys_platform == 'linux'
136144
nvidia-cuda-nvrtc-cu12>=12.9.86 ; sys_platform == 'linux'
137-
nvidia-cuda-runtime-cu12>=12.9.79
138-
nvidia-cudnn-cu12>=9.11.0.98
139-
nvidia-cufft-cu12>=11.4.1.4
140-
nvidia-cusolver-cu12>=11.7.5.82
141-
nvidia-cusparse-cu12>=12.5.10.65
142-
nvidia-nccl-cu12>=2.27.6
143-
nvidia-nvjitlink-cu12>=12.9.86
144-
nvidia-nvshmem-cu12>=3.3.9 ; sys_platform == 'linux'
145+
nvidia-cuda-runtime-cu12>=12.9.79 ; sys_platform == 'linux'
146+
nvidia-cudnn-cu12>=9.14.0.64 ; sys_platform == 'linux'
147+
nvidia-cufft-cu12>=11.4.1.4 ; sys_platform == 'linux'
148+
nvidia-cusolver-cu12>=11.7.5.82 ; sys_platform == 'linux'
149+
nvidia-cusparse-cu12>=12.5.10.65 ; sys_platform == 'linux'
150+
nvidia-nccl-cu12>=2.28.3 ; sys_platform == 'linux'
151+
nvidia-nvjitlink-cu12>=12.9.86 ; sys_platform == 'linux'
152+
nvidia-nvshmem-cu12>=3.4.5 ; sys_platform == 'linux'
145153
oauthlib>=3.3.1
146154
omegaconf>=2.3.0
147-
opentelemetry-api>=1.37.0
155+
opentelemetry-api>=1.38.0
148156
opt-einsum>=3.4.0
149157
optax>=0.2.6
150158
optree>=0.17.0
151-
orbax-checkpoint>=0.11.25
159+
optype>=0.14.0
160+
orbax-checkpoint>=0.11.26
152161
packaging>=25.0
153162
pandas>=2.3.3
154163
parameterized>=0.9.0
155164
pathspec>=0.12.1
156165
pathwaysutils>=0.1.3
157-
pillow>=11.3.0
166+
pillow>=12.0.0
158167
platformdirs>=4.5.0
159168
pluggy>=1.6.0
160169
portpicker>=1.6.0
@@ -164,37 +173,37 @@ promise>=2.3
164173
propcache>=0.4.1
165174
proto-plus>=1.26.1
166175
protobuf>=5.29.5
167-
psutil>=7.0.0
168-
pyarrow>=21.0.0
176+
psutil>=7.1.0
177+
pyarrow>=22.0.0
169178
pyasn1-modules>=0.4.2
170179
pyasn1>=0.6.1
171180
pycnite>=2024.7.31
172-
pycparser>=2.23 ; implementation_name != 'PyPy' and platform_python_implementation == 'PyPy'
173181
pycryptodomex>=3.23.0
174-
pydantic-core>=2.41.1
175-
pydantic>=2.12.0
182+
pydantic-core>=2.41.4
183+
pydantic>=2.12.3
176184
pydot>=4.0.1
177185
pyelftools>=0.32
178186
pyglove>=0.4.5
179187
pygments>=2.19.2
180188
pyink>=24.10.1
181-
pylint>=3.3.9
182-
pyparsing>=3.2.3
189+
pylint>=4.0.2
190+
pyparsing>=3.2.5
183191
pyproject-hooks>=1.2.0
184192
pytest-xdist>=3.8.0
185-
pytest>=8.4.1
193+
pytest>=8.4.2
186194
python-dateutil>=2.9.0.post0
187195
pytype>=2024.10.11
188196
pytz>=2025.2
189197
pyyaml>=6.0.3
190198
qwix>=0.1.1
191-
regex>=2025.9.18
199+
regex>=2025.10.23
192200
requests-oauthlib>=2.0.0
193201
requests>=2.32.5
194-
rich>=14.1.0
202+
rich>=14.2.0
195203
rsa>=4.9.1
196204
safetensors>=0.6.2
197-
scipy>=1.16.0
205+
scipy-stubs>=1.16.2.4
206+
scipy>=1.16.2
198207
sentencepiece>=0.2.1
199208
seqio>=0.0.20
200209
setuptools>=80.9.0
@@ -217,32 +226,36 @@ tensorflow-datasets>=4.9.9
217226
tensorflow-metadata>=1.17.2
218227
tensorflow-text>=2.19.0
219228
tensorflow>=2.19.1
220-
tensorstore>=0.1.76
229+
tensorstore>=0.1.78
221230
termcolor>=3.1.0
222231
tiktoken>=0.12.0
232+
tokamax>=0.0.4
223233
tokenizers>=0.22.1
224234
toml>=0.10.2
225235
tomlkit>=0.13.3
226-
toolz>=1.0.0
236+
toolz>=1.1.0
227237
tqdm>=4.67.1
228238
transformer-engine-cu12>=2.8.0
229239
transformer-engine-jax>=2.8.0
230240
transformer-engine>=2.8.0
231-
transformers>=4.57.0
241+
transformers>=4.57.1
232242
treescope>=0.1.10
233-
typing-extensions>=4.14.1
243+
triton>=3.5.0
244+
typeguard>=2.13.3
245+
typing-extensions>=4.15.0
234246
typing-inspection>=0.4.2
235247
tzdata>=2025.2
236248
uritemplate>=4.2.0
237249
urllib3>=2.5.0
238-
uvicorn>=0.37.0
239-
virtualenv>=20.34.0
250+
uvicorn>=0.38.0
251+
virtualenv>=20.35.3
240252
wadler-lindig>=0.1.7
241253
websockets>=15.0.1
242254
werkzeug>=3.1.3
243255
wheel>=0.45.1
244-
wrapt>=1.17.3
256+
wrapt>=2.0.0
257+
xprof>=2.20.7
245258
xxhash>=3.6.0
246259
yarl>=1.22.0
247260
zipp>=3.23.0
248-
zstandard>=0.23.0
261+
zstandard>=0.25.0

src/MaxText/configs/base.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,3 +884,4 @@ use_qk_norm_in_gdn: True
884884

885885
# Use tokamax library for gmm kernel implementation
886886
use_tokamax_gmm: false
887+
use_tokamax_splash: false

0 commit comments

Comments
 (0)