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

[BUG] stop_words #326

Open
baisechundu opened this issue Feb 2, 2024 · 0 comments
Open

[BUG] stop_words #326

baisechundu opened this issue Feb 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@baisechundu
Copy link

When i try to add some stop_words for model,i found parameter stop_sequences in “lightllm/server/sampling_params.py”.
There seems to be some issues with line 67:
“ if stop_str_ids is not None and len(stop_str_ids) >= 1: ”
">=" here should be modified to ">". Otherwise, it will get an empty list when the len(stop_str_ids) equal 1.

@baisechundu baisechundu added the bug Something isn't working label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant