ITADN

MXU utility doesn't support TPU inference in XProf.

#2206Openwindtara0619 创建于 2026-01-23
W
windtara0619commented
Hi team, I noticed that the XProf overview page does not appear to report MXU utilization correctly during TPU inference. Below is a minimal example that reproduces the issue, followed by a screenshot of the XProf output. @jax.jit def matrix_multiply(a, b): return jnp.dot(a, b) key = jax.random.PRNGKey(0) a = jax.random.normal(key, (1024, 1024), dtype=jnp.bfloat16) b = jax.random.normal(key, (1024, 1024), dtype=jnp.bfloat16) old_result = matrix_multiply(a, b) old_result.block_until_ready() profile_dir = '/tmp/jax_profile' os.makedirs(profile_dir, exist_ok=True) jax.profiler.start_trace(profile_dir) result = matrix_multiply(a, b) result.block_until_ready() jax.profiler.stop_trace() <img width="1358" height="836" alt="Image" src="https://github.com/user-attachments/assets/f418987c-ae6b-4a6c-8933-d62f0f1e97d7" /> Is this a known limitation? Are there any recommended fixes or workarounds?
0 条评论