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 remote-tracking branch 'upstream/main' into feat/fp8_zimage

Alexander Eichhorn4ccb6b1cb6d1
diff --cc invokeai/backend/model_manager/load/load_default.py
index cd85699833,d646d4466d..5d547193d6
--- a/invokeai/backend/model_manager/load/load_default.py
+++ b/invokeai/backend/model_manager/load/load_default.py
@@@ -282,11 -344,12 +344,7 @@@ class ModelLoader(ModelLoaderBase)
def _should_use_fp8(self, config: AnyModelConfig, submodel_type: Optional[SubModelType] = None) -> bool:
"""Check if FP8 layerwise casting should be applied to a model."""
- # FP8 storage only works on CUDA
- if self._torch_device.type != "cuda":
- return False
- # Z-Image has dtype mismatch issues with diffusers' layerwise casting
- # (skipped modules produce bf16, hooked modules expect fp16).
- from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelType
--
- if hasattr(config, "base") and config.base == BaseModelType.ZImage:
- return False
+ from invokeai.backend.model_manager.taxonomy import ModelType
# VAEs are excluded — fp8 storage causes noticeable quality degradation in decode.
if hasattr(config, "type") and config.type == ModelType.VAE: