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(minimax-h3): silence model-size warning for cached multimodal processors
Lincoln Stein45f29d4e6852
diff --git a/invokeai/backend/model_manager/load/model_util.py b/invokeai/backend/model_manager/load/model_util.pyindex 217918f6f7..9eb855c938 100644--- a/invokeai/backend/model_manager/load/model_util.py+++ b/invokeai/backend/model_manager/load/model_util.py@@ -10,7 +10,7 @@ import onnxruntime as ortimport torchfrom diffusers.pipelines.pipeline_utils import DiffusionPipelinefrom diffusers.schedulers.scheduling_utils import SchedulerMixin-from transformers import CLIPTokenizer, PreTrainedTokenizerBase, T5Tokenizer+from transformers import CLIPTokenizer, PreTrainedTokenizerBase, ProcessorMixin, T5Tokenizerfrom invokeai.backend.image_util.depth_anything.depth_anything_pipeline import DepthAnythingPipelinefrom invokeai.backend.image_util.grounding_dino.grounding_dino_pipeline import GroundingDinoPipeline@@ -74,6 +74,11 @@ def calc_model_size_by_data(logger: logging.Logger, model: AnyModel) -> int:# Catch-all for other tokenizer types (e.g., Qwen2Tokenizer, Qwen3Tokenizer).# Tokenizers are small relative to models, so returning 0 is acceptable.return 0+ elif isinstance(model, ProcessorMixin):+ # Multimodal processors (e.g. Qwen3VLProcessor, loaded as the MiniMax H3 Processor+ # submodel) bundle a tokenizer with image/video preprocessor configs - a few MB of+ # non-tensor state, so 0 is acceptable like the tokenizers above.+ return 0else:# TODO(ryand): Promote this from a log to an exception once we are confident that we are handling all of the# supported model types.