InternVL icon indicating copy to clipboard operation
InternVL copied to clipboard

[Feature] How to only save lora while training

Open junleiz opened this issue 1 year ago • 1 comments

Motivation

save lora weights only.

Related resources

https://github.com/axolotl-ai-cloud/axolotl

Additional context

No response

junleiz avatar Aug 18 '24 13:08 junleiz

One possible approach is to try the adapter api. See https://huggingface.co/docs/transformers/v4.44.2/en/peft#transformers.integrations.PeftAdapterMixin.get_adapter_state_dict

G-z-w avatar Aug 26 '24 11:08 G-z-w