InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: Model manager can't install Flux LoRa created in OneTrainer

Open Barafu opened this issue 1 year ago • 6 comments

Is there an existing issue for this problem?

  • [X] I have searched the existing issues

Operating system

Windows

GPU vendor

Nvidia (CUDA)

GPU model

4090

GPU VRAM

No response

Version number

5.0.0.rc1

Browser

Brave

Python dependencies

No response

What happened

When trying to add Flux LoRa that was created using OneTrainer, model manager gives error on import. SDXL LoRa created in OneTrainer works OK.

What you expected to happen

Expected to import the LoRa

How to reproduce the problem

The log says:

[2024-09-22 10:55:12,952]::[ModelInstallService]::ERROR --> Model install error: I:/training/ready_models/ball_flux.safetensors
InvalidModelConfigException: Unable to determine model type for I:\training\ready_models\ball_flux.safetensors

Additional context

OneTrainer is rather popular, so there will be many published LoRa's created by it.

ComfyUI can use them now, but had this problem too, this is how they fixed it.

Forge can't use them too (no errors whatsoever, but no effect on image). However, Forge can't use many Flux LoRa right now it seems.

Here is an example of such LoRa. ball_flux.zip It is trained on a bunch of blue spheres tagged as "red cube"

Discord username

barafu_albino

Barafu avatar Sep 22 '24 08:09 Barafu

In issue #6916 I created another LoRa that works in in Forge, but can not be imported in Invoke too.

Barafu avatar Sep 23 '24 09:09 Barafu

Still affects 5.0.1

Barafu avatar Sep 30 '24 22:09 Barafu

Same problem in 5.6 too.

PelleHanses avatar Jan 20 '25 13:01 PelleHanses

Same problem in 5.6.1

jbkrauss avatar Feb 12 '25 13:02 jbkrauss

Reproduced on version 5.6.2 on RandomMaxx MechArmor Lora: installation is failed with InvalidModelConfigException: Unable to determine model type for D:\Flux Lora\RM_MechArmor_v0.9M.safetensors error.

jackofallbrakes avatar Feb 24 '25 12:02 jackofallbrakes

The issue persists in 5.7.2 @RyanJDick (I've been told to tag you on Discord)

InvalidModelConfigException: Unknown LoRA type: C:\Users\JB\Desktop\training runs\lsqtrz v2\save\2025-03-09_18-54-59-save-500-125-0.safetensors

jbkrauss avatar Mar 09 '25 18:03 jbkrauss