bitsrun

model_gated

Deploying a model, HTTP status 400.

HTTP status 400.

What happened: The Hugging Face repo is gated: its author asks you to accept their terms first.

How to fix it: Accept the terms on the repo page at huggingface.co, add your Hugging Face token on the API keys page (or run bitsrun hf-token set), then deploy again.

How it looks

The response has HTTP status 400 and a JSON body with the same three fields as every BitsRun error:

json
{ "error": { "code": "model_gated", "message": "...", "requestId": "01k9a2b3c4d5e6f7g8h9j0k1m2" } }
  • code never changes, so your code can check for it and react.
  • message says what happened in plain words; show it to your users or log it.
  • requestId identifies this request. Include it when you write to support@bitsrun.com.

The bitsrun command line prints the message and the request id; add --json to see the full error.

Still stuck? Email support@bitsrun.com with the requestId from the error and a real person will look into it.

Other deploying a model errors

Every code on one page: Error codes in the docs.