Learning resourcesReviewed · Together AI

Together AI: Run a shadow experiment

Together AI’s shadow-experiment guide teaches developers to compare model deployments using copies of live requests, but it requires a running endpoint and capacity for extra traffic. It covers sampling, target eligibility, monitoring and experiment controls on dedicated endpoints.

Researched 15 Nov 2026

In short.

Together AI’s shadow-experiment guide helps developers compare candidate model deployments using live request copies, but it requires existing endpoint traffic and additional deployment capacity. Candidate responses never reach the caller, so evaluating their quality requires separate observation or output logging. The guide explains four sampling strategies, shared samples across targets, lifecycle controls and operational failure modes. Adaptive sampling is an approximate throttle, changes take about 30 to 60 seconds, and monetary costs are unknown.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete captured text at [https://docs.together.ai/docs/dedicated-endpoints/shadow-experiments.md], including sampling, requirements, creation paths, response fields, observation, lifecycle controls, troubleshooting, limits, figure descriptions, the documentation-index pointer and Mintlify hosting notice. Linked documentation, external image contents, SDK implementation and live service behavior are outside the selected scope. No commands, API requests or deployments were executed; operational behavior, performance and costs remain untested.

The overview

Identity

Run a shadow experiment is Together AI documentation for the shadow-experiment feature on dedicated inference endpoints. The original page is [https://docs.together.ai/docs/dedicated-endpoints/shadow-experiments.md]. It explains how to copy sampled endpoint requests to candidate deployments while the live deployment continues supplying client responses.

Assessment

The guide is useful for warming a candidate under real request patterns, investigating configuration changes and comparing deployment latency, throughput and errors before moving live traffic. Its practical strength is explaining operational details that affect those comparisons, including target eligibility, sampling behavior and propagation delays.

It does not establish that a candidate produces better answers or is ready for production. Output comparison depends on logging, and the page provides no measured performance results, worked quality evaluation or acceptance thresholds. Runtime behavior has not been independently assessed.

Users

The main audience is developers and inference operators already using Together AI dedicated endpoints. It is especially relevant when several candidate configurations need the same prompts for comparison, or when a deployment needs realistic load before promotion.

Beginners need familiarity with endpoints, deployments, traffic weights and deployment metrics. An endpoint without incoming requests produces no mirrored traffic, so the procedure depends on having a usable traffic source.

Capabilities

Four strategies are documented: uniform randomly samples a configured fraction of requests; key_based makes sampling sticky for a request field; adaptive_uniform adjusts sampling toward a target number of requests per second; adaptive_key_based combines key sampling with that adjustment.

One experiment can send the same sampled requests to multiple targets. Multiple experiments can use independent rates, strategies and lifetimes on the same endpoint. Controls include pausing, changing sampling, adding or removing targets, deleting an experiment and detaching a candidate before rollout.

Using it

Requirements

A running endpoint under load is required. Each target must be a deployment under that endpoint with traffic weight zero or unset. It must not be the source or target of an active rollout or a member of an A/B test. The guide allows a staging deployment with weight zero for warm-up.

Targets must have capacity for the expected mirrored volume. The CLI can provision a new deployment from a model ID; the console and SDK use an existing deployment. Account entitlements, authentication setup, minimum client versions and model or hardware compatibility are not specified.

Mechanism

Sampling happens at the API gateway. Every original request follows the live serving path; a selected copy is sent asynchronously to every target in its experiment. Candidate responses are discarded rather than returned to the caller. Copies sent to one target are distributed across its replicas through normal load balancing, and mirrored requests are never mirrored again.

Adding targets multiplies copied traffic. At a 10% rate, two targets each receive approximately 10% of endpoint traffic, rather than sharing that 10%. Independent experiments can also select the same original request.

For key sampling, the documented forms body.user and body.prompt_cache_key identify top-level request-body fields, not arbitrary nested paths. Missing field values fall back to random sampling. Adaptive strategies use an observation window that defaults to 60 seconds.

Setup

For the CLI path, supply a model ID, endpoint ID, experiment name and sampling settings to tg endpoints shadow. Keep the returned exp_ experiment ID for subsequent operations. The SDK path requires an existing target deployment and places the sampling configuration under source.endpoint, but this page supplies no SDK call example.

For the console path, create the candidate with weight zero, open the endpoint’s Traffic Tests tab and choose New shadow test. The form requires at least two endpoint deployments, including one receiving no live traffic. Select the candidate, configure sampling and create the test.

The creation note says description must be added through an update, while the console walkthrough offers an optional Description field during creation. The page does not explain whether the console performs that update automatically.

Example

The page’s illustrative command is: tg endpoints shadow ml_CbJNwQC2ZqCU2iFT3mrCh --endpoint ep_abc123 --rate 0.1 --name candidate-v2. These are example identifiers to replace. The documented result is a newly provisioned candidate deployment and an experiment configured to mirror approximately 10% of endpoint requests.

Continue sending normal requests with the endpoint string in the model field. After the documented propagation window, compare the candidate’s received volume, latency, throughput and errors with the baseline. Compare outputs only if they are logged. This example was not executed, and no resulting measurements are available.

Assessment & evidence

Limitations

New experiments, updates and deletions take about 30 to 60 seconds to affect mirroring. ACTIVE means an experiment has at least one target; it does not establish target health or a nonzero sampling rate. Setting the rate to zero pauses copies while leaving that state ACTIVE.

Copies can be silently dropped when a target is provisioning, scaled to zero or unhealthy. The guide says these failures appear in target shadow metrics as build_error or 5xx while callers continue receiving live responses. A successful client response therefore does not demonstrate successful shadow processing.

Key sampling can produce a request fraction different from its nominal rate when keys have unequal traffic volumes. Adaptive sampling can exceed its configured QPS target. Creation accepts up to 100 inline targets, with more addable afterwards. Experiment names are immutable and unique within the endpoint; experiment and target names are limited to 256 characters. List calls default to 50 items and allow up to 500.

Reasoning

Use uniform sampling when a predictable sampling fraction matters. Use key sampling when keeping requests from the same user or key together matters, while accounting for uneven key volumes. Use adaptive sampling when approximate load control is useful, with conservative settings and observation of actual received volume.

Put candidates in one experiment when comparing them on the same selected requests. Use separate experiments when candidates need different rates, sampling rules or lifetimes. In either arrangement, target count and overlapping experiments determine the total added load.

The documented separation between live responses and candidate processing supports observation without replacing user-visible answers. It does not establish that mirrored processing succeeds or that a candidate meets quality, reliability or cost requirements.

Alternatives

The page describes A/B tests as splitting live traffic to compare responses users actually receive [https://docs.together.ai/docs/dedicated-endpoints/ab-tests.md]. That serves a different evaluation need from observing candidate responses in the background.

It describes rollouts as moving live traffic to a validated candidate in controlled steps [https://docs.together.ai/docs/dedicated-endpoints/rollouts.md]. The linked guides are outside the supplied evidence, so their detailed requirements and behavior are not assessed. No comparison with other providers is established.

Evidence

The evidence is the complete captured text of Together AI’s documentation page at [https://docs.together.ai/docs/dedicated-endpoints/shadow-experiments.md], retained as selected-page.txt. Its source revision is sha256:97e7d59d0e6abb2e9a538a52b680fe9921c1f706234518d0f36b94ce8f1218f3.

This is provider documentation containing example commands, interface descriptions, response fields and troubleshooting guidance. It supplies no execution receipts, measured benchmark results or independent validation. Referenced images contribute their supplied descriptions; their external contents were not inspected.

Access & freshness

Costs

The page gives no prices, billing formula, minimum charge or cost estimate. Monetary cost is unknown. Mirroring increases the work assigned to target deployments: as an illustrative calculation, a 10% experiment with two targets produces roughly 20 copied requests per 100 original requests across those targets.

Adaptive target_qps is not a spending or capacity ceiling. Received volume may exceed it and rise as the endpoint scales. Deletion is described as removing the experiment and its target records; whether it also removes a deployment provisioned by the CLI, or ends any associated charges, is not established.

Rights

The page does not establish a documentation license, example-code license, model license or service usage terms. Permissions for redistributing the material or using a particular model remain unknown from this evidence.

Because the feature copies live requests, data-handling terms matter. The page does not specify request retention, logging defaults, privacy terms or authorization controls for mirrored data. Discarding candidate responses does not establish how requests or optional logs are retained.

Freshness

The source was captured on 15 November 2026 at 12:28:55.611 UTC. That is a capture timestamp, not a publication or feature-update date. The page supplies no applicable CLI or SDK release number, so compatibility with a particular installed version and subsequent service changes are unknown.

Actions

Before applying the guide, confirm target eligibility, deployment capacity, relevant charges and permission to copy the intended traffic. Begin with a conservative sampling setting, allow for propagation and inspect actual target volume and shadow errors. Define acceptable latency, throughput, error and output-quality comparisons before considering promotion.

Fetch the current etag before updates or deletion; a stale value produces 409 ABORTED and requires another read before retrying. Pause with rate zero, stop by deleting the experiment or removing all targets, and remove target associations before deleting a deployment.

For promotion, the documented rollout --detach option removes the candidate from its shadow experiment before shifting live traffic. Confirm remaining experiment and deployment resources separately, because deleting an experiment is not documented as deleting the candidate deployment.

Evidence for this report

selected-page.txtselected · checked 2026-11-15