Skip to content
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

remove vllm-check/tgi-check init-container #1605

Merged
merged 3 commits into from
May 8, 2024

Conversation

robinliubin
Copy link
Contributor

add wget vllm into h2ogpt container

fixing: #1603

@robinliubin robinliubin linked an issue May 8, 2024 that may be closed by this pull request
@robinliubin robinliubin requested a review from joby-h20 May 8, 2024 16:13
@joby-h20
Copy link

joby-h20 commented May 8, 2024

Tested by injecting the changes directly to deployment manifest.

https://h2oai.slack.com/archives/C06R0QAP54N/p1715188293152829?thread_ts=1715178088.028339&cid=C06R0QAP54N

Copy link

@joby-h20 joby-h20 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
Collaborator

@achraf-mer achraf-mer left a comment

Choose a reason for hiding this comment

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

added one comment about using a list or arguments, but if tested and works fine then LGTM, thanks.

EshamAaqib

This comment was marked as resolved.

@EshamAaqib EshamAaqib requested review from ozahavi and EshamAaqib May 8, 2024 19:15
Copy link
Member

@EshamAaqib EshamAaqib left a comment

Choose a reason for hiding this comment

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

LGTM

@ozahavi
Copy link
Contributor

ozahavi commented May 8, 2024

This change may cause issues if we ever want to introduce liveness\readiness probes to h2oGPT.

@EshamAaqib
Copy link
Member

EshamAaqib commented May 8, 2024

^ +1, If the inference service is vLLM and if Model Lock is used the check will not be needed, it can be disabled completely

@robinliubin
Copy link
Contributor Author

This change may cause issues if we ever want to introduce liveness\readiness probes to h2oGPT.

thanks @ozahavi, would you elaborate more about moving wget into h2ogpt container would be an issue for liveness/readiness?

@robinliubin
Copy link
Contributor Author

robinliubin commented May 8, 2024

^ +1, If the inference service is vLLM and if Model Lock is used the check will not be needed, it can be disabled completely

like this:

{{- if and .Values.vllm.enabled (not .Values.h2ogpt.externalLLM.enabled) }}

@EshamAaqib
Copy link
Member

EshamAaqib commented May 8, 2024

^ +1, If the inference service is vLLM and if Model Lock is used the check will not be needed, it can be disabled completely

like this:

{{- if and .Values.vllm.enabled (not .Values.h2ogpt.externalLLM.enabled) }}

Yes, and also you can stick with Model Lock itself for locally hosted LLMs and if the inference is vLLM the wget check is not needed (if you use Model Lock)

Ex: https://github.com/h2oai/public-cloud-infrastructure/blob/develop/hamc/hadc-customer-account/terraform/environment/applications/main-h2ogpt.tf#L5

@robinliubin
Copy link
Contributor Author

^ +1, If the inference service is vLLM and if Model Lock is used the check will not be needed, it can be disabled completely

like this:

{{- if and .Values.vllm.enabled (not .Values.h2ogpt.externalLLM.enabled) }}

Yes, and also you can stick with Model Lock itself for locally hosted LLMs and if the inference is vLLM the wget check is not needed (if you use Model Lock)

Ex: https://github.com/h2oai/public-cloud-infrastructure/blob/develop/hamc/hadc-customer-account/terraform/environment/applications/main-h2ogpt.tf#L5

like this:

{{- if and .Values.vllm.enabled (not .Values.h2ogpt.externalLLM.modelLock) }}

@robinliubin
Copy link
Contributor Author

tested with: helm template h2oai helm/h2ogpt-chart --set vllm.enabled=true --set h2ogpt.externalLLM.modelLocak=null
it rendered to:

       args:
          - >
            until wget -O- http://h2oai-h2ogpt-vllm-inference:5000/v1/models >/dev/null 2>&1;
              do
                echo "Waiting for inference service to become ready...";
                sleep 5;
              done
              
            python3 /workspace/generate.py

@EshamAaqib
Copy link
Member

^ +1, If the inference service is vLLM and if Model Lock is used the check will not be needed, it can be disabled completely

like this:

{{- if and .Values.vllm.enabled (not .Values.h2ogpt.externalLLM.enabled) }}

Yes, and also you can stick with Model Lock itself for locally hosted LLMs and if the inference is vLLM the wget check is not needed (if you use Model Lock)

Ex: https://github.com/h2oai/public-cloud-infrastructure/blob/develop/hamc/hadc-customer-account/terraform/environment/applications/main-h2ogpt.tf#L5

like this:

{{- if and .Values.vllm.enabled (not .Values.h2ogpt.externalLLM.modelLock) }}

Yup lgtm

@robinliubin robinliubin merged commit fbafbe4 into main May 8, 2024
2 checks passed
@robinliubin robinliubin deleted the robin/fix_vllm_check_when_istio branch May 8, 2024 20:25
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.

h2ogpt vllm-check init-container stuck when istio injection
5 participants