lit-llama icon indicating copy to clipboard operation
lit-llama copied to clipboard

How to convert lit-llama pretrained model to HF format?

Open karkeranikitha opened this issue 1 year ago • 1 comments

Hi

I have pretrained a model and have it in lit-llama format. How can I convert it to huggingface format? I need to load my pretrained model via HuggingFace for inference. There are no scripts for lit-llama to HF format. Kindly suggest any approach or provide the script for the same.

Thanks in advance.

karkeranikitha avatar Apr 16 '24 10:04 karkeranikitha

I am not entirely sure, but https://github.com/Lightning-AI/lit-llama/blob/main/scripts/convert_checkpoint.py might be doing that

rasbt avatar Apr 16 '24 14:04 rasbt