From 482e196ad38cd15060b45fd3310979258311bbd9 Mon Sep 17 00:00:00 2001 From: Andrey Cheptsov Date: Mon, 23 Nov 2026 17:36:01 +0100 Subject: [PATCH 1/3] [Docs] Describe routers without a CPU-only node The Router section showed the router only as a replica group with CPU-only `resources`. A note now says what to do in a fleet without a dedicated CPU-only node: set `router` on a GPU replica group and launch both the router and a worker in its `commands`. Co-Authored-By: Claude Fable 5.2 --- mkdocs/docs/concepts/services.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mkdocs/docs/concepts/services.md b/mkdocs/docs/concepts/services.md index a9923e36b..955099984 100644 --- a/mkdocs/docs/concepts/services.md +++ b/mkdocs/docs/concepts/services.md @@ -302,6 +302,9 @@ Below are examples for running `Qwen/Qwen3.8-Flash-Next` with SMG and `zai-org/G +> If you don't have a dedicated CPU-only node in the fleet, set `router` on a GPU replica group and launch both the router +> and a worker in its `commands`. + [`groups`](../reference/dstack.yml/service.md#groups) and top-level [`replicas`](../reference/dstack.yml/service.md#replicas) are mutually exclusive. If `groups` is set, top-level `resources` is ignored. Set `resources` in each group. > Properties such as `regions`, `port`, `env` and some other cannot be configured per replica group. This support is coming soon. From 8579fca28c278d57efb88612ac9cde5f1ff71b14 Mon Sep 17 00:00:00 2001 From: Andrey Cheptsov Date: Tue, 24 Nov 2026 14:40:57 +0100 Subject: [PATCH 2/3] [Docs] Pass the router's own worker to SMG dstack registers only the workers of other replica groups with the router, so a worker launched in the router's own group has to be passed to it with --worker-urls. Co-Authored-By: Claude Fable 5.2 --- mkdocs/docs/concepts/services.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkdocs/docs/concepts/services.md b/mkdocs/docs/concepts/services.md index 955099984..977fa36b0 100644 --- a/mkdocs/docs/concepts/services.md +++ b/mkdocs/docs/concepts/services.md @@ -303,7 +303,8 @@ Below are examples for running `Qwen/Qwen3.8-Flash-Next` with SMG and `zai-org/G > If you don't have a dedicated CPU-only node in the fleet, set `router` on a GPU replica group and launch both the router -> and a worker in its `commands`. +> and a worker in its `commands`. With SMG, pass that worker to the router with `--worker-urls`, since `dstack` registers +> only the workers of other replica groups. [`groups`](../reference/dstack.yml/service.md#groups) and top-level [`replicas`](../reference/dstack.yml/service.md#replicas) are mutually exclusive. If `groups` is set, top-level `resources` is ignored. Set `resources` in each group. From 82f0ec942458a87ed589b0acb46bee2cef5b4a7b Mon Sep 17 00:00:00 2001 From: Bihan Rana Date: Wed, 25 Nov 2026 18:43:33 +0545 Subject: [PATCH 3/3] [Docs] Update No CPU-node fleets --- mkdocs/docs/concepts/services.md | 34 +++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/mkdocs/docs/concepts/services.md b/mkdocs/docs/concepts/services.md index 977fa36b0..208e16806 100644 --- a/mkdocs/docs/concepts/services.md +++ b/mkdocs/docs/concepts/services.md @@ -302,9 +302,37 @@ Below are examples for running `Qwen/Qwen3.8-Flash-Next` with SMG and `zai-org/G -> If you don't have a dedicated CPU-only node in the fleet, set `router` on a GPU replica group and launch both the router -> and a worker in its `commands`. With SMG, pass that worker to the router with `--worker-urls`, since `dstack` registers -> only the workers of other replica groups. +??? info "No CPU-node fleets" + When your fleet does not have a dedicated CPU-only node to host a standalone router, you can co-locate the router with + a worker in a GPU replica group. If you are using the SMG router and the router and a worker are in the same replica + group, that worker must be registered with the router manually using `--worker-urls`. To register the worker manually, + pass its URL when launching the router: + + ```yaml + groups: + - replicas: 1 + commands: + - pip install smg + # Worker + - | + python -m sglang.launch_server \ + --model-path $MODEL_ID \ + --host 0.0.0.0 \ + --port 30000 & + # Router + - | + smg launch \ + --worker-urls http://localhost:30000 \ + --host 0.0.0.0 \ + --port 8000 + router: + type: smg + + - replicas: 2 + # ... + + port: 8000 + ``` [`groups`](../reference/dstack.yml/service.md#groups) and top-level [`replicas`](../reference/dstack.yml/service.md#replicas) are mutually exclusive. If `groups` is set, top-level `resources` is ignored. Set `resources` in each group.