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

Fix the IndexError in get_response #618

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

RenzeLou
Copy link

When using the get_response function in utils/prompter.py, we can easily get List IndexError due to the case sensitivity of the split method. For example, the LLaMa's output is in lowercase, but the response_split is in uppercase.

So, I update the function with re.split to ignore the case differences between the model's output and response_split.

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.

1 participant