Skip to content

Commit 26a5eaf

Browse files
authored
style: make linter happy (#192)
* style: make linter happy * upgrade the version
1 parent 5d3a9a6 commit 26a5eaf

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

nodes/models/flux.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,19 @@ def forward(
9898
controlnet_block_samples = None if control is None else [y.to(x.dtype) for y in control["input"]]
9999
controlnet_single_block_samples = None if control is None else [y.to(x.dtype) for y in control["output"]]
100100
if getattr(model, "_is_cached", False):
101-
# A more robust caching strategy
101+
# A more robust caching strategy
102102
cache_invalid = False
103-
104-
# Check if timestamps have changed or are out of valid range
103+
104+
# Check if timestamps have changed or are out of valid range
105105
if self._prev_timestep is None:
106106
cache_invalid = True
107-
elif abs(self._prev_timestep - timestep_float) > 1e-5: # Add a tolerance
107+
elif abs(self._prev_timestep - timestep_float) > 1e-5: # Add a tolerance
108108
cache_invalid = True
109-
109+
110110
if cache_invalid:
111111
self._cache_context = create_cache_context()
112-
113-
# Update the previous timestamp
112+
113+
# Update the previous timestamp
114114
self._prev_timestep = timestep_float
115115
with cache_context(self._cache_context):
116116
out = model(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ line-length = 120
1616
[project]
1717
name = "ComfyUI-nunchaku"
1818
description = "Nunchaku ComfyUI Node. Nunchaku is the inference engine that supports SVDQuant. SVDQuant is a new post-training training quantization paradigm for diffusion models, which quantize both the weights and activations of FLUX.1 to 4 bits, achieving 3.5× memory and 8.7× latency reduction on a 16GB laptop 4090 GPU. See more details: https://github.com/mit-han-lab/nunchaku"
19-
version = "0.3.0dev1"
19+
version = "0.3.0dev2"
2020
license = { file = "LICENSE.txt" }
2121
dependencies = []
2222
requires-python = ">=3.10, <3.13"

0 commit comments

Comments
 (0)