huggingface / transformers

🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.
https://huggingface.co/transformers
Apache License 2.0
128.74k stars 25.54k forks source link

Models with Phi3Config fail due to missing attention_bias #31020

Closed manikawnth closed 2 days ago

manikawnth commented 1 month ago

System Info

Who can help?

No response

Information

Tasks

Reproduction

Running the model using huggingface text-generation-inference server will cause the issue

AttributeError: 'Phi3Config' object has no attribute 'attention_bias' 

Reference issue: https://github.com/aws/sagemaker-huggingface-inference-toolkit/issues/123

Expected behavior

tgi server should successfully run the Phi3 model

amyeroberts commented 1 month ago

cc @ArthurZucker @younesbelkada

younesbelkada commented 1 month ago

Hi @manikawnth ! See my comment on the PR, IMO the fix should go on TGI directly, what do you think?

github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.