InvokeAI model sharing scans/imports entire shared model library on startup, including unsupported models (slow launches)
Package
InvokeAI 6.14.2, installed and launched through Stability Matrix on Windows, with Model Sharing = Configuration.
Summary
Unlike the other installed image-generation packages, InvokeAI's Stability Matrix model-sharing integration attempts to scan and register all unregistered files in the common Models directory on startup. In a mixed library containing SDXL, FLUX, Qwen, video, VAEs, text encoders, etc., this triggers repeated model identification errors and long-running hashing/import work for models that InvokeAI cannot use.
Setting Model Sharing = None avoids the automatic import, but then users must manually register supported shared checkpoints one by one to avoid duplicate downloads.
Environment
- OS: Windows
- GPU: NVIDIA GeForce RTX 5090
- InvokeAI: 6.14.2
- Stability Matrix version: not captured
- Shared model library:
C:\AI\StabilityMatrix\Models - A large mixed library used by multiple installed packages, including ComfyUI, SD.Next, Forge, SwarmUI and others
Steps to reproduce
- Install InvokeAI through Stability Matrix.
- Populate Stability Matrix's common
Modelsdirectory with a mixture of supported SDXL checkpoints and newer/specialized architectures, including LTX video models, Qwen text encoders and large FLUX models. - Set InvokeAI's Model Sharing option to Configuration.
- Launch InvokeAI from Stability Matrix.
- Observe the automatically queued model imports and hashing, even for unsupported model families.
Actual behavior
At startup on 2026-10-21, Stability Matrix/InvokeAI queued 20 models for import from the shared library:
[ModelInstallService]::INFO --> Model install started: C:/AI/StabilityMatrix/Models/StableDiffusion/lightricksLTXV2_ltx2SpatialUpscaler.safetensors
[ModelInstallService]::INFO --> Model install started: C:/AI/StabilityMatrix/Models/TextEncoders/qwen3vl_8b_int8_convrot.safetensors
[ModelInstallService]::INFO --> Model install started: C:/AI/StabilityMatrix/Models/StableDiffusion/lightricksLTXV_13b097.safetensors
...
[ModelInstallService]::INFO --> Model install started: C:/AI/StabilityMatrix/Models/DiffusionModels/flux2_dev.safetensors
...
Waiting for model import... (20 remaining)
Multiple models failed classification:
[ModelInstallService]::ERROR --> Could not identify model for C:\AI\StabilityMatrix\Models\StableDiffusion\lightricksLTXV2_ltx2SpatialUpscaler.safetensors
[ModelInstallService]::ERROR --> Could not identify model for C:\AI\StabilityMatrix\Models\TextEncoders\qwen3vl_8b_int8_convrot.safetensors
[ModelInstallService]::ERROR --> Could not identify model for C:\AI\StabilityMatrix\Models\StableDiffusion\lightricksLTXV_13b097.safetensors
The install process then spent 56.19 seconds hashing just flux2_dev.safetensors:
[ModelInstallService]::INFO --> Model install started: C:/AI/StabilityMatrix/Models/DiffusionModels/flux2_dev.safetensors
Hashing flux2_dev.safetensors: 100%|██████████| 1/1 [00:56<00:00, 56.19s/file]
There was no subsequent progress visible in the provided log excerpt. I cannot confirm that the process crashed; the issue is the indiscriminate startup import/hash workload and unsuitable UX with large mixed model libraries. Some unrecognized entries also appear in InvokeAI's Model Manager as Unknown.
Expected behavior
A shared models directory should remain usable across packages without duplicating model files and without requiring InvokeAI to attempt importing every unsupported architecture on startup.
Possible improvements:
- Offer selective/opt-in model sharing for InvokeAI: model whitelist or supported category/architecture filtering instead of importing every unregistered file.
- Avoid repeatedly processing models that already failed identification (or allow users to exclude paths).
- Allow InvokeAI's Web UI to start promptly while optional imports happen separately, with clear progress/cancel controls.
- Retain
inplace: trueregistration of selected compatible files so users do not need duplicates or to move model files away from the other packages.
Relevant implementation
In StabilityMatrix.Core/Models/Packages/InvokeAI.cs, SetupInvokeModelSharingConfig() calls:
var result = await invokeAiApi.ScanFolder(SettingsManager.ModelsDirectory).ConfigureAwait(false);
var modelsToScan = result.Where(x => !x.IsInstalled).ToList();
foreach (var model in modelsToScan)
{
await invokeAiApi.InstallModel(..., source: model.Path, inplace: true);
}
This seems to send all uninstalled scan results to InvokeAI, with no category/filter or exclusion list on the Stability Matrix side.
Source: https://github.com/LykosAI/StabilityMatrix/blob/main/StabilityMatrix.Core/Models/Packages/InvokeAI.cs
Workaround
Set InvokeAI's Model Sharing to None, download new models through Stability Matrix, and register only supported models in InvokeAI in place from the shared directory. This avoids duplicate model files but sacrifices automatic shared-model discovery.
Related older reports
- #442 — unsupported ControlNet models cause slow InvokeAI startup
- #785 — users want InvokeAI model sharing without duplicate downloads
Both reports are older and do not cover this current broad scan/import behavior on InvokeAI 6.14.2.