Skip to content

fix: Add MODEL_NAME to kind deploy#178

Merged
kfirtoledo merged 2 commits intollm-d:mainfrom
kfirtoledo:deploy
Jun 11, 2025
Merged

fix: Add MODEL_NAME to kind deploy#178
kfirtoledo merged 2 commits intollm-d:mainfrom
kfirtoledo:deploy

Conversation

@kfirtoledo
Copy link
Collaborator

Add MODEL_NAME to the deploy scripts, and allow it to be changed.

Signed-off-by: Kfir Toledo <kfir.toledo@ibm.com>
@kfirtoledo kfirtoledo requested review from elevran and shmuelk June 10, 2025 08:48
shmuelk
shmuelk previously approved these changes Jun 10, 2025
@kfirtoledo kfirtoledo requested a review from nirrozenbaum June 10, 2025 14:57
Comment on lines 10 to 12
targetModels:
- name: food-review
- name: ${MODEL_NAME}
weight: 100
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: if modelName equals targetModels (meaning target models array has only one entry with name identical to spec.modelName), you can just remove the targetModels part (it's optional and is typically used for traffic split).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I see, but I still prefer to keep it, because I will use it as a reference

fi
kustomize build --enable-helm ${KUSTOMIZE_DIR} \
| envsubst \${POOL_NAME} | envsubst \${EPP_TAG} | envsubst \${VLLM_SIMULATOR_TAG} \
| envsubst \${POOL_NAME} | envsubst '${MODEL_NAME}' | envsubst \${EPP_TAG} | envsubst \${VLLM_SIMULATOR_TAG} \
Copy link
Collaborator

@nirrozenbaum nirrozenbaum Jun 10, 2025

Choose a reason for hiding this comment

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

'${MODEL_NAME}' doesn't have the precending \ like others have, plus it has '' around it while other vars don't. is it intentional?
additionally, have you considered using just envsubst without specifying the variables one by one?

Copy link
Collaborator Author

@kfirtoledo kfirtoledo Jun 11, 2025

Choose a reason for hiding this comment

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

Fix, I just added variables here:) I think the main reason is that parts of the YAML contain variables that are set at runtime, and you don't want to be overridden from outside(if it is not defined, it will be empty with envsubst.

Signed-off-by: Kfir Toledo <kfir.toledo@ibm.com>
@kfirtoledo
Copy link
Collaborator Author

@shmuelk and @nirrozenbaum PTAL.

Copy link
Collaborator

@nirrozenbaum nirrozenbaum left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@kfirtoledo kfirtoledo merged commit 2067b4d into llm-d:main Jun 11, 2025
2 checks passed
@kfirtoledo kfirtoledo deleted the deploy branch June 11, 2025 11:10
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