Skip to content

init: helm charts - #5

Merged
whoisj merged 2 commits into
mainfrom
whoisj/init-helm-chart
Mar 4, 2025
Merged

whoisj merged 2 commits into
mainfrom
whoisj/init-helm-chart

Conversation

@whoisj

@whoisj whoisj commented Mar 4, 2025

Copy link
Copy Markdown
Contributor

Adds a basic Helm chart for a generic dynemo container.
Lack specific support for API server vs. worker, and OpenAI vs. VLLM vs. TRTLLM, etc.
Future iteration may include specific charts for those topics.
Should be nominally compatible with upcoming Compound AI tooling while retaining flexibility required by sophisticated customers.

Adds a basic test framework for validating Helm Chart using helm template w/ regular expressions.

Adds a set of 3 basic tests:

  • basic positive test
  • simple invalid values test
  • simple GPU resource specification test
Reviewer Instructions

Please focus on the following files:

  • deploy/Kubernetes/common/chart/Chart.yaml
  • deploy/Kubernetes/common/chart/values.yaml
  • deploy/Kubernetes/common/chart/templates/_helpers.tpl
  • deploy/Kubernetes/common/chart/templates/component-deployment.yaml

Other code is less important, but reviews are welcome
... and (mostly) ignore / accept the pwsh code for now.

DLIS-8146

@whoisj

whoisj commented Mar 4, 2025 •

Copy link
Copy Markdown
Contributor Author

@hutm, ideally you can offload the review effort to Julien Mancuso. I would add him, but I do not know his Github alias and the search feature isn't finding it for me. Thanks.

note: Julien has since been added to the repository and to the reviewers list for this PR.

@github-actions

github-actions Bot commented Mar 4, 2025 •

Copy link
Copy Markdown
Contributor

Test Results

 2 files   2 suites   25s ⏱️
73 tests 73 ✅ 0 💤 0 ❌
91 runs  90 ✅ 1 💤 0 ❌

Results for commit 00b7104.

♻️ This comment has been updated with latest results.

@whoisj
whoisj requested a review from julienmancuso March 4, 2025 18:09

@ishandhanani ishandhanani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I would wait for Julien to give the final review before we get this in. Thanks for cooking on this J!

@julienmancuso julienmancuso left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

whoisj added 2 commits March 4, 2025 16:11
Adds a basic Helm chart for a generic dynemo container.
Lack specific support for API server vs. worker, and OpenAI vs. VLLM vs. TRTLLM, etc.
Future iteration may include specific charts for those topics.
Should be nominally compatible with upcoming Compound AI tooling while retaining flexibility required by sophisticated customers.

Adds a basic test framework for validating Helm Chart using `helm template` w/ regular expressions.

Adds a set of 3 basic tests:
- basic positive test
- simple invalid values test
- simple GPU resource specification test
This chang excludes YAML files contained in a Helm chart's templates/ directory as they'll never pass a simple-minded YAML linter.
@whoisj
whoisj force-pushed the whoisj/init-helm-chart branch from 7f42f6c to 00b7104 Compare March 4, 2025 21:11
@whoisj
whoisj requested a review from biswapanda as a code owner March 4, 2025 21:11
@whoisj
whoisj merged commit c909567 into main Mar 4, 2025
@whoisj
whoisj deleted the whoisj/init-helm-chart branch March 4, 2025 21:34
kaim-eng added a commit that referenced this pull request May 22, 2026
components/power_agent/actuator.py:807 uses dcgm_structs.c_dcgmDeviceConfig_v2,

a struct that only exists in DCGM 4.x. With 3.x bindings the agent's

DcgmActuator.init() succeeded, opened the hostengine connection, and

ran NVML init cleanly — then crashed mid-first-reconcile with

'AttributeError: module dcgm_structs has no attribute

c_dcgmDeviceConfig_v2' after some GPUs were already capped. The

SIGTERM-restore path won't run when the actuator never finished

registering with _active_actuator, so the GPUs are left at custom caps.

