From ec8582ccf72f9756ae3c561075ca5ce1dbbc0e51 Mon Sep 17 00:00:00 2001 From: gaclove Date: Mon, 31 Aug 2026 18:47:47 +0800 Subject: [PATCH 1/2] fix(seedvr): restore distributed ops exports --- lightx2v/models/networks/seedvr/utils/ops.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lightx2v/models/networks/seedvr/utils/ops.py b/lightx2v/models/networks/seedvr/utils/ops.py index 0756eaca4..8785a717f 100644 --- a/lightx2v/models/networks/seedvr/utils/ops.py +++ b/lightx2v/models/networks/seedvr/utils/ops.py @@ -1,5 +1,12 @@ import torch.nn.functional as F +from lightx2v.models.video_encoders.hf.seedvr.common.distributed.ops import ( + gather_heads_scatter_seq, + gather_outputs, + gather_seq_scatter_heads_qkv, + slice_inputs, +) + def safe_pad_operation(x, pad): return F.pad(x, pad) From a5c20c84a4f7385c78ba55eb8d5329323fb0412a Mon Sep 17 00:00:00 2001 From: gaclove Date: Mon, 31 Aug 2026 18:55:03 +0800 Subject: [PATCH 2/2] style(seedvr): make compatibility aliases explicit --- lightx2v/models/networks/seedvr/utils/ops.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lightx2v/models/networks/seedvr/utils/ops.py b/lightx2v/models/networks/seedvr/utils/ops.py index 8785a717f..4535e77bd 100644 --- a/lightx2v/models/networks/seedvr/utils/ops.py +++ b/lightx2v/models/networks/seedvr/utils/ops.py @@ -1,11 +1,11 @@ import torch.nn.functional as F -from lightx2v.models.video_encoders.hf.seedvr.common.distributed.ops import ( - gather_heads_scatter_seq, - gather_outputs, - gather_seq_scatter_heads_qkv, - slice_inputs, -) +from lightx2v.models.video_encoders.hf.seedvr.common.distributed import ops as distributed_ops + +gather_heads_scatter_seq = distributed_ops.gather_heads_scatter_seq +gather_outputs = distributed_ops.gather_outputs +gather_seq_scatter_heads_qkv = distributed_ops.gather_seq_scatter_heads_qkv +slice_inputs = distributed_ops.slice_inputs def safe_pad_operation(x, pad):