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

Only have GPU-node attached when used #44

Open
DaBeIDS opened this issue Oct 23, 2023 · 0 comments
Open

Only have GPU-node attached when used #44

DaBeIDS opened this issue Oct 23, 2023 · 0 comments
Assignees

Comments

@DaBeIDS
Copy link
Collaborator

DaBeIDS commented Oct 23, 2023

Currently the model pipeline on open shift uses GPU and has to be turned on and off manually. It would be better to have a process which triggers a mechanism to get the pod when needed. Here is a possible solution to the current process we aligned on today:

  1. Change Dockerfile (install kubectl)
    corporate_data_extraction/data_extractor/code/coordinator/Dockerfile

RUN apt-get install -y kubectl
cp ... (maybe manifest to be added)

  1. Job on Open Shift (contains manifest)

-- has to be set-up to create the model-docker (model-pipeline-server-docker)
corporate_data_extraction/data_extractor/code/model_pipeline/Dockerfile

  1. entry.sh

change sleep infinity --> return exit code something

  1. Change code infer_on_pdf.py
    corporate_data_extraction/data_extractor/code/infer_on_pdf.py Line 172: Something like that (maybe with Python package)

cmd = 'kubectl ...'
try:
os.system(cmd)
except Exception as e:
msg = "Error during kubectl"
return Response(msg, status=500)

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

No branches or pull requests

2 participants