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

The Llama inference examples needs to be updated to maintain parity with transformers==4.36 #14

Open
sol0invictus opened this issue Jan 24, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation Trn1

Comments

@sol0invictus
Copy link

The llama inference example needs to be updated because transformers==4.36 now needs an additional argument layer_idx in the LlamaDecoderLayer class.
https://github.com/huggingface/transformers/blob/v4.37.0/src/transformers/models/llama/modeling_llama.py#L754

@jluntamazon
Copy link

Hi @sol0invictus,

Thank you for the code reference! We reproduced the problem here and are intending to release a fix for this example in the upcoming release

As an immediate solution, you can either downgrade the transformers version or update the code to handle the layer_idx argument.

@aws-taylor aws-taylor added documentation Improvements or additions to documentation Trn1 labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Trn1
Projects
None yet
Development

No branches or pull requests

3 participants