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

Whitespace before label in MultipleChoiceTask causes wrong label probability prediction #1556

Open
RibinMTC opened this issue Mar 11, 2024 · 0 comments

Comments

@RibinMTC
Copy link

RibinMTC commented Mar 11, 2024

Hi,

When constructing the requests for a MultipleChoiceTask (pre-refactored version), an implicit white space is added before the labels:

def construct_requests(self, doc, ctx):
      lls = [
          rf.loglikelihood(ctx, " {}".format(choice))[0] for choice in doc["choices"]
      ]

      return lls

When using fine-tuned models for evaluation, which expect a specific format, the added white space causes the wrong prediction of label probabilities. How should I handle this for my custom fine-tuned llms?

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

No branches or pull requests

1 participant