An error occurred (ModelError) when calling the InvokeEndpoint operation load has model type `modernbert`
#70
by
devs9
- opened
I have transformers 4.49.0 installed.
I deployed model using image 763104351884.dkr.ecr.us-east-1.amazonaws.com/huggingface-pytorch-inference:2.1.0-transformers4.37.0-cpu-py310-ubuntu22.04 using the create_model function of boto3 sagemaker client.
I tried to run invoke_endpoint but i get this error:
ModelError: An error occurred (ModelError) when calling the InvokeEndpoint operation: Received client error (400) from model with message "{
"code": 400,
"type": "InternalServerException",
"message": "The checkpoint you are trying to load has model type modernbert
but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date."
}