huggingface / optimum-neuron

Easy, fast and very cheap training and inference on AWS Trainium and Inferentia chips.
Apache License 2.0
176 stars 51 forks source link

eos_token_id can be a list in configs #580

Closed dacorvo closed 2 months ago

dacorvo commented 2 months ago

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 commented 2 months ago

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.