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.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
fix(attention): point SageAttention warnings at the published docs (#10202)
CloudGPU030cc0da7342
diff --git a/invokeai/backend/util/sage_attention.py b/invokeai/backend/util/sage_attention.pyindex 2c2df0aa3f..50575fe0e0 100644--- a/invokeai/backend/util/sage_attention.py+++ b/invokeai/backend/util/sage_attention.py@@ -68,7 +68,8 @@ _FIRST_CALL_MAX_ERROR = 0.5# whole output costs ~14 bytes per element to compare -- about 5 GB for one call of Wan 2.2 14B at 720p._FIRST_CALL_ROWS = 1024-DOCS_URL = "https://invoke-ai.github.io/InvokeAI-7/configuration/optimization/sage-attention/"+# The published page. The old GitHub Pages path under InvokeAI-7 returns 404.+DOCS_URL = "https://v7.invoke.ai/configuration/optimization/sage-attention/"@dataclassdiff --git a/tests/backend/util/test_sage_attention.py b/tests/backend/util/test_sage_attention.pyindex 492fb60a61..6acb871a81 100644--- a/tests/backend/util/test_sage_attention.py+++ b/tests/backend/util/test_sage_attention.py@@ -606,7 +606,12 @@ class TestInstall:install_sage_attention()assert F.scaled_dot_product_attention is spy- assert any(message in r.message for r in caplog.records), [r.message for r in caplog.records]+ logged = [r.message for r in caplog.records]+ assert any(message in text for text in logged), logged+ # Warnings that send the reader to the docs must name the published page, not the old GitHub Pages path.+ linked = [text for text in logged if "See " in text]+ if linked:+ assert all("https://v7.invoke.ai/configuration/optimization/sage-attention/" in text for text in linked)def test_a_kernel_that_would_swallow_smooth_k_is_refused(self, monkeypatch, caplog):"""Every real kernel ends in **kwargs, so a renamed `smooth_k` would be ignored and smoothing come back."""