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

HF Checkpoint OOM fix with earlier dtype conversion #1380

Closed
wants to merge 1 commit into from

Conversation

snarayan21
Copy link
Contributor

Porting over @irenedea's fix for HF Checkpoint OOMs from this branch

Note: moved the del tensor call inside the if statement because otherwise we delete tensor every time (bad if state_dict[fqn] happens not to be a tensor or dtensor. could be some scalar for weight scales, for example.

Run OOMed without this change: running
Run successfully completed with this change: running

@snarayan21 snarayan21 requested a review from a team as a code owner July 22, 2024 01:08
@snarayan21
Copy link
Contributor Author

Closing since this is a duplicate of #1376

@snarayan21 snarayan21 closed this Jul 22, 2024
@dakinggg dakinggg deleted the saaketh/hf_ckpt_oom_fix branch August 6, 2024 18:40
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