Add a 7-line hasattr check immediately after the dcgm_structs import

in init() that raises a RuntimeError with:

  - the missing struct name (so the error is grep-able)

  - the required DCGM major (>=4.0)

  - the DCGM_IMAGE build-arg + canonical 4.5.1 tag (so operators

    know exactly what to bump)

Guards against accidental Dockerfile regressions to a 3.x base image.

Pair with the Dockerfile fix in 4820ca7 (which bumps the default

to 4.5.1-1-ubuntu22.04) so the default build path is consistent with

the runtime contract.

Unit test covers both happy path (DCGM 4.x mock) and 3.x rejection

(MagicMock with c_dcgmDeviceConfig_v2 deleted), asserting init fails

BEFORE the first pydcgm.DcgmHandle call so misconfigured deployments

don't half-init and leave hostengine sockets dangling.

Refs: PR #9790 review, Power Agent live-test finding #5.
Signed-off-by: Kai Ma <[email protected]>
kaim-eng added a commit that referenced this pull request May 25, 2026
components/power_agent/actuator.py:807 uses dcgm_structs.c_dcgmDeviceConfig_v2,

a struct that only exists in DCGM 4.x. With 3.x bindings the agent's

DcgmActuator.init() succeeded, opened the hostengine connection, and

ran NVML init cleanly — then crashed mid-first-reconcile with

'AttributeError: module dcgm_structs has no attribute

c_dcgmDeviceConfig_v2' after some GPUs were already capped. The

SIGTERM-restore path won't run when the actuator never finished

registering with _active_actuator, so the GPUs are left at custom caps.

Add a 7-line hasattr check immediately after the dcgm_structs import

in init() that raises a RuntimeError with:

  - the missing struct name (so the error is grep-able)

  - the required DCGM major (>=4.0)

  - the DCGM_IMAGE build-arg + canonical 4.5.1 tag (so operators

    know exactly what to bump)

Guards against accidental Dockerfile regressions to a 3.x base image.

Pair with the Dockerfile fix in 4820ca7 (which bumps the default

to 4.5.1-1-ubuntu22.04) so the default build path is consistent with

the runtime contract.

Unit test covers both happy path (DCGM 4.x mock) and 3.x rejection

(MagicMock with c_dcgmDeviceConfig_v2 deleted), asserting init fails

BEFORE the first pydcgm.DcgmHandle call so misconfigured deployments

don't half-init and leave hostengine sockets dangling.

