litgpt icon indicating copy to clipboard operation
litgpt copied to clipboard

how to pretrain llama2?

Open wen020 opened this issue 1 year ago • 1 comments

We read the pretrain code in this repo and find that the pretrain code is gpt model. how to pretrain llama2? image

wen020 avatar May 14 '24 06:05 wen020

You can read the tutorials

fireyanci avatar May 15 '24 13:05 fireyanci

Actually, the GPT here is just a Python class. All other LLMs are very similar to GPT, which is why they are derived from that class in code. To choose the LLM you want to pretrain, check the pretrain tutorials here: https://github.com/Lightning-AI/litgpt/blob/main/tutorials/pretrain.md

E.g., litgpt pretrain ... --model_name Llama-2-7b-hf ...

rasbt avatar May 20 '24 22:05 rasbt

ok

wen020 avatar May 21 '24 08:05 wen020

I hope this helped. Please feel free to reopen if you have a follow up question.

rasbt avatar May 21 '24 14:05 rasbt