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 branch 'main' into feat/bundle-encoder-tokenizers-and-configs

Alexander Eichhorn2e3751d2543a
diff --cc invokeai/backend/model_manager/load/model_loaders/krea2.py
index c17b78d903,70498ab5f3..436b2f687e
--- a/invokeai/backend/model_manager/load/model_loaders/krea2.py
+++ b/invokeai/backend/model_manager/load/model_loaders/krea2.py
@@@ -29,10 -33,16 +31,15 @@@ from invokeai.backend.model_manager.tax
BaseModelType,
ModelFormat,
ModelType,
- Qwen3VLVariantType,
SubModelType,
)
- from invokeai.backend.model_manager.util.qwen3_gguf import convert_qwen3_llamacpp_keys
- from invokeai.backend.model_manager.util.qwen3_vl import normalize_qwen3vl_rope_config
+ from invokeai.backend.model_manager.util.llamacpp_keys import convert_llamacpp_decoder_keys
+ from invokeai.backend.model_manager.util.qwen3_vl import (
+ drop_qwen3vl_visual_tower,
+ drop_qwen3vl_visual_tower_keys,
+ normalize_qwen3vl_rope_config,
+ qwen3vl_target_key,
+ )
from invokeai.backend.quantization.fp8_scaled import (
INPUT_SCALE_SUFFIXES,
attach_fp8_scales,
@@@ -912,9 -964,12 +914,12 @@@ class Qwen3VLEncoderCheckpointLoader(_Q
dequantize_fp8_scaled(sd, fp8_layers, model_dtype)
fp8_layers = {}
- te_config = self._load_hf_config(config)
+ te_config = self._load_te_config(config)
with accelerate.init_empty_weights():
model = Qwen3VLModel._from_config(te_config)
+ # Its weights were dropped from the state dict above, so the module has to go too -- left in
+ # place it would stay on the meta device and `_reject_incomplete_load` would rightly refuse.
+ drop_qwen3vl_visual_tower(model)
if int8_markers:
# `Qwen3VLModel` declares no precision-sensitive modules, but read them rather than