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

Add OptionSelectingByLogProbsInferenceEngine #1315

Closed
wants to merge 1 commit into from

Conversation

martinscooper
Copy link
Collaborator

  • Add OptionSelectingByLogProbsInferenceEngine, an inference engine that is used to select an option based on the logprobs of an options list conditioned by a prompt.
  • Implement OptionSelectingByLogProbsInferenceEngine in WMLInferenceEngine and IbmGenAiInferenceEngine inference engines.
  • Add a test under inference.test_inference_engine.TestInferenceEngine.test_option_selecting_by_log_prob_inference_engines.

Command to run the test:

export GENAI_KEY="" && WML_PROJECT_ID="" && export WML_APIKEY="" && export WML_URL="https://us-south.ml.cloud.ibm.com" && python -m unittest tests.inference.test_inference_engine.TestInferenceEngine.test_option_selecting_by_log_prob_inference_engines

This inference engine is intended to be used to integrate EvalAssist evaluators.

@martinscooper martinscooper deleted the add-option-selecting branch November 27, 2024 15:45
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