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
Merge remote-tracking branch 'upstream/main' into feat/fp8_zimage
Alexander Eichhornc4dec2420706
diff --cc invokeai/backend/model_manager/load/load_default.pyindex cff2f9db54,70035de26b..cd85699833--- a/invokeai/backend/model_manager/load/load_default.py+++ b/invokeai/backend/model_manager/load/load_default.py@@@ -344,11 -390,13 +402,18 @@@ class ModelLoader(ModelLoaderBase)Without the skip list, precision-sensitive tiny learned scalars (e.g. FLUX RMSNorm.scale)get crushed to FP8 and quality degrades noticeably.+ `extra_skip_patterns` carries the model's own declared exclusions (diffusers'+ `_skip_layerwise_casting_patterns`), which are model-specific and cannot be inferred from+ layer types or generic name patterns.+++ Records the compute dtype on the model. After the cast, `model.dtype` reports the float8+ storage dtype, which must never be used to create or cast tensors — torch has no arithmetic+ kernels for it (see `get_model_compute_dtype`). The marker is set here rather than at the+ call sites so a new caller cannot forget it."""+ set_fp8_compute_dtype(model, compute_dtype)++ skip_patterns = _FP8_DEFAULT_SKIP_PATTERNS + tuple(extra_skip_patterns)for module_name, module in model.named_modules():if not isinstance(module, _FP8_SUPPORTED_PYTORCH_LAYERS):continue