softcache 0.1.0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: softcache
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: SoftCache: training-free caching with adaptive jumps for FLUX.1-dev, HunyuanVideo and Wan2.1.
5
5
  Project-URL: Homepage, https://www.malnick.net/softcache/
6
6
  Project-URL: Repository, https://github.com/ShimonMalnick/softcache
@@ -12,17 +12,18 @@ Keywords: acceleration,caching,diffusers,diffusion,flux,hunyuanvideo,wan
12
12
  Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
14
14
  Requires-Python: >=3.10
15
- Requires-Dist: accelerate
16
- Requires-Dist: diffusers>=0.39
17
- Requires-Dist: ftfy
18
- Requires-Dist: imageio
19
- Requires-Dist: imageio-ffmpeg
20
- Requires-Dist: numpy
21
- Requires-Dist: pillow
22
- Requires-Dist: protobuf
23
- Requires-Dist: sentencepiece
24
15
  Requires-Dist: torch>=2.5
25
- Requires-Dist: transformers>=5.13
16
+ Provides-Extra: diffusers
17
+ Requires-Dist: accelerate; extra == 'diffusers'
18
+ Requires-Dist: diffusers>=0.39; extra == 'diffusers'
19
+ Requires-Dist: ftfy; extra == 'diffusers'
20
+ Requires-Dist: imageio; extra == 'diffusers'
21
+ Requires-Dist: imageio-ffmpeg; extra == 'diffusers'
22
+ Requires-Dist: numpy; extra == 'diffusers'
23
+ Requires-Dist: pillow; extra == 'diffusers'
24
+ Requires-Dist: protobuf; extra == 'diffusers'
25
+ Requires-Dist: sentencepiece; extra == 'diffusers'
26
+ Requires-Dist: transformers>=5.13; extra == 'diffusers'
26
27
  Description-Content-Type: text/markdown
27
28
 
28
29
  <h1 align="center">SoftCache</h1>
@@ -67,14 +68,14 @@ From a clone (the exact tested stack, pinned in `uv.lock`):
67
68
 
68
69
  ```bash
69
70
  git clone --recursive https://github.com/ShimonMalnick/softcache && cd softcache # SeaCache is a submodule
70
- uv sync
71
+ uv sync --extra diffusers
71
72
  uv run softcache --prompts prompts.json --out outputs # --model-family flux | hunyuan | wan
72
73
  ```
73
74
 
74
75
  Or with pip (newest compatible `torch`, `diffusers` and `transformers`):
75
76
 
76
77
  ```bash
77
- pip install softcache # or: pip install git+https://github.com/ShimonMalnick/softcache
78
+ pip install "softcache[diffusers]" # or: pip install "softcache[diffusers] @ git+https://github.com/ShimonMalnick/softcache"
78
79
  softcache --prompts prompts.json --out outputs
79
80
  ```
80
81
 
@@ -40,14 +40,14 @@ From a clone (the exact tested stack, pinned in `uv.lock`):
40
40
 
41
41
  ```bash
42
42
  git clone --recursive https://github.com/ShimonMalnick/softcache && cd softcache # SeaCache is a submodule
43
- uv sync
43
+ uv sync --extra diffusers
44
44
  uv run softcache --prompts prompts.json --out outputs # --model-family flux | hunyuan | wan
45
45
  ```
46
46
 
47
47
  Or with pip (newest compatible `torch`, `diffusers` and `transformers`):
48
48
 
49
49
  ```bash
50
- pip install softcache # or: pip install git+https://github.com/ShimonMalnick/softcache
50
+ pip install "softcache[diffusers]" # or: pip install "softcache[diffusers] @ git+https://github.com/ShimonMalnick/softcache"
51
51
  softcache --prompts prompts.json --out outputs
52
52
  ```
53
53
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "softcache"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "SoftCache: training-free caching with adaptive jumps for FLUX.1-dev, HunyuanVideo and Wan2.1."
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -12,7 +12,11 @@ classifiers = [
12
12
  ]
13
13
  requires-python = ">=3.10"
14
14
  dependencies = [
15
- "torch>=2.5",
15
+ "torch>=2.5", # the method itself, and the ComfyUI nodes, need only torch
16
+ ]
17
+
18
+ [project.optional-dependencies]
19
+ diffusers = [ # the FLUX / HunyuanVideo / Wan pipelines and the `softcache` CLI
16
20
  "diffusers>=0.39",
17
21
  "transformers>=5.13",
18
22
  "accelerate",
@@ -5,8 +5,12 @@ import json
5
5
  from pathlib import Path
6
6
 
7
7
  import torch
8
- from diffusers import FluxPipeline, HunyuanVideoPipeline, WanPipeline
9
- from diffusers.utils import export_to_video
8
+
9
+ try:
10
+ from diffusers import FluxPipeline, HunyuanVideoPipeline, WanPipeline
11
+ from diffusers.utils import export_to_video
12
+ except ImportError as e:
13
+ raise SystemExit('softcache: the pipelines need the diffusers extra: pip install "softcache[diffusers]"') from e
10
14
 
11
15
  from . import flux, hunyuan, wan
12
16
  from .method import Config
File without changes
File without changes
File without changes
File without changes