Skip to content

[Feature] Support additional trainable layers during LoRA fine-tuning #1901

Open
@ebsmothers

Description

@ebsmothers

In e.g. the LongLoRA paper they fully train both the embedding and the norm layers while still applying LoRA to self-attention layers. Our recipes set only LoRA parameters to trainable here, but it shouldn't be too hard to support passing additional layers to that function from the config. E.g. it could be similar to our usage of custom_sharded_layers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions