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

test: implement factual knowledge integration test #43

Merged
merged 9 commits into from
Oct 18, 2023
Merged

Conversation

danielezhu
Copy link
Contributor

Issue #, if available:

Description of changes:
This PR implements an integration test for the factual knowledge evaluation algorithm, using a custom model runner that uses GPT2 model supplied by Huggingface.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

keerthanvasist
keerthanvasist previously approved these changes Oct 18, 2023
remove_prompt_from_generated_text: bool = True


class HuggingFaceCausalLLMModelRunner(ModelRunner):
Copy link
Member

Choose a reason for hiding this comment

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

Should we move this to model_runners folder in src?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently, the HF model runner doesn't conform to the ModelRunner interface, as it was presumably just meant for demo purposes. I think that I will have to update the ModelRunner interface in a separate PR before we can treat HuggingFaceCausalLLMModelRunner as a "real" ModelRunner.

Currently, ModelRunner has endpoint-invocation ideas baked into the interface (for example, content_type and accept_type). I think it will be a good idea to update it to be more general.

@keerthanvasist keerthanvasist merged commit 18a0d6c into main Oct 18, 2023
5 checks passed
@keerthanvasist keerthanvasist deleted the integ_tests branch May 7, 2024 18:28
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.

4 participants