Skip to content

Add probability/perplexity calculation and complete detoxified LM notebook #77

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 2 commits into from
Oct 24, 2024

Conversation

qingyangliu0065
Copy link
Collaborator

@qingyangliu0065 qingyangliu0065 commented Oct 10, 2024

Description

This PR implemented the probability calculation and perplexity calculation in the HuggingFaceLM module. The correctness of two functions has been thoroughly tested using the Detoxified LM notebook, and the corresponding evaluation code in this notebook has been replaced using llments library.

References

@neubig
Copy link
Contributor

neubig commented Oct 13, 2024

Thanks for the PR! I left some comments, and could you re-request review from me through the github interface when you've had a chance to revise?

@neubig neubig merged commit b6815e9 into main Oct 24, 2024
5 checks passed
@neubig neubig deleted the qliu3/add_cal_prob branch October 24, 2024 21:38
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.

Implementation of Hugging Face LMs
2 participants