You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.endpoint = self.create_or_update_endpoint(
File "/Users/luis.blanche/Documents/Code/ds-uc2/uc2/common/huggingface/endpoint.py", line 173, in create_or_update_endpoint
endpoint = create_inference_endpoint(
File "/Users/luis.blanche/.pyenv/versions/3.10.13/envs/product/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 7264, in create_inference_endpoint
hf_raise_for_status(response)
File "/Users/luis.blanche/.pyenv/versions/3.10.13/envs/product/lib/python3.10/site-packages/huggingface_hub/utils/_errors.py", line 358, in hf_raise_for_status
raise BadRequestError(message, response=response) from e
huggingface_hub.utils._errors.BadRequestError: (Request ID: aSgN8f)
Bad request:
Bad Request: Instance compute 'Gpu' - 'g5.2xlarge' - 'medium'in'aws' - 'us-east-1' not found
Describe the bug
When using
HfApi.create_inference_endpoint
, the example states gives this configuration for instance configuration :https://github.com/huggingface/huggingface_hub/blob/4c7aa33bac0b4fb59796e76fcc9cd7f5ff0fd426/src/huggingface_hub/hf_api.py#L7214C1-L7215C48
It seems though that the API has changed and that the right arguments are now for the same machine :
Reproduction
Logs
System info
The text was updated successfully, but these errors were encountered: