Skip to content

armgit / sie

Public Imported from GitHub
0

Open-source inference server and production cluster for all the models your agent needs.

fix(helm): require pytorch for remote lanes

krisztian-gajdar1545d6118ce8
diff --git a/deploy/helm/sie-cluster/README.md b/deploy/helm/sie-cluster/README.md
index ae3d8d46c..039a11345 100644
--- a/deploy/helm/sie-cluster/README.md
+++ b/deploy/helm/sie-cluster/README.md
@@ -826,9 +826,10 @@ Below, `<fullname>` is the chart's full name: `<release>-sie-cluster`, or
the upstreams file nor the credentials.
- A remote lane runs no model on an accelerator. It runs the `cpu-default`
worker image (`imageBundle: default`), which contains the remote adapters, and
- the render fails when its pool sets `gpu.count` above 0, requests any
- resource other than `cpu`, `memory` and `ephemeral-storage`, or sets a
- `runtimeClassName`. It does not inherit `workers.common.runtimeClassName`.
+ the render fails when its resolved engine is not `pytorch`, its pool sets
+ `gpu.count` above 0, requests any resource other than `cpu`, `memory` and
+ `ephemeral-storage`, or sets a `runtimeClassName`. It does not inherit
+ `workers.common.runtimeClassName`.
- The worker image must ship the `remote` bundle, which server images do from
the first release that includes #492. With an older image the worker exits
at start (`Bundle file not found`) and the lane restarts in a loop.
diff --git a/deploy/helm/sie-cluster/templates/worker-statefulset.yaml b/deploy/helm/sie-cluster/templates/worker-statefulset.yaml
index 4e916f802..e0ca12599 100644
--- a/deploy/helm/sie-cluster/templates/worker-statefulset.yaml
+++ b/deploy/helm/sie-cluster/templates/worker-statefulset.yaml
@@ -106,6 +106,10 @@ fast at render time.
{{- if not (or (eq $engine "pytorch") (eq $engine "candle")) }}
{{- fail (printf "workers.pools.%s.bundles.%s.engine must be one of: pytorch, candle" $poolName $bundleName) }}
{{- end }}
+{{- $remoteLane := eq $bundle "remote" }}
+{{- if and $remoteLane (ne $engine "pytorch") }}
+{{- fail (printf "workers.pools.%s.bundles.remote: the remote adapters run only in the pytorch worker; set engine: pytorch on this pool or bundle" $poolName) }}
+{{- end }}
{{- if and (eq $engine "candle") (ne $bundle "candle") }}
{{- fail (printf "workers.pools.%s.bundles.%s.engine=candle requires bundle=candle so gateway routing and worker heartbeats agree" $poolName $bundleName) }}
{{- end }}
@@ -139,7 +143,6 @@ fast at render time.
{{- fail "workers.common.kernelCache.storageSize must be non-empty when the kernel cache is enabled" }}
{{- end }}
{{- $gpuCount := int $pool.gpu.count }}
-{{- $remoteLane := eq $bundle "remote" }}
{{- if and $remoteLane (gt $gpuCount 0) }}
{{- fail (printf "workers.pools.%s.bundles.remote: a remote lane holds upstream credentials and runs no model on an accelerator; set workers.pools.%s.gpu.count to 0" $poolName $poolName) }}
{{- end }}
diff --git a/tools/ci/tests/test_helm_render.py b/tools/ci/tests/test_helm_render.py
index 81b98ef95..e097b525a 100644
--- a/tools/ci/tests/test_helm_render.py
+++ b/tools/ci/tests/test_helm_render.py
@@ -1799,6 +1799,10 @@ def test_the_mcp_ingress_certificate_cannot_be_sent_upstream(tmp_path: Path) ->
remote_lane(bundles={"remote": {"imageBundle": "remote", "minReplicas": 1, "maxReplicas": 1}}),
"no remote worker image is published",
),
+ (
+ remote_lane(engine="candle"),
+ "the remote adapters run only in the pytorch worker",
+ ),
(
remote_lane(resources={"limits": {"nvidia.com/gpu": "1"}}),
"workers.pools.remote.resources.limits: a remote lane runs no model on an accelerator",