Skip to content

Commit

Permalink
fix LTXV support
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzeyi committed Jan 8, 2025
1 parent 5d05d19 commit b60a584
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion first_block_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ def __init__(
self.residual_diff_threshold = residual_diff_threshold
self.return_hidden_states_first = return_hidden_states_first

def forward(self, img, txt, *args, **kwargs):
def forward(self, img, txt=None, context=None, *args, **kwargs):
if context is not None:
txt = context # for LTXV
hidden_states = img
encoder_hidden_states = txt
if self.residual_diff_threshold <= 0.0:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "wavespeed"
description = ""
version = "1.0.1"
version = "1.0.2"
license = {file = "LICENSE"}

[project.urls]
Expand Down

0 comments on commit b60a584

Please sign in to comment.