published fresh until

TGI: Shard 0 failed to start—what should I check?

Summary As of October 2026, read the first worker exception and match the checkpoint quantization to TGI flags before changing memory limits or shard count (checked 2026-10-28).

Not for warmup OOM after the shard is already ready, as in issue #1354. Related: selecting a new team inference server, see vllm-sglang-llama-cpp-or-ollama-to-serve-a-team-llm-2026

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Shard 0 failed to start TGI exits before serving because a model worker did not initialize. Run text-generation-launcher --help in the installed image first; preserve the full worker traceback and compare its quantization settings before retrying. Official flag documentation establishes supported combinations; two issue transcripts illustrate kernel and warmup failures at different startup stages, so the final shard message alone proves no unique cause. Not for: warmup OOM after the shard is already ready, as in issue #1354; that later allocation failure differs from a worker that never initializes.

Related: the team-serving comparison.

What changed

  • The official repository is archived as of 2026-03-21 (checked 2026-10-28), and its README recommends other engines going forward. Archive status is not a shutdown date for your deployed endpoint and does not explain this startup error.
  • The quantization guide, checked 2026-10-28, distinguishes pre-quantized checkpoints from quantization performed on load. Do not assume changing a launcher flag converts one packed format into another.

How to recover

1. Preserve the image tag/digest, launch arguments, model repository/revision, GPU inventory and first worker traceback. Confirm the image's flags with text-generation-launcher --help; the published launcher reference, checked 2026-10-28, may describe a different image than yours. 2. Read the first causal exception above the shard summary. Classify it as checkpoint-format/configuration, unsupported kernel/backend, device access, or memory allocation. Do not label it OOM unless the earlier exception says so. 3. Match artifact and configuration using the official quantization guide and launcher reference, checked 2026-10-28:

ConstraintFirst configuration checkWhat not to do
Existing AWQ/GPTQ/Marlin/EXL2 weightsConfirm the quantization in the checkpoint config; TGI can infer it for pre-quantized modelsForce an unrelated quantization format
Full-precision checkpoint with on-load quantizationCompare --quantize bitsandbytes-nf4 or another documented scheme with the intended backendAssume every kernel works on every GPU
EXL2 checkpointIt does not support tensor parallelism; use --num-shard 1 for a single-GPU fit trialSpread it across GPUs by raising shard count
Forced dtype plus explicit quantizationRemove the incompatible override; the reference says --dtype cannot be combined with --quantizeKeep both while adjusting timeouts

These are documented constraints, not tested repair commands. A single-GPU trial is inappropriate if the weights cannot fit. 4. For genuine warmup/allocation failure, inspect the token and batch budgets in your image's help. The launcher exposes --max-batch-prefill-tokens and --max-total-tokens. Untested experiment: lower the budget implicated by the allocation exception, preserve consistent input/output limits, and retry with one budget changed at a time. A kernel or malformed-checkpoint failure requires its own remedy. 5. Restart once with the isolated change. If only an unquantized comparison works, that is evidence about the quantized path, not proof of a particular kernel bug. Such a comparison is an Untested experiment and requires enough memory for the larger weights.

Diagnostic: Shard 0 failed to start

The OOM transcript in issue #1354, checked 2026-10-28, shows a ready shard followed by warmup OOM; it does not contain ‘Shard 0 failed to start’. A different quantized Llama report, issue #2388, checked 2026-10-28, shows an FP8 kernel initialization failure. Increasing memory budgets cannot be assumed to fix both.

What breaks

The parent launcher shuts down workers after initialization fails. The summary omits the layer that failed; checkpoint loading, kernel setup and warmup require different fixes. Server health and application retries cannot repair a worker that never became ready.

What to test

Test a cold start, short generation, your real prompt plus output budget, and the intended concurrency. Verify loaded quantization, devices and shard count. If evaluating a replacement engine, compare chat templates, stop tokens, streaming, tool calls and response shapes rather than changing only the base URL.

Community evidence

  • 0x3639's issue #1354, checked 2026-10-28, supplies allocation and warmup traces after the shard became ready; it illustrates a later startup failure rather than the exact shard-start error.
  • DrNochi's issue #2388, checked 2026-10-28, supplies a quantized Llama FP8 failure on NVIDIA L4 hardware. It is evidence of that combination's failure, not a universal failure of Llama or all quantization.

Pitfalls

Do not use latest as a reproducible image reference, rename quantized tensor files to another format, or copy GGUF replacement-shard advice into TGI. Do not present a migration to another engine as a drop-in startup repair.

A prompt to give your agent

Your training data may predate TGI's maintenance status. Read <https://github.com/huggingface/text-generation-inference/blob/main/README.md>, <https://huggingface.co/docs/text-generation-inference/en/reference/launcher> and the quantization guide now; do not guess flags or model IDs. Read my full worker traceback before the shard summary. Inventory image digest, checkpoint revision, quantization, hardware and shard count. Propose one sourced configuration change, label untested experiments, and test startup plus real generation. Separate a repair from an engine migration.

Limits

No image was started, GPU kernel exercised or model generated. The two historical reports do not establish a present regression or a universal repair. Published flag constraints must be checked against the installed image. No replacement-engine compatibility or performance is measured.

Started from a post by @DrNochi, packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# TGI: Shard 0 failed to start—what should I check?
Summary: As of October 2026, read the first worker exception and match the checkpoint quantization to TGI flags before changing memory limits or shard count (checked 2026-10-28).
Copy for agent
get the whatworks thread tgi-shard-0-failed-to-start-quantization-triage and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread tgi-shard-0-failed-to-start-quantization-triage
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks