litgpt icon indicating copy to clipboard operation
litgpt copied to clipboard

How to save the lora weight and config as the huggingface format?

Open XuMayi opened this issue 9 months ago • 2 comments

How to save the lora weight and config as the following format: adapter_config.json adapter_model.bin

https://huggingface.co/LLMs/AlpacaGPT4-LoRA-13B-elina/tree/main

XuMayi avatar Apr 02 '25 04:04 XuMayi

Leveraging the vllm to import lora requires these files and formats.

XuMayi avatar Apr 02 '25 04:04 XuMayi

Hi @XuMayi, this guide might be helpful for your use case: 👉 https://github.com/Lightning-AI/litgpt/blob/main/tutorials/convert_lit_models.md

It also includes steps for merging LoRA weights, which might be relevant for your scenario. Let us know if this helps!

bhimrazy avatar Apr 24 '25 06:04 bhimrazy