Support DeepSWE evaluation pipeline on v5p-32 cluster with MaxText and Pathways - #2071
Open
susanbao wants to merge 47 commits into
Open
Support DeepSWE evaluation pipeline on v5p-32 cluster with MaxText and Pathways#2071susanbao wants to merge 47 commits into
susanbao wants to merge 47 commits into
Conversation
…urce buffers in Pathways resharding
…ray deletion in utils.py
…ase proxy compilation memory
…ler and eval_deepswe
… prevent initialization hang
…ass Pathways compilation
… key construction on Pathways
… level in tpu_runner.py
…event Pathways proxy hangs
…IR constant lowering
…)[0] for PRNG key placement
…mory accumulation in Pathways proxy
…accumulation in Pathways proxy
… model allocation
susanbao
requested review from
abheesht17,
hgao327,
jiangyangmu,
lc5211,
s-noghabi,
sizhit2,
tianshub and
wang2yn84
as code owners
September 1, 2026 05:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #
Description
This PR adds support for the DeepSWE evaluation pipeline on v5p-32 cluster with MaxText and Pathways:
Evaluation Pipeline (
examples/deepswe/eval_deepswe.py):google-cloud-storagePython client.gc.collect(),deloutputs) andcontinue_decodesupport.Resharding & Weight Transfer Optimization (
tunix/generate/utils.py,tunix/rl/reshard.py,tunix/generate/vllm_sampler.py):_reshard_in_chunksto update destination state in-place, deleting source chunk buffers and clearing caches to prevent memory accumulation in Pathways proxy.jax.device_putfor single-slice resharding and enablesdonate_input=True.Sampler & Trajectory Engine Support (
tunix/generate/base_sampler.py,tunix/rl/agentic/trajectory/trajectory_collect_engine.py):left_padded_prompt_tokensandpadded_prompt_tokensonSamplerOutput.max_generation_stepsandmax_response_lengthforwarding in engine kwargs.TPU / Pathways Initialization & Checkpoint Support (
scripts/patch_tpu_runner.py,tunix/models/automodel.py):scripts/patch_tpu_runner.pyto patchrng_params_for_samplingdirectly on TPU mesh without nnx.Rngs / Pathways proxy compilation hangs.checkpoint_storage_concurrent_gbinAutoModelfor Orbax restore efficiency with large tensors.Dockerfile Updates:
INSTALL_DEEPSWE_DEPSdefault to true, adds Dockerfile layer caching optimizations withCACHEBUSTARG, and sets full system PATH.Checklist