Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

Merge branch 'main' into feat/rocm-windows-memory

Alexander Eichhornf986d61454d7
diff --cc invokeai/app/services/session_processor/session_processor_default.py
index 175c95a695,140238896c..05a045882b
--- a/invokeai/app/services/session_processor/session_processor_default.py
+++ b/invokeai/app/services/session_processor/session_processor_default.py
@@@ -45,13 -45,11 +45,16 @@@ from invokeai.app.services.session_queu
from invokeai.app.services.shared.graph import CollectInvocation, IterateInvocation, NodeInputError
from invokeai.app.services.shared.invocation_context import InvocationContextData, build_invocation_context
from invokeai.app.util.profiler import Profiler
- from invokeai.backend.util.device_pool import GENERATION_DEVICE_POOL
+ from invokeai.backend.util.device_pool import (
+ GENERATION_DEVICE_POOL,
+ idle_device_borrowed,
+ )
from invokeai.backend.util.devices import TorchDevice, disable_conv_benchmark_empty_cache
+from invokeai.backend.util.wddm import paged_bytes
+
+# Paged-out VRAM worth a warning. Weight uploads page a few hundred MB for an instant (0.25-0.36 GiB measured on an
+# RX 9060 XT), so the threshold sits above that; a session that ends with more than this paged has lost real VRAM.
+_VRAM_PAGING_WARNING_BYTES = 512 * 2**20
# A failed owner lookup is retried before the item is refused, so that a transient error
# — a busy-timeout on the shared SQLite connection under multi-GPU write contention, say —