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

Fix Preference Loss and Refactor for Readability #484

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

austin362667
Copy link
Collaborator

@austin362667 austin362667 commented Dec 17, 2024

Summary

Thanks to @winglian and @shivam15s noticed and fixed this #481.

This PR suggests negating the preference loss terms to align with the formulas in the docstrings, while maintaining the base preference structure as nll_loss + preference_loss. This would make our loss computations more consistent since both terms would represent losses to be minimized.

This PR also tightened the tolerance in case of encountering a similar issue.

Testing Done

  • Hardware Type:
  • run make test to ensure correctness
  • run make checkstyle to ensure code style
  • run make test-convergence to ensure convergence

winglian and others added 6 commits December 16, 2024 10:51
Signed-off-by: Austin Liu <austin362667@gmail.com>
Signed-off-by: Austin Liu <austin362667@gmail.com>
Signed-off-by: Austin Liu <austin362667@gmail.com>
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.

2 participants