You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed the Pallas and OpenXLA docs say the TPU v4 has SparseCores, but the current JAX code doesn't support accessing them.
from jax.experimental.pallas import tpu as pltpu
print(pltpu.get_tpu_info())
assert pltpu.get_tpu_info().sparse_core is not None, "No SparseCore found"
TpuInfo(chip_version=<ChipVersion.TPU_V4: 'v4'>, generation=4, num_cores=2, num_lanes=128, num_sublanes=8, mxu_column_size=128, vmem_capacity_bytes=16777216, cmem_capacity_bytes=67000000, smem_capacity_bytes=1048576, hbm_capacity_bytes=17200000000, mem_bw_bytes_per_second=615000000000, bf16_ops_per_second=137500000000000, int8_ops_per_second=0, fp8_ops_per_second=0, int4_ops_per_second=0, sparse_core=None)
Traceback (most recent call last):
File "/tmp/sparse2.py", line 4, in <module>
assert pltpu.get_tpu_info().sparse_core is not None, "No SparseCore found"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: No SparseCore found
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I noticed the Pallas and OpenXLA docs say the TPU v4 has SparseCores, but the current JAX code doesn't support accessing them.
References
jax/docs/pallas/tpu/sparsecore.md
Lines 57 to 66 in 231b735
Furthermore, from the tests, it seems like Pallas SparseCore support is explicitly restricted to v5p+:
jax/tests/pallas/tpu_sparsecore_pallas_test.py
Lines 49 to 54 in 231b735
My questions:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions