Skip to content

Bump Flax version for latest JAX compatibility#3476

Open
bvandermoon wants to merge 1 commit intomainfrom
bvandermoon-bump-flax
Open

Bump Flax version for latest JAX compatibility#3476
bvandermoon wants to merge 1 commit intomainfrom
bvandermoon-bump-flax

Conversation

@bvandermoon
Copy link
Collaborator

@bvandermoon bvandermoon commented Mar 20, 2026

Description

Bump Flax version to support latest JAX nightly. I was seeing this error for a nightly benchmark runner workload which is tied to JAX/Flax incompatibility: TypeError: ShapedArray.__init__() got an unexpected keyword argument 'vma'

Note that we need to generate a clean seed-env run soon. Not doing that here since all MaxText APIs are not currently compatible with the latest JAX version

Tests

build_maxtext_docker_image MODE=stable
python3 -m benchmarks.benchmark_runner xpk \
    --project=tpu-prod-env-one-vm \
    --zone=southamerica-west1 \
    --device_type=v6e-256 \
    --num_slices=1  \
    --cluster_name=$CLUSTER_NAME \
    --base_output_directory=$BASE_OUTPUT_DIRECTORY \
    --model_name="llama3_1_70b_8192" \
    --base_docker_image=maxtext_base_image
build_maxtext_docker_image MODE=nightly
python3 -m benchmarks.benchmark_runner xpk \
    --project=tpu-prod-env-one-vm \
    --zone=southamerica-west1 \
    --device_type=v6e-256 \
    --num_slices=1  \
    --cluster_name=$CLUSTER_NAME \
    --base_output_directory=$BASE_OUTPUT_DIRECTORY \
    --model_name="llama3_1_70b_8192" \
    --base_docker_image=maxtext_base_image

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

@codecov
Copy link

codecov bot commented Mar 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@bvandermoon bvandermoon force-pushed the bvandermoon-bump-flax branch from 1dbf5aa to 3841c87 Compare March 21, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant