-
Notifications
You must be signed in to change notification settings - Fork 7
Warmup script to run warmup across LLM-based preprocessors after they are healthy #1075
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
Conversation
|
Pending: |
jeffbl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but would like to understand a bit better for merge. Hopefully we'll get a chance to touch base today.
…n/multistage-diagram-segmentation.py with pii
…dified the warmup script to read accorrdingly
fd0a1f2 to
7c5c762
Compare
|
Update: preprocessors/multistage-diagram-segmentation (need to check Referrer-Policy) -- resolved [2025-06-17 02:58:40 +0000] [8] [DEBUG] GET /warmup 0: 1024x1024 1 0, 5190.3ms |
jeffbl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few minor issues, no big problems. As we move toward fewer custom/local models and use ollama/cloud endpoints, having the same code repeated everywhere should probably be removed into something that just makes one request, if all are using the same model, or at least cuts down on repeated (and error-prone) boilerplate code.
Please ensure you've followed the checklist and provide all the required information before requesting a review.
If you do not have everything applicable to your PR, it will not be reviewed!
If you don't know what something is or if it applies to you, ask!
Don't delete below this line.
Below is the script in action :-
shahdy@unicorn:~/IMAGE-server/scripts$ ./warmup
[Warmup] Sun Jun 8 09:03:33 PM EDT 2025 Starting warmup...
[Warmup] Waiting for image-server-semantic-segmentation-1 to be healthy...
[Warmup] image-server-semantic-segmentation-1 marked healthy. Waiting 10s before hitting warmup...
[Warmup] Hitting warmup endpoint on image-server-semantic-segmentation-1...
[Warmup] image-server-semantic-segmentation-1 warmed successfully.
[Warmup] Waiting for image-server-espnet-tts-fr-1 to be healthy...
[Warmup] image-server-espnet-tts-fr-1 marked healthy. Waiting 10s before hitting warmup...
[Warmup] Hitting warmup endpoint on image-server-espnet-tts-fr-1...
[Warmup] image-server-espnet-tts-fr-1 warmed successfully.
[Warmup] Waiting for image-server-depth-map-generator-1 to be healthy...
[Warmup] image-server-depth-map-generator-1 marked healthy. Waiting 10s before hitting warmup...
[Warmup] Hitting warmup endpoint on image-server-depth-map-generator-1...
[Warmup] image-server-depth-map-generator-1 warmed successfully.
[Warmup] Waiting for image-server-object-detection-1 to be healthy...
[Warmup] image-server-object-detection-1 marked healthy. Waiting 10s before hitting warmup...
[Warmup] Hitting warmup endpoint on image-server-object-detection-1...
[Warmup] image-server-object-detection-1 warmed successfully.
[Warmup] Waiting for image-server-multistage-diagram-segmentation-1 to be healthy...
[Warmup] image-server-multistage-diagram-segmentation-1 marked healthy. Waiting 10s before hitting warmup...
[Warmup] Waiting for image-server-content-categoriser-1 to be healthy...
[Warmup] image-server-content-categoriser-1 marked healthy. Waiting 10s before hitting warmup...
[Warmup] Hitting warmup endpoint on image-server-content-categoriser-1...
[Warmup] image-server-content-categoriser-1 warmed successfully.
[Warmup] Waiting for image-server-text-followup-1 to be healthy...
[Warmup] image-server-text-followup-1 marked healthy. Waiting 10s before hitting warmup...
[Warmup] Hitting warmup endpoint on image-server-text-followup-1...
[Warmup] image-server-text-followup-1 warmed successfully.
[Warmup] Waiting for image-server-espnet-tts-1 to be healthy...
[Warmup] image-server-espnet-tts-1 marked healthy. Waiting 10s before hitting warmup...
[Warmup] Hitting warmup endpoint on image-server-espnet-tts-1...
[Warmup] image-server-espnet-tts-1 warmed successfully.
[Warmup] Waiting for image-server-graphic-caption-1 to be healthy...
[Warmup] image-server-graphic-caption-1 marked healthy. Waiting 10s before hitting warmup...
[Warmup] Hitting warmup endpoint on image-server-graphic-caption-1...
[Warmup] image-server-graphic-caption-1 warmed successfully.
[Warmup] Completed at Sun Jun 8 09:05:11 PM EDT 2025!
logs from container (e.g., content-categoriser)
INFO:root:[WARMUP] Warmup endpoint triggered.
PII:root:[WARMUP] Posting to https://ollama.pegasus.cim.mcgill.ca/ollama/api/chat with model llama3.2-vision:latest
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): ollama.pegasus.cim.mcgill.ca:443
DEBUG:urllib3.connectionpool:https://ollama.pegasus.cim.mcgill.ca:443 "POST /ollama/api/chat HTTP/1.1" 200 849
Required Information
Coding/Commit Requirements
New Component Checklist (mandatory for new microservices)
docker-compose.ymlandbuild.yml..github/workflows.README.mdfile that describes what the component does and what it depends on (other microservices, ML models, etc.).OR