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

eos_token_id can be a list in configs #580

Merged
merged 6 commits into from
Apr 26, 2024
Merged

eos_token_id can be a list in configs #580

merged 6 commits into from
Apr 26, 2024

Conversation

dacorvo
Copy link
Collaborator

@dacorvo dacorvo commented Apr 24, 2024

What does this PR do?

llama3 instruct models have a list of eos_token_ids instead of a single token id. Before this change, this triggered an assertion in the optimum-neuron code during generation.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@dacorvo dacorvo marked this pull request as ready for review April 25, 2024 13:08
@dacorvo dacorvo force-pushed the fix_llama3 branch 3 times, most recently from a59f629 to 65b0a43 Compare April 25, 2024 15:05
Copy link
Member

@michaelbenayoun michaelbenayoun left a comment

Choose a reason for hiding this comment

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

LGTM

optimum/neuron/generation/token_selector.py Outdated Show resolved Hide resolved
Co-authored-by: Michael Benayoun <mickbenayoun@gmail.com>
@dacorvo dacorvo merged commit 43796c0 into main Apr 26, 2024
11 of 12 checks passed
@dacorvo dacorvo deleted the fix_llama3 branch April 26, 2024 11:40
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.

3 participants