[Pallas][MPMD] Preserve out_avals memory spaces in _mpmd_map_discharge_rule #40777

Open
copybara-service[bot] opened 4:27pm on September 17, 2026 wants to merge 1 commit into google/jax main from
test_983480985

Pull Request Overview

  • Opened on September 17, 2026
  • Status Open
  • Commit count 1 with first commit September 17, 2026

Total Delta

0 Total Diff Delta

Open Days

Open 2 weekdays

Test Delta

0 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Data pending calculation for pull request

Author avatar

[Pallas][MPMD] Preserve out_avals memory spaces in _mpmd_map_discharge_rule

[Pallas][MPMD] Preserve out_avals memory spaces in _mpmd_map_discharge_rule

_mpmd_map_abstract_eval strips Pallas memory spaces from eqn.outvars to
jax_core.MemorySpace.Device while eqn.params["out_avals"] retains the
original Pallas memory spaces. Previously, _mpmd_map_discharge_rule discarded
eqn.params["out_avals"] and constructed updated_out_avals from
ctx.out_avals, erasing out_type memory spaces on discharged mpmd_map
kernels and omitting output_memory_space_colors during TPU lowering.

Preserve out_avals in _mpmd_map_discharge_rule and add a unit test in
tpu_pallas_mpmd_test.py.

No comments have been left on this PR.