Repository navigation
Conversation
In tensor parallel, rank 0 loads the checkpoint on the CPU and sends
each rank its weight slice with dist.send over the NCCL TP group, which
cannot send CPU tensors:
RuntimeError: No backend type associated with device type cpu
Rank 0 then waits in destroy_process_group while rank 1 waits in recv,
so the run hangs without printing the error. Move the slice to the
device first, as the non-TP path and the Wan and Flux.2 loaders do.
LTX-2 19B dev, t2av, ltx2_tp.json (TP2) at 512x768, 97 frames, 40
steps: loads and runs; final video vs. single GPU per-frame PSNR
42.6 dB mean (bf16 reduction order), no visible difference.
Signed-off-by: Lin, KuanTing <Kuanting.Lin@amd.com>
klin-amd
marked this pull request as ready for review
November 15, 2026 11:56
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.
Problem
LTX-2 tensor parallel (
configs/ltx2/ltx2_tp.json,tensor_p_size: 2) fails while loading the model. Rank 0 loads the checkpoint on the CPU, andLTX2Model._load_weights_from_rank0sends each rank its TP weight slice withdist.sendover the NCCL TP group without moving it to the device:Rank 0 then waits in
destroy_process_groupwhile rank 1 waits indist.recv, so the run hangs with both GPUs idle and the error is not printed (see #1712).Fix
Move the slice to the device before
dist.send, as the non-TP path in the same function and the Wan and Flux.2 TP loaders already do.Test
LTX-2 19B dev, t2av,
ltx2_tp.json(TP2) with 512x768, 97 frames andflash_attn3, 40 steps, seed 42, H100, compared with a single-GPU run of the same config:pre-commit runpasses on the changed file.