From aa96f151b66a7ee1f3b685c51c924f6e816f7edf Mon Sep 17 00:00:00 2001 From: mattate Date: Wed, 25 Mar 2026 10:56:59 -0500 Subject: [PATCH] fix: use fleet blocks config for string SSH hosts in create_fleet_ssh_instance_model When SSH fleet hosts are specified as plain strings (e.g. hosts: ["192.168.0.1"]), the fleet-level blocks configuration is ignored and hardcoded to 1. This prevents instances from being divided into multiple GPU blocks. The fix uses spec.configuration.blocks instead of the hardcoded value, consistent with how the else branch reads host.blocks for SSHHostParams objects. Fixes #3475 --- src/dstack/_internal/server/services/fleets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dstack/_internal/server/services/fleets.py b/src/dstack/_internal/server/services/fleets.py index 702086f6d..cefb2249e 100644 --- a/src/dstack/_internal/server/services/fleets.py +++ b/src/dstack/_internal/server/services/fleets.py @@ -684,7 +684,7 @@ async def create_fleet_ssh_instance_model( port = ssh_params.port proxy_jump = ssh_params.proxy_jump internal_ip = None - blocks = 1 + blocks = spec.configuration.blocks else: hostname = host.hostname ssh_user = host.user or ssh_params.user