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
test(flux): let the int8 fixture drive either fp8 keep decision
Alexander Eichhorn8317c97c4383
diff --git a/tests/backend/model_manager/load/test_flux1_int8_convrot_loader.py b/tests/backend/model_manager/load/test_flux1_int8_convrot_loader.pyindex 857844b5fb..8103815cc8 100644--- a/tests/backend/model_manager/load/test_flux1_int8_convrot_loader.py+++ b/tests/backend/model_manager/load/test_flux1_int8_convrot_loader.py@@ -129,7 +129,12 @@ def _driver(monkeypatch, tmp_path, state_dict: dict, trace: dict | None = None,loader._torch_dtype = torch.bfloat16monkeypatch.setattr(module, "load_file", lambda _path: state_dict)- monkeypatch.setattr(module, "should_keep_fp8_weights", lambda _device: False)+ # Both spellings of the same decision: the module-level helper, and the loader method that+ # supersedes it once FP8 Storage counts as a consumer too. Setting both keeps this fixture+ # working either way -- an instance attribute shadows the method when it exists, and+ # `raising=False` tolerates the module symbol being gone.+ monkeypatch.setattr(module, "should_keep_fp8_weights", lambda _device: False, raising=False)+ loader._keep_fp8_weights = lambda _config, _submodel=None: Falsemonkeypatch.setattr(module, "read_safetensors_metadata", lambda _path, _logger: header)monkeypatch.setattr(module, "get_flux_transformers_params", lambda _variant: TINY)return loader, config