Refs: PR #9790 review, Power Agent live-test finding #5.
Signed-off-by: Kai Ma <[email protected]>
krishung5 added a commit that referenced this pull request Jun 2, 2026
- decode_handler._extract_mm_hashes docstring now states 16-char hex
  for the SGLang path (was incorrectly claiming the vLLM 64-char shape;
  Devin #5).
- sglang launch banner drops the "Lightseek" prefix; uses "MM Exact
  Routing (SGLang)" to match the public name (Ryan suggestion #1).
- ModelRuntimeConfig.backend_framework field gains a doc-block on its
  motivation — frontend uses it for backend-specific routing hints
  (Ryan #3).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
kangclzjc added a commit to kangclzjc/dynamo that referenced this pull request Jun 4, 2026
…eview ai-dynamo#5)

TrafficMetrics.{duration_s,num_req,isl,osl,kv_hit_rate} and
PredictionData.{predicted_num_req,predicted_isl,predicted_osl,
predicted_kv_hit_rate} were proto ``float`` (IEEE-754 32-bit), but their
source of truth (core/types.py + the Pydantic mirror) is Python float64.
Every out-of-process plugin received these values truncated to float32
(and re-truncated on the way back), so rate-style values drifted ~1e-4
and the gRPC transport disagreed bit-for-bit with the in-process
transport — which is presented as interchangeable. The round-trip tests
passed only because every fixture float was hand-picked float32-exact.

Change the nine fields to ``double`` / ``optional double``. Safe now:
the v1 contract is pre-ship (no external plugin has shipped against it),
and changing the wire type before release avoids a breaking change later.
Regenerated *_pb2 stubs (+ SPDX re-prepend). The Pydantic mirror already
uses float64, so no mirror change. New test asserts EXACT (not approx)
round-trip for non-float32-exact values, so a regression to ``float`` is
caught.

838 planner tests pass (+1).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
kangclzjc added a commit to kangclzjc/dynamo that referenced this pull request Jun 4, 2026
…I runtime parity

The review-ai-dynamo#5 regen (a2b8c1c) was run with a local grpcio-tools 1.80
/ protobuf 6.33, baking ValidateProtobufRuntimeVersion(6,31,1) and
GRPC_GENERATED_VERSION '1.80.0' into the committed stubs. CI's pinned
runtime is protobuf 5.29.6 (requirements: protobuf>=5.29.5,<6.0dev),
so the 6.31.1 gencode guard hard-raised VersionError at import, erroring
out 5 planner test modules at collection.

Regenerate from the unchanged plugin.proto with grpcio-tools 1.67.1 —
the same toolchain the stubs originally shipped with (b39dde8) and
which passed CI — restoring gencode 5.27.2 + grpc guard 1.67.1. The
serialized descriptor blob is byte-identical (schema unchanged: doubles,
kv_hit_rate, WorkerState flags, component_name strip all preserved);
only the version guards revert to CI-compatible values.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
kaim-eng added a commit that referenced this pull request Jun 8, 2026
components/power_agent/actuator.py:807 uses dcgm_structs.c_dcgmDeviceConfig_v2,

a struct that only exists in DCGM 4.x. With 3.x bindings the agent's

DcgmActuator.init() succeeded, opened the hostengine connection, and

ran NVML init cleanly — then crashed mid-first-reconcile with

'AttributeError: module dcgm_structs has no attribute

c_dcgmDeviceConfig_v2' after some GPUs were already capped. The

SIGTERM-restore path won't run when the actuator never finished

registering with _active_actuator, so the GPUs are left at custom caps.

Add a 7-line hasattr check immediately after the dcgm_structs import

in init() that raises a RuntimeError with:

  - the missing struct name (so the error is grep-able)

  - the required DCGM major (>=4.0)

  - the DCGM_IMAGE build-arg + canonical 4.5.1 tag (so operators

    know exactly what to bump)

Guards against accidental Dockerfile regressions to a 3.x base image.

Pair with the Dockerfile fix in 4820ca7 (which bumps the default

to 4.5.1-1-ubuntu22.04) so the default build path is consistent with

the runtime contract.

Unit test covers both happy path (DCGM 4.x mock) and 3.x rejection

(MagicMock with c_dcgmDeviceConfig_v2 deleted), asserting init fails

BEFORE the first pydcgm.DcgmHandle call so misconfigured deployments

don't half-init and leave hostengine sockets dangling.

Refs: PR #9790 review, Power Agent live-test finding #5.
Signed-off-by: Kai Ma <[email protected]>
copy-pr-bot Bot pushed a commit that referenced this pull request Jul 17, 2026
docs: fix recipe component rendering + restore Feature Benchmarks nav
walkoss added a commit to walkoss/dynamo that referenced this pull request Sep 7, 2026
Fixes chw001 comment ai-dynamo#5: optimization targets table had 'TBD' for
user output tok/s. All other recipes (glm-5.2, kimi-k2.6, gpt-oss-120b)
set this to 50 — the SLA floor where per-user speed must stay above
50 tok/s. Our C=24 measurements show 102-144 tok/s (2-3x above floor).
A proper floor-pick concurrency sweep is future work.

Signed-off-by: Walid <[email protected]>
copy-pr-bot Bot pushed a commit that referenced this pull request Oct 21, 2026
refactor(operator): isolate DGDR native conversion payloads

This branch was previously deployed

1 inactive deployment
GITLAB — 00b7104a Deployed Mar 4, 2025 by whoisj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants