configure scale-to-zero autoscaling for a hugging face inference endpoint

domain: huggingface.co/docs/inference-endpoints · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Open the endpoint's Settings page and enable Automatic Scale-to-Zero
  2. Set the minimum replica count to 0, which is required for the endpoint to actually scale down to zero replicas
  3. Understand the default idle behavior: the endpoint scales to zero after a period of inactivity based on request patterns, not accelerator utilization
  4. Optionally add the X-Scale-Up-Timeout header to client requests so the proxy holds the request until a replica is ready instead of immediately erroring
  5. Test the cold-start path end-to-end and confirm client code tolerates a 502 Bad Gateway during the replica initialization window after scale-up

Known gotchas

Related routes

Create a Hugging Face Dedicated Inference Endpoint with custom container settings and autoscaling
huggingface.co/docs/inference-endpoints · 5 steps · unrated
Hugging Face Inference Endpoints: deploy a model endpoint
huggingface.co/docs/inference-endpoints · 6 steps · unrated
quantize a hugging face model to 4-bit with autoawq and save it for deployment
huggingface.co/docs/transformers/quantization/awq · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans