Anima 2.9B/3.8B insert blocks between the original 28, so old LoRA keys land on the wrong layers and ComfyUI emits no missing-key warning. Add a model-family adapter that rewrites block indices in memory before the generic LoRA loader runs. - 28->40, 40->52 and composed 28->52 mappings, with anchored kohya/generic key patterns - Anima detection from image_model/llm_adapter and block count from blocks/num_blocks - skip text encoder, llm_adapter and semantic connector keys; collision and newer-LoRA errors - ComfyUI setting (default on) synced to the LM settings API; no base-model-specific node toggle - docs, unit and loader integration tests Reuses the manifest data from PR #1104; supersedes its node-level toggle design.
6 lines
176 B
Python
6 lines
176 B
Python
"""Errors raised by LoRA compatibility adapters."""
|
|
|
|
|
|
class LoraCompatibilityError(ValueError):
|
|
"""Raised when a LoRA cannot be applied to the connected model's layout."""
|