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.

docs(fp8): correct the plan against the shipped implementation

Alexander Eichhorn37b9d0d83dee
diff --git a/invokeai/backend/model_manager/load/model_loaders/krea2.py b/invokeai/backend/model_manager/load/model_loaders/krea2.py
index 730c5d0c29..593e18b0c1 100644
--- a/invokeai/backend/model_manager/load/model_loaders/krea2.py
+++ b/invokeai/backend/model_manager/load/model_loaders/krea2.py
@@ -426,6 +426,15 @@ class Krea2CheckpointModel(ModelLoader):
if fp8_layers:
attached = attach_fp8_scales(model, fp8_layers)
self._logger.info(f"Krea-2: kept {attached} layer(s) in fp8 (scaled fp8 checkpoint, fp8_compute enabled)")
+ # fp8_storage exists to *create* fp8 weights from full-precision ones; here they already
+ # are fp8, so it is bypassed entirely. Say so, otherwise a user who enabled it is left
+ # wondering whether it took effect.
+ default_settings = getattr(config, "default_settings", None)
+ if default_settings is not None and getattr(default_settings, "fp8_storage", None):
+ self._logger.info(
+ "Krea-2: the model's fp8_storage setting is redundant here and was skipped - the "
+ "checkpoint already ships fp8 weights."
+ )
# The layerwise-casting path exists to *produce* fp8 weights from full-precision ones. The
# checkpoint already is fp8, and its hooks would cast back to the compute dtype without
# applying weight_scale, so it must not run here.