Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Hold EasyCache-AV back: the High level samples all 20 steps until the reuse guard ships

Bowen Xueffc0f769a3f1
diff --git a/freevideo_engine/step_cache.py b/freevideo_engine/step_cache.py
index 2ea6463..d6604ed 100644
--- a/freevideo_engine/step_cache.py
+++ b/freevideo_engine/step_cache.py
@@ -48,6 +48,9 @@ DEFAULTS = {'easycache-av': 0.2, 'fbcache': 0.10}
WINDOWS = {'easycache-av': (0.15, 0.95), 'fbcache': (0.10, 0.95)}
BLOCK_LEVEL = ('fbcache',)
STRIDE = 8
+# Kinds that a quality level or request asks for by config but that sample every step for now; an explicit
+# FREEVIDEO_STEP_CACHE still turns them on. EasyCache-AV is held back until its reuse guard ships.
+HELD_BACK = ('easycache-av',)
def requested(config=None):
@@ -182,6 +185,8 @@ class StepCache:
def begin_pass(transformer, steps, config=None, *, offloader=None, disabled_reason=None):
"""Attach fresh state for this sampling pass; refinement never calls this."""
wanted = requested(config)
+ if wanted and wanted[2] == 'config' and wanted[0] in HELD_BACK:
+ wanted = None
transformer._freevideo_step_cache = (StepCache(wanted[0], wanted[1], steps, source=wanted[2],
offloader=offloader, disabled_reason=disabled_reason) if wanted else None)
return transformer._freevideo_step_cache
diff --git a/freevideo_engine/tiers.py b/freevideo_engine/tiers.py
index c6d4439..50f5df3 100644
--- a/freevideo_engine/tiers.py
+++ b/freevideo_engine/tiers.py
@@ -48,7 +48,8 @@ LEGACY_MAC_HIGH = dict(steps=16, two_pass=False, step_cache=None, upscale=2)
# fitted to the median: EasyCache-AV is slightly conservative, the first-block
# cache near the 8-24 GiB median. A first-block cache the planner did not keep
# is plain 20 steps.
-SAMPLING_SHARE = {None: 1., 'easycache-av': .64, 'fbcache': .9}
+# EasyCache-AV is held back (step_cache.HELD_BACK): High samples every step, so its share is 1 until that ends.
+SAMPLING_SHARE = {None: 1., 'easycache-av': 1., 'fbcache': .9}
# Sampling time (both passes) of a two-pass request with this upscale factor,
# as a share of the same request at 2x, for estimates without a run of that