Repository navigation
Add xpk recipes for training of WAN 2.2 T2V 14b for Ironwood (TPU 7x) - #321
Merged
Merged
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new training recipe for running the Wan 2.2 Text-to-Video 14B model on Ironwood GKE clusters using XPK, including documentation and a run script. Feedback on the run script suggests critical improvements: changing the Hugging Face cache directory from '/dev/shm' to '/tmp/hf_hub_cache' to prevent out-of-space errors on GKE, adding 'set -eo pipefail' for robust error handling, validating required environment variables before execution, and using '--no-deps --no-index' with 'pip install' to ensure compatibility with private or air-gapped clusters.
Toshi-31
force-pushed
the
add-wan2.2-t2v-ironwood
branch
from
September 21, 2026 09:46
5a94503 to
0b75b80
Compare
Toshi-31
force-pushed
the
add-wan2.2-t2v-ironwood
branch
from
September 23, 2026 06:57
0b99fb3 to
0b75b80
Compare
Toshi-31
force-pushed
the
add-wan2.2-t2v-ironwood
branch
from
September 30, 2026 13:53
0b75b80 to
1a31852
Compare
Toshi-31
force-pushed
the
add-wan2.2-t2v-ironwood
branch
from
October 12, 2026 05:54
1a31852 to
567a0f4
Compare
Perseus14
reviewed
Oct 13, 2026
Perseus14
approved these changes
Oct 13, 2026
Toshi-31
force-pushed
the
add-wan2.2-t2v-ironwood
branch
3 times, most recently
from
October 13, 2026 06:05
c4b8a9b to
5834ccd
Compare
Perseus14
approved these changes
Oct 13, 2026
Toshi-31
force-pushed
the
add-wan2.2-t2v-ironwood
branch
from
October 13, 2026 07:06
5834ccd to
3ed4869
Compare
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.
Summary
Adds the XPK pretraining recipe and documentation for Wan 2.2 T2V 14B (
720x1280x81) on Google Cloud TPU v7x (Ironwood) intraining/ironwood/wan2.2-t2v-14b/bf16-tpu7x-2x4x4/xpk/and updates the summary table intraining/ironwood/README.md.This recipe incorporates multi-dimensional FSDP+CP parallelism, custom Pallas splash attention kernels with tuned tiles (
block_q=2816,block_kv_compute_in=4096forward;block_kv_dkv=4096,dq_reduction_steps=3fused backward), chunked Ulysses context parallelism (ulysses_attention_chunks=2), and selective attention output rematerialization, achieving 12.15 s / step (402.67 TFLOP/s/device, 40.43% MFU vs the 996 TFLOP/s/device BF16 peak) ontpu7x-2x4x4.Companion PR is open in
AI-Hypercomputer/maxdiffusion: AI-Hypercomputer/maxdiffusion#487.Optimization Progression (Wan 2.2 T2V 14B on TPU v7x)
MFU is reported against the TPU v7x BF16 peak of 996 TFLOP/s per device. Model FLOPs: 4,892.47 TFLOP/device/step; step time is the mean of steady-state steps 2–10.
39.70 s123.2412.37%27.63 s177.0717.78%21.82 s224.2222.51%19.37 s252.5825.36%15.02 s325.7332.70%13.57 s360.4636.19%pl.CostEstimate12.15 s402.6740.43%tpu7x-2x4x4(64 TensorCore devices, 32 chips, 8 hosts)720x1280x81, batch size per device = 0.25,ici_fsdp=16, ici_cp=4, ici_tp=1)gs://wan2-2-training/toshipahadia-wan22-aishared-outputs/tp-wan22-v7a-e4tilescost-0930-1400/