Skip to content

Remove unnecessary LM callback #8098

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

Merged
merged 1 commit into from
Apr 23, 2025
Merged

Conversation

TomeHirata
Copy link
Collaborator

Currently, LM.__call__ calls callback handlers twice since we apply with_callbacks to both BaseLM.__call__ and LM.forward, which is confusing. This PR removes the decorator from LM.forward.

@okhat okhat merged commit dc64e12 into stanfordnlp:main Apr 23, 2025
3 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.

2 participants