8000 feat: allow users to add env vars to dynamo deployment by hhzhang16 · Pull Request #862 · ai-dynamo/dynamo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: allow users to add env vars to dynamo deployment #862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 30, 2025

Conversation

hhzhang16
Copy link
Contributor
@hhzhang16 hhzhang16 commented Apr 28, 2025

Overview:

Allow users to add environment variables to their Dynamo deployments

Details:

Allow support for env variables (using --env)

Where should the reviewer start?

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

Copy link
copy-pr-bot bot commented Apr 28, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Copy link
Contributor
@julienmancuso julienmancuso left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor
@mohammedabdulwahhab mohammedabdulwahhab left a comment

Choose a reason for hiding this comment

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

https://github.com/ai-dynamo/dynamo/blob/main/examples/llm/configs/disagg.yaml#L35

^ If we added an envs section at the line ive linked above, it will set an env variable for that service at runtime. Futhermore, it's scoped specifically to that service. We can also use a cli arg to do the same. Can you test the following first?

dynamo serve ... --ServiceA.ServiceArgs.envs.HF_CACHE=$KEY
dynamo deploy ... --ServiceA.ServiceArgs.envs.HF_CACHE=$KEY

@hhzhang16
Copy link
Contributor Author

https://github.com/ai-dynamo/dynamo/blob/main/examples/llm/configs/disagg.yaml#L35

It doesn't seem to work 😬

(I'm working with agg.yaml for the record). I added an envs section to the config file then ran dynamo deployment create $DYNAMO_TAG -n $DEPLOYMENT_NAME -f ./configs/agg.yaml --VllmWorker.ServiceArgs.envs.HF_TOKEN=$HF_TOKEN

Usage: dynamo deployment create [OPTIONS] PIPELINE
Try 'dynamo deployment create -h' for help.
╭─ Error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ No such option: --VllmWorker.ServiceArgs.envs.HF_TOKEN 

Co-authored-by: mohammedabdulwahhab <furkhan324@berkeley.edu>
Signed-off-by: hhzhang16 <54051230+hhzhang16@users.noreply.github.com>
@hhzhang16 hhzhang16 merged commit 942a0fb into main Apr 30, 2025
11 checks passed
@hhzhang16 hhzhang16 deleted the hannahz/stop-rate-limit-hf branch April 30, 2025 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0