Skip to content

Commit

Permalink
Fix chunking in SVD (huggingface#6350)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
DN6 authored and donhardman committed Dec 29, 2023
1 parent 6893b27 commit 70ed668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffusers/models/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def forward(
hidden_states = self.norm_in(hidden_states)

if self._chunk_size is not None:
hidden_states = _chunked_feed_forward(self.ff, hidden_states, self._chunk_dim, self._chunk_size)
hidden_states = _chunked_feed_forward(self.ff_in, hidden_states, self._chunk_dim, self._chunk_size)
else:
hidden_states = self.ff_in(hidden_states)

Expand Down

0 comments on commit 70ed668

Please sign in to comment.