Skip to content

Commit ca726d2

Browse files
committed
only step jit
1 parent 30514d0 commit ca726d2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/maxdiffusion/models/wan/autoencoder_kl_wan.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ def __call__(self, x: jax.Array, cache_x: Optional[jax.Array] = None, idx=-1) ->
134134
else:
135135
x_padded = x
136136

137-
if self.mesh is not None:
138-
# (B, D, H, W, C)
139-
if x_padded.shape[0] % self.mesh.shape['data'] == 0:
140-
x_padded = with_sharding_constraint(x_padded, PartitionSpec('data', None, None, None, None))
137+
# if self.mesh is not None:
138+
# # (B, D, H, W, C)
139+
# if x_padded.shape[0] % self.mesh.shape['data'] == 0:
140+
# x_padded = with_sharding_constraint(x_padded, PartitionSpec('data', None, None, None, None))
141141

142142
out = self.conv(x_padded)
143143
return out

0 commit comments

Comments
 (0)