[bug]: Model manager can't install Flux LoRa created in OneTrainer
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
In issue #6916 I created another LoRa that works in in Forge, but can not be imported in Invoke too.
Still affects 5.0.1
Same problem in 5.6 too.
Same problem in 5.6.1
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.
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