Skip to main content
mstar serve prints its banner before the server can accept a request. Run this in another terminal. When the deployment is ready, it prints {"status":"healthy"}.

Follow startup in the logs

  1. The launcher resolves the deployment YAML and checks for a usable mstar-server binary.
  2. The conductor validates the deployment and starts one worker per rank.
  3. Workers load model weights, compile forwards and capture graphs for the configured shapes. All workers ready marks completion of worker setup.
  4. The server runs any warmup_requests, then starts the HTTP frontend. Look for its listening address.
A refused connection is expected before the frontend binds. After binding, a 503 from /health indicates a problem with the serving process or its backend. Check the launcher and worker logs. Health response details

Estimate startup time

On one H200, BAGEL at -O1 took 516 seconds from launch to the first successful /health with downloaded weights and an empty compile cache. A restart with the compile cache warm took 68 seconds. Include storage and CPU allocation when setting startup timeouts.

Choose a compile level

For a development restart, use mstar serve qwen3_5_0.8b -O0. -O0 uses the default compiler mode, -O1 enables coordinate-descent tuning, and -O2 adds GEMM autotuning. A model can select its own compile mode for specific forwards. Each level has separate cache entries. With mstar-serve, set MSTAR_COMPILE_LEVEL. CLI reference

Warm the request shapes clients will use

List representative requests under warmup_requests in the YAML. A request can set text, files (local or hf:// paths), output_modalities, model_kwargs and repeat. A failed warmup logs an error and is skipped. Read the log and send one request for your actual workload before timing it.

Reuse compiled kernels

Keep these directories on writable persistent storage. The conductor logs the resolved Inductor and Triton paths at startup. XDG_CACHE_HOME defaults to ~/.cache. In a container with a persistent /cache mount, set the paths before starting the server:
Use a separate compile cache for each GPU model and software stack. After a driver or ptxas change, choose a fresh cache or change TORCH_COMPILE_CACHE_KEY_TAG. On a shared filesystem, copy a matching warm cache to node-local storage at job start. Changing HF_HOME alone moves the weights, not the compiled kernels.

Diagnose a failed start

Interpret compiler warnings

Autotuning may discard a candidate kernel for exceeding shared memory and continue with another. An optional attention backend can also report a fallback. Check whether the worker subsequently reached readiness. For a required model feature or unexpectedly slow execution, confirm the selected backend in the model guide and startup logs.