Skip to content

LoRA adapters not saved to weights #1707

@ValeKnappich

Description

@ValeKnappich

In the default config with LoRA, only the base model is being saved to the weights directory. The config indicates that if save_adapter_separately=False, the adapter weights are merged into the main model, but that is not happening. Instead, adapter parameters are simply stripped from the state dict in clean_lora_state_dict.

    save_adapter_separately: Annotated[
        bool,
        Field(
            description="Whether to save LoRA adapters separately before merging into full model weights.",
        ),
    ] = False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions