Skip to content

Models with Phi3Config fail due to missing attention_bias #31020

Closed
@manikawnth

Description

@manikawnth

System Info

  • transformers version: 4.41.1
  • Platform: Linux-5.15.0-1055-aws-x86_64-with-glibc2.35
  • Python version: 3.10.14
  • Huggingface_hub version: 0.23.0
  • Safetensors version: 0.4.3
  • Accelerate version: 0.30.1
  • Accelerate config: not found
  • PyTorch version (GPU?): 2.3.0 (True)
  • Tensorflow version (GPU?): not installed (NA)
  • Flax version (CPU?/GPU?/TPU?): not installed (NA)
  • Jax version: not installed
  • JaxLib version: not installed
  • Using GPU in script?: yes
  • Using distributed or parallel set-up in script?: no

Who can help?

No response

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

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

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

Reference issue:
aws/sagemaker-huggingface-inference-toolkit#123

Expected behavior

tgi server should successfully run the Phi3 model

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions