> ## Documentation Index
> Fetch the complete documentation index at: https://docs.infercrane.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Four-week proof on your GPUs

> The design-partner proof week by week, with the commands for each step, what InferCrane needs from you, and how support works.

# Four-week proof on your GPUs

In four weeks you get a measured answer for one production workload: which setup serves it with less
compute on your own GPUs, with its answers checked on your own eval set, rolled out safely, and
written up in a report you keep. This page is the plan, step by step, with the commands for each
step. Check your hardware, engine, and model against the [supported list](https://docs.infercrane.com/supported.md) first.

> [!NOTE]
>
> This is the design-partner programme. The support terms below are targets, not a service level
> agreement; the agreement you sign sets the terms.

## Choose where the control plane runs

The control plane plans setups, judges the measurements, keeps the evidence, and rolls out the
winner. The [agent](https://docs.infercrane.com/architecture/agent.md) runs in your cluster in both shapes. Pick one before week 1:

| Shape | You install | What the proof can do today |
| - | - | - |
| **Hosted control plane, agent in your cluster** | The agent, with its Helm chart. Prompts and answers stay in your cluster | Observe your servers, serve your traffic in your cluster, and run optimization runs on your endpoint: the agent measures each setup and checks its answers in your cluster, the control plane judges, and the winner rolls out with your own server as the fallback |
| **Control plane in your cluster** | The agent, `infercrane serve`, and PostgreSQL. Nothing is sent to InferCrane | All of the above, plus deploy, the gateway, runs measured on the shape of your recorded traffic, and leaving a closed API with a 5% canary |

Limits of the hosted shape today, each checked when a run is created:

* A run on an agent's endpoint measures a synthetic load profile at the load you set, not a replay
  of your recorded traffic.
* Confirming a gain on fresh servers needs a second GPU node. On one node, that part of the claim
  reads "not shown".
* The agent starts plain servers only: no serving graph (such as NVIDIA Dynamo), environment
  variables, tuned kernel files, LoRA adapters, or a private model's credential.

Both shapes are in [Install on your GPU cluster](https://docs.infercrane.com/integrations/kubernetes-install.md), which follows the
path qualified on Amazon EKS with one NVIDIA A10G. What leaves your cluster in the hosted shape is
listed field by field in [What leaves your cloud](https://docs.infercrane.com/architecture/agent.md#what-leaves-your-cloud).

## Week 0: fit and agreement

**1. Discovery call (30 minutes)**

* the fleet: GPU type and count, and cloud;
* monthly GPU spend;
* one or two workloads that matter;
* your speed and quality targets;
* whether you want to leave a closed API.

**2. Fit check**

* Is your setup on the [supported list](https://docs.infercrane.com/supported.md)? A GPU, engine, or model that is not
  measured yet can still be proved, but its first run is a qualification, and it is labelled so.
* Is the saving likely large enough to be worth a proof? If not, InferCrane says so before
  week 1.

**3. Agreement**

The design-partner terms and the data processing agreement. Pick one production workload for
the proof.

**What InferCrane needs from you in week 0:**

* the shape you chose above;
* the workload: model and revision, engine and version, the server's current arguments, GPU type and
  count, and its normal and peak load in requests at once;
* your speed and quality targets, for example a p95 time to first token or a quality floor;
* an engineer who can install in your cluster, and a person who can approve rollouts;
* the hourly cost of one GPU node (or your contract rate), so cost per million tokens can be
  computed. It is recorded as a rate card on the control plane.

## Week 1: install and capture

### Install

About 30 minutes on a call. First check the cluster, then install the shape you chose.

> [!WARNING]
>
> Installing creates Kubernetes objects in the namespaces you name. It starts no GPU server and sends
> no traffic. Measurements in week 2 start GPU servers in your namespace.

**Check the cluster first** (all read-only):

```bash Check the cluster theme={"theme":"css-variables"}
kubectl get nodes -L nvidia.com/gpu.product          # GPU nodes carry their product label
kubectl get nodes -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.taints}{"\n"}{end}'
kubectl get pods -A | grep -i -E 'nvidia-device-plugin|gpu-operator|gpu-feature-discovery'
```

* GPU nodes need NVIDIA's device plugin, GPU feature discovery (for the `nvidia.com/gpu.product`
  label), a driver new enough for the vLLM 0.34.0 image (580 or newer), and about 100 GB of disk.
* A network plugin that enforces `NetworkPolicy`, so engine pods admit only the sources you name.
  See [who can reach engine pods](https://docs.infercrane.com/integrations/kubernetes.md#who-can-reach-engine-pods).
* Egress to Hugging Face and Docker Hub, or your mirrors of them. Nothing inbound.
* One free GPU of the workload's type for the setups a run measures, and a second GPU node if gains
  should be confirmed on fresh servers.
* If your GPU nodes are tainted, give the setups the matching tolerations (Helm
  `executor.tolerations`; see [tainted GPU nodes](https://docs.infercrane.com/architecture/agent.md#tainted-gpu-nodes)).

> [tab] Hosted control plane and agent
>
> Create the agent's key (shown once), store it in a Secret, and install the chart:
>
> ```bash Install the agent theme={"theme":"css-variables"}
> infercrane agent create partner-cluster --output json
> kubectl create namespace models
> kubectl -n models create secret generic infercrane-agent-key --from-literal=key="$AGENT_KEY"
> helm install agent deploy/helm/infercrane-agent -n models \
>   --set controlPlane.url=https://CONTROL_PLANE_URL \
>   --set 'agent.servers[0]=http://vllm.models.svc:8000' \
>   --set agent.serverTokenSecret.name=YOUR_SERVER_KEY_SECRET \
>   --set agent.endpointName=support-bot --set agent.model=YOUR/MODEL \
>   --set executor.enabled=true --set 'executor.allowedImages[0]=vllm/vllm-openai' \
>   --set 'executor.allowedAccelerators[0]=NVIDIA-A10G' \
>   --wait
> infercrane endpoint list
> ```
>
> The agent only dials out, over HTTPS. Its Role covers Deployments, Services, NetworkPolicies, and
> read-only PVCs in one namespace, with no access to Secrets and nothing cluster-wide. It runs only
> images on `executor.allowedImages`. See [Kubernetes](https://docs.infercrane.com/architecture/agent.md#kubernetes).

> [tab] Control plane in your cluster
>
> Follow [Control plane in your cluster](https://docs.infercrane.com/integrations/kubernetes-install.md#control-plane-in-your-cluster):
> the namespace bootstrap, PostgreSQL, `infercrane serve`, then the agent pointed at it. Then check
> every permission without creating a workload:
>
> ```bash Check the control plane's access theme={"theme":"css-variables"}
> INFERCRANE_URL=YOUR_CONTROL_PLANE_URL infercrane doctor --kubernetes
> ```
>
> Record your GPU's hourly cost as a rate card in `INFERCRANE_OPTIMIZATION_PRICES_JSON`
> (`cloud: kubernetes`, `authority: account_contract`), so a run can be approved against a spend
> cap. See [Create a durable run](https://docs.infercrane.com/features/optimization.md#create-a-durable-run).

To remove everything afterwards, see [Remove it](https://docs.infercrane.com/integrations/kubernetes-install.md#remove-it).

### Connect traffic

Start observe-only. Nothing about how your applications are served changes.

* **Agent:** the servers in `agent.servers` are registered observe-only.
* **Control plane in your cluster:** connect what serves the workload today, a model server or your
  LiteLLM.

  ```bash Connect observe-only theme={"theme":"css-variables"}
  infercrane connect http://litellm.internal:4000/v1 --as support-bot --type litellm --model company-chat
  infercrane observe support-bot
  infercrane doctor support-bot
  ```

Observe-only gives health and engine metrics. It does not see requests, so record the traffic shape
in one of two ways. Either way InferCrane keeps timings and token counts, never the text.

* **Import your gateway's request logs.** Post content-free observations from LiteLLM, OpenTelemetry,
  or your own logs. Unknown fields, prompt and response content included, are refused. At most 1,000
  per batch (see [telemetry](https://docs.infercrane.com/features/telemetry.md#import-existing-production-telemetry)):

  ```bash Import request shapes theme={"theme":"css-variables"}
  curl -fsS -X POST "$INFERCRANE_URL/api/v1/endpoints/support-bot/traffic-observations" \
    -H "Authorization: Bearer $INFERCRANE_API_KEY" -H 'Content-Type: application/json' \
    -d @observations.json
  ```

* **Send requests through InferCrane in your network.** With the agent, let it serve the endpoint
  inside your cluster (see [the agent as the data plane](https://docs.infercrane.com/architecture/agent.md#the-agent-as-the-data-plane));
  applications then call `http://agent-infercrane-agent.models.svc:8080/v1` with an InferCrane API
  key. With the control plane in your cluster, promote the connection with
  `infercrane adopt promote support-bot --ownership traffic-managed`.

  ```bash Serve the endpoint from the agent theme={"theme":"css-variables"}
  curl -X PUT "$INFERCRANE_URL/api/v1/adoptions/endpoints/support-bot/ownership" \
    -H "Authorization: Bearer $INFERCRANE_API_KEY" -d '{"ownership_mode":"agent-managed"}'
  ```

  The winner's guarded rollout in week 3 needs the agent to serve the endpoint this way.

After a day of traffic, capture the trace. It prints the workload fingerprint, and tells you the load
to measure at:

```bash Capture the traffic shape theme={"theme":"css-variables"}
infercrane migrate capture support-bot --window 24h
```

### Your quality bar

Your eval set decides whether a setup that serves more still answers well enough. Give InferCrane
your own prompts, tasks, or tool-call cases, or InferCrane builds one from your logs with your
consent.

| Format | Size | Use it for |
| - | - | - |
| Prompts and conversations, with optional tool definitions | Up to 200 cases, 512 KiB | Agreement with your current setup's answers, and tool calls that must not break |
| A task set: one gold answer per item, a number or a letter (`grading: answer_line`) | Up to 1,000 items, 1 MiB | Setups that change answers by design (another precision or checkpoint, speculation): they must hold within 1 point |

The formats are in [Use your own test set](https://docs.infercrane.com/features/semantic-quality.md#use-your-own-test-set) and
[Task sets](https://docs.infercrane.com/features/semantic-quality.md#task-sets). Start from the built-in suite and check your file
locally; nothing is uploaded:

```bash Write and check an eval set theme={"theme":"css-variables"}
infercrane evaluation set default > eval-set.json
infercrane evaluation set digest eval-set.json
```

Where to keep it:

* **Agent:** beside the agent, so its prompts and answers never leave your cluster. Add
  `--set-file executor.evalSets.support=eval-set.json` to the Helm install; a run names it by the
  digest printed above.
* **Control plane in your cluster:** upload it there; it is stored in your own PostgreSQL.

  ```bash Upload an eval set theme={"theme":"css-variables"}
  infercrane evaluation set upload eval-set.json
  ```

Don't put personal data or secrets in an eval set. See [Security](https://docs.infercrane.com/security.md).

**What InferCrane needs from you in week 1:** an engineer for the install call, cluster access for
that engineer, the free GPU, a day of traffic shape, and the eval set.

## Week 2: measure and prove

> [!WARNING]
>
> Measurement starts GPU servers in your namespace and sends test load to them, never to your
> production traffic. A run starts only after you approve a spend cap, and its approval expires within
> 24 hours.

**1. Baseline**

Your current setup is measured together with an identical copy of it, each on its own server.
The copy's difference is the measurement noise every other result is read against.

**2. Proposals**

The planner reads your endpoint's measured bottleneck and your model, and proposes setups and
techniques for your load and targets. A proposal is a starting point: the run confirms or refuses
each one. Review them before anything starts.

**3. Measurement**

Each setup runs on its own server beside your current setup, in the same time window. A gain is
measured again on fresh servers before it counts, and every setup's answers are checked on your
eval set. A setup that changes answers must hold within 1 point on your task set, or it is not
promoted, whatever its speed.

**4. Verdict per load level**

A setup that wins at normal load can lose at peak. Run the proposal at both loads
(`--target-concurrency NORMAL_LOAD`, then `PEAK_LOAD`), and read the verdict per load band. See
[a verdict per load band](https://docs.infercrane.com/features/optimization.md#a-verdict-per-load-band).

> [tab] Hosted control plane and agent
>
> Create the run through the API: a proposal that names your endpoint and declares its current
> setup (`POST /api/v1/optimization/proposals` with `diagnosis_endpoint` and `declared_setup`), then
> a run on it (`POST /api/v1/optimization/campaigns` with `"intent": "evolve_endpoint"` and
> `"target_endpoint": "support-bot"`). Until the current setup is declared, every setup must show
> its answers held within 1 point. `optimize create` in the CLI names deployments only, so use the
> API for this step and the CLI for the rest:
>
> ```bash Run and follow the measurement theme={"theme":"css-variables"}
> infercrane optimize approve RUN_ID --max-cost-usd CAP --expires-in 24h
> infercrane optimize watch RUN_ID
> infercrane optimize results RUN_ID
> ```
>
> See [optimization runs on an agent's endpoint](https://docs.infercrane.com/architecture/agent.md#optimization-runs-on-an-agent%E2%80%99s-endpoint).

> [tab] Control plane in your cluster
>
> ```bash Propose, run, and follow the measurement theme={"theme":"css-variables"}
> infercrane optimize create MODEL --provider kubernetes --gpu GPU \
>   --target-deployment CURRENT_DEPLOYMENT --diagnosis-endpoint support-bot \
>   --workload-fingerprint sha256:FINGERPRINT --target-concurrency NORMAL_LOAD \
>   --eval-set sha256:EVAL_SET_DIGEST --objective interactive
> infercrane optimize inspect RUN_ID
> infercrane optimize approve RUN_ID --max-cost-usd CAP --expires-in 24h
> infercrane optimize watch RUN_ID
> infercrane optimize results RUN_ID
> ```
>
> See [how a campaign measures candidates](https://docs.infercrane.com/features/optimization.md#how-a-campaign-measures-candidates)
> and [how it checks answers](https://docs.infercrane.com/features/optimization.md#how-a-campaign-checks-answers).

**What InferCrane needs from you in week 2:** the spend cap and approval for each run, and a short
review of the proposals with the person who owns the workload.

## Week 3: roll out safely

> [!WARNING]
>
> Rolling out changes production traffic. Each step below needs your approval, and each has a way
> back.

* **On an agent's endpoint.** Activating the winner starts it as a second server in your namespace.
  On the run's Release Guard pass, the endpoint routes to it first with your own server as the
  fallback. For a 300-second window Release Guard compares its live requests with your server's; a
  rejection, or too few requests, switches back and stops the new server. If the agent stops
  reporting, the rollout fails closed. See
  [the winner's guarded rollout](https://docs.infercrane.com/architecture/agent.md#the-winner%E2%80%99s-guarded-rollout).

  ```bash Roll out the winner theme={"theme":"css-variables"}
  infercrane optimize activate RUN_ID --candidate SETUP_ID
  ```

* **On a deployment the control plane runs.** The winner is validated beside the current revision,
  promoted only when Release Guard accepts it, and watched for a window after promotion. A regression
  in that window restores the previous revision. See [Release Guard](https://docs.infercrane.com/features/release-guard.md).

  ```bash Roll out, and roll back theme={"theme":"css-variables"}
  infercrane optimize activate RUN_ID --candidate SETUP_ID
  infercrane rollout inspect CURRENT_DEPLOYMENT
  infercrane rollout rollback CURRENT_DEPLOYMENT PREVIOUS_REVISION_ID --reason 'REASON' --wait
  ```

* **Leaving a closed API.** The new setup starts at 5% of the endpoint's traffic, becomes primary
  when Release Guard passes on its own requests, and the API stays as the fallback. See
  [Migrate from a closed API](https://docs.infercrane.com/features/migration.md).

  ```bash Canary, primary, rollback theme={"theme":"css-variables"}
  infercrane migrate canary support-bot --verdict VERDICT_ID --percent 5
  infercrane migrate primary support-bot --window 1h
  infercrane migrate rollback support-bot
  ```

**What InferCrane needs from you in week 3:** a rollout window, the person who approves each step,
and your on-call contact for that window.

## Week 4: the report and the decision

**1. Proof Report**

A signed before-and-after for the workload: output per GPU, cost per million tokens, answer
quality, and the saving, counted only when it is verified. Every number links to the run that
measured it, with the command that checks it. See [Proof Report](https://docs.infercrane.com/features/proof-report.md).

```bash Write and check the report theme={"theme":"css-variables"}
infercrane report proof RUN_A RUN_B --prepared-for "YOUR COMPANY" --html proof.html
infercrane report proof RUN_A RUN_B --output json > proof.json
infercrane report proof verify proof.json
```

A number InferCrane could not measure is reported as unknown, never estimated.

**2. Decision meeting**

Continue, or stop. The report is yours either way.

## After the proof

* **Stay optimized:** checks when your model, engine, or GPUs change, and a new proof before a
  change ships; a monthly review. Name the eval set those checks use with
  `infercrane evaluation set stay-optimized ENDPOINT sha256:DIGEST`. See
  [Stay optimized](https://docs.infercrane.com/features/optimization.md#stay-optimized).
* **More workloads,** added one at a time.
* **Techniques built on your traffic,** each proved the same way before it ships:
  [drafts trained on your traffic](https://docs.infercrane.com/features/trained-drafts.md) and
  [load-adaptive speculation](https://docs.infercrane.com/features/adaptive-speculation.md) are lab-proven and not yet in the
  product.
* **Planned, not available yet:** eval sets built from your own traffic, right-sizing (the same
  answers from a smaller model), and post-training through partners.

## Support

| | |
| - | - |
| Channel | A shared Slack channel for your team and your InferCrane contact |
| A blocking problem (install, rollout, rollback, a data concern) | First reply the same business day, Central European Time |
| Anything else | First reply by the next business day |
| Weekly check-in | 30 minutes: what was measured, what is next, what is blocked |
| Security reports | Privately, as in [SECURITY.md](https://github.com/infercrane/infercrane/blob/main/SECURITY.md), not in the shared channel |

Never post credentials, prompts, or model answers in the channel.

## Next

Check your GPUs, engine, and model on the [supported list](https://docs.infercrane.com/supported.md), then read
[What leaves your cloud](https://docs.infercrane.com/architecture/agent.md#what-leaves-your-cloud) with your security team.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.