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

Refactor loss function for ComposerMPTCausalLM #1387

Merged
merged 6 commits into from
Jul 23, 2024

Conversation

irenedea
Copy link
Contributor

@irenedea irenedea commented Jul 23, 2024

Pulls out part of the loss function into helpers
image

@irenedea irenedea requested a review from a team as a code owner July 23, 2024 12:04
@irenedea irenedea requested a review from dakinggg July 23, 2024 12:04
Copy link
Contributor

@snarayan21 snarayan21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, saw there was a test that failed but i think the get_targets change addresses that. would like @dakinggg to take a look before merging as well

Copy link
Collaborator

@dakinggg dakinggg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you manual test before and after a simple run and just make sure the loss is the same?

@irenedea irenedea enabled auto-merge (squash) July 23, 2024 21:09
@irenedea irenedea merged commit ced63ee into mosaicml:main Jul 23, 2024
9 checks passed
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.

3 participants