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

Validate loading model and optim state #18

Merged
merged 3 commits into from
May 14, 2024
Merged

Conversation

epwalsh
Copy link
Member

@epwalsh epwalsh commented May 14, 2024

Fill model+optim state tensors with NaN before loading, check that no NaNs remain after loading.
This assumes that the state tensors should not have any NaNs to begin with, which I think is reasonable,
but the validation can be skipped anyway just in case.

@epwalsh epwalsh merged commit fb20119 into main May 14, 2024
9 of 12 checks passed
@epwalsh epwalsh deleted the epwalsh/validate-load branch May 14, 2024 17:30
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