{
  "slug": "hf-endpoints-deploy-accepts-custom-container-settings-45a9f0fdb8a1",
  "title": "hf endpoints deploy accepts custom container settings",
  "tools": [
    "hf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-18T12:20:07.000Z",
  "announced_at": "2026-06-18T12:20:07.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When deploying a repository model in a custom Docker image, run `hf endpoints deploy` with `--framework custom` and `--custom-image`, then add the documented container, environment, and access settings you need.",
    "examples": [
      "hf endpoints deploy <endpoint-name> --repo <owner/repo> --framework custom --accelerator <cpu|gpu|neuron> --vendor <vendor> --region <region> --instance-type <instance-type> --instance-size <size> --custom-image <image-url> --health-route <route> --port <port> --container-args \"<launch arguments>\" --env <KEY=value> --type authenticated"
    ],
    "gotchas": [
      "Version: v1.20.0",
      "NAME (required): Endpoint name.",
      "--repo (required): Model repository associated with the endpoint.",
      "--framework (required): Model framework; use `custom` for a custom container.",
      "--accelerator, --vendor, --region, --instance-type, --instance-size (required): Specify endpoint hardware and cloud placement; run `hf endpoints hardware` for valid combinations.",
      "--custom-image: Docker image URL; required when using `--health-route` or `--port`. The custom-container guide uses it with `--framework custom`.",
      "--health-route: Health check route exposed by the container; requires `--custom-image`.",
      "--port: Port the container listens on; requires `--custom-image`.",
      "--container-args: Quoted launch string passed as container arguments.",
      "--container-command: Quoted launch string overriding the container entrypoint. The v1.20.0 guide names this option; it does not document `--command`.",
      "--env: Inject environment variables; the documented form is `KEY=value`.",
      "--secrets: Inject secrets into the container environment.",
      "--type: Endpoint access type: `public`, `authenticated`, or `private`; defaults to `authenticated`.",
      "container_command: SDK `create_inference_endpoint` parameter: list of tokens overriding the container entrypoint command.",
      "container_args: SDK `create_inference_endpoint` parameter: list of tokens appended to the container entrypoint.",
      "Prerequisite: Install the `hf` CLI and authenticate to Hugging Face to use the Hub.",
      "Prerequisite: The model repository is mounted at `/repository` inside the container.",
      "The model repository is mounted at `/repository` inside the container.",
      "The custom-container flags require `--custom-image`.",
      "Passing `protected` for `--type` emits a `FutureWarning`.",
      "Docs conflict: The supplied release note names `--command`; the v1.20.0 official CLI guide documents `--container-command` instead."
    ]
  },
  "why_it_matters": "Deploy a custom container for a repository model from a coding workflow.",
  "before": "Hand-write JSON and POST the raw endpoints API to deploy a custom container.",
  "sources": [
    "https://github.com/huggingface/huggingface_hub/releases/tag/v1.20.0",
    "https://github.com/huggingface/huggingface_hub/pull/4329",
    "https://github.com/huggingface/huggingface_hub/blob/v1.20.0/docs/source/en/guides/cli.md",
    "https://huggingface.co/docs/huggingface_hub/en/package_reference/cli",
    "https://huggingface.co/docs/huggingface_hub/guides/inference_endpoints"
  ],
  "rank": 0.98027,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-ac29a010b048e6ce-4:gate",
    "evidence_hash": "64d7c847d81a80acde3f78a092ff3a98bf45cf2fa31b11f2ca84260cfd15ccbc"
  },
  "review": {
    "draft_hash": "9cef6247f51b0f982f8fb062a44a742c6d0925a20aa31a14e77b59adc0ff5890",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.80 (>= 0.6 needed)."
  }
}
