InvokeAI/tests
Alexander Eichhorn ac245cbf6c
feat(backend): add support for xlabs Flux LoRA format (#8686)
Add support for loading Flux LoRA models in the xlabs format, which uses
keys like `double_blocks.X.processor.{qkv|proj}_lora{1|2}.{down|up}.weight`.

The xlabs format maps:
- lora1 -> img_attn (image attention stream)
- lora2 -> txt_attn (text attention stream)
- qkv -> query/key/value projection
- proj -> output projection

Changes:
- Add FluxLoRAFormat.XLabs enum value
- Add flux_xlabs_lora_conversion_utils.py with detection and conversion
- Update formats.py to detect xlabs format
- Update lora.py loader to handle xlabs format
- Update model probe to accept recognized Flux LoRA formats
- Add unit tests for xlabs format detection and conversion

Co-authored-by: Lincoln Stein <lincoln.stein@gmail.com>
2025-12-24 20:18:11 +00:00
..
app refactor: model manager v3 (#8607) 2025-10-15 10:18:53 +11:00
backend feat(backend): add support for xlabs Flux LoRA format (#8686) 2025-12-24 20:18:11 +00:00
fixtures test: clean up & fix tests 2024-03-01 10:42:33 +11:00
inpainting
model_identification tidy: removing unused code paths 4 2025-10-15 10:46:16 +11:00
test_model_manager
__init__.py
conftest.py refactor: model manager v3 (#8607) 2025-10-15 10:18:53 +11:00
dangerously_run_function_in_subprocess.py tests: add util to run a function in separate process 2025-03-06 07:49:35 +11:00
dev_prompts.txt
legacy_tests.sh
test_config.py feat(nodes): add methods to invalidate invocation typeadapters 2025-03-31 19:15:59 +11:00
test_dangerously_run_function_in_subprocess.py tests: add util to run a function in separate process 2025-03-06 07:49:35 +11:00
test_docs.py update config docstring 2024-08-08 15:20:43 -04:00
test_graph_execution_state.py Rework graph.py (#8642) 2025-11-16 09:10:47 -05:00
test_imports.py Set ordering 2025-03-25 19:21:14 +11:00
test_invocation_cache_memory.py tests: add invocation cache tests 2024-03-06 08:14:12 -05:00
test_item_storage_memory.py chore(item-storage): improve types 2024-02-03 07:34:06 -05:00
test_model_hash.py feat(mm): rename "blake3" to "blake3_multi" 2024-03-22 08:26:36 +11:00
test_model_search.py tidy(mm): ModelSearch cleanup 2024-03-10 12:09:47 +11:00
test_node_graph.py tests(app): add more tests for complex iterate/collect graph topologies 2025-06-30 23:39:28 +10:00
test_nodes.py tests(app): add failing test for collector edge case 2025-06-30 23:39:28 +10:00
test_object_serializer_disk.py tests: update tests/test_object_serializer_disk.py 2025-04-04 18:42:13 +11:00
test_path.py chore: ruff 2024-03-01 10:42:33 +11:00
test_profiler.py feat: add profiler util (#5601) 2024-01-31 10:51:57 +00:00
test_session_queue.py tidy(app): document & clean up batch prep logic 2025-02-26 21:04:23 +11:00
test_sqlite_migrator.py feat(app): db abstraction to prevent threading conflicts 2025-07-11 08:20:06 +10:00
validate_pr_prompt.txt