OpenGVLab / InternVL

[CVPR 2024 Oral] InternVL Family: A Pioneering Open-Source Alternative to GPT-4o. 接近GPT-4o表现的开源多模态对话模型
https://internvl.readthedocs.io/en/latest/
MIT License
6.1k stars 475 forks source link

[Feature] How to only save lora while training #514

Open leoozy opened 3 months ago

leoozy commented 3 months ago

Motivation

save lora weights only.

Related resources

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

Additional context

No response

G-z-w commented 3 months ago

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