Problems with deploying hugging face endpoints on Azure

#15
by z852 - opened

Hi, I followed the deployment procedure of Hugging face endpoint on Azure (in exactly the same way as described in this video https://www.youtube.com/watch?v=MlWyhdrgBwg&ab_channel=HuggingFace), however I am receiving an error message:
"Failed to create HuggingFace.Endpoint resource in 'testhuggingfaceapp'. Error: The Resource 'Microsoft.CustomProviders/resourceProviders/public' under resource group 'mrg-huggingface-20221221111533' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"

When looking into activity log for more information I get the following information:
"The resource provider 'public' received a non-success response 'BadRequest' from the downstream endpoint for the request 'PUT' on 'HuggingFace.Endpoint/a6d8a3b5-2489-4c69-a98c-8c224ec2e79e'. Please refer to additional info for details."

And in JSON of the activity log error it says:
"statusMessage": "{"error":{"code":"DownstreamEndpointError","message":"The resource provider 'public' received a non-success response 'BadRequest' from the downstream endpoint for the request 'PUT' on 'HuggingFace.Endpoint/a6d8a3b5-2489-4c69-a98c-8c224ec2e79e'. Please refer to additional info for details.","details":[{"code":"Downstream","message":"{"error":"Subscription 60792e14-b5c7-4b72-8ee0-8136b660385c does not have enough quota for Standard_DS2_v2.\nCurrently available: 0\n Requested: 4.\n Please contact Azure support to increase quota."}"}]}}"

I increased the quota on Standard DS Family vCPUs and Standard DSv2 Family vCPUs in my subscription to 100 and tried to deploy the endpoint again on Standard_DS2_v2 instance type but I am not able to solve the problem.

How can I fix the error any successfully deploy the model endpoint?

Are you struggling to deploy Hugging Face models to Azure? I've been in your shoes and found a simple solution that might help. By deleting any extra Hugging Face resources and creating a new instance with the Standard_F2s_v2 instance type, you can successfully deploy your model to Azure. Here are the key steps to follow:

  1. Delete any unnecessary Hugging Face resources, especially if you have a non-pay as you go account with limited quota.
  2. Create a new instance with the Standard_F2s_v2 instance type.
  3. Build only one endpoint.
  4. Test your endpoint on Azure and enjoy your successfully deployed Hugging Face model!

image.png

I hope this helps you overcome the deployment challenges and enables you to leverage the power of Hugging Face models on Azure

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment