Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Finetune] enable converting checkpoints without optimizer state generation #424

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

billishyahao
Copy link

Our LLaMa finetune showcase consists of two parts:

  1. Conversion from huggingface checkpoint to megatron deepspeed compatible checkpoint.
  2. Do finetune with supervised dataset.

Latest version of checkpoint conversion generates both model weights and optimizer state and LR scheduler. It occupies huge disk storage.
This patch aims to reduce those states and re-generate them during finetune program starts. Take LLaMa 7B as an example:

# du -sh llama-7b-mega-ds-T2P2.*
13G     llama-7b-mega-ds-T2P2.with-patch
38G     llama-7b-mega-ds-T2P2.without-patch

Use alpaca dataset to run finetune task and see loss has good convergence:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant