serve icon indicating copy to clipboard operation
serve copied to clipboard

Torchserve-kfs docker images for other python version (3.10+)

Open cjidboon94 opened this issue 1 year ago • 3 comments

🚀 The feature

torchserve-kfs (and perhaps also torchserve) docker images for different python versions

Motivation, pitch

All the torchserve-kfs docker images are currently built with python 3.9. For users who base their custom images on this image and have dependencies that require 3.10+, this means they can't easily just run an additional pip install command and are required to install a new/additional python version into their custom image or just build the image from scratch.

Also python version 3.9 ends nears its end of life in less than a year (EOL is 2025-10), so this is a good opportunity to make this available.

Alternatives

Either let the user install an additional python version in the image or let the user write a custom image from scratch. A ready base image with base dependencies + python version would be much more convenient for this

Additional context

No response

cjidboon94 avatar Dec 12 '24 23:12 cjidboon94

Here's a cron job that achieves this by running build_image.sh with a matrix of torchserve&python versions values: https://github.com/fabridamicelli/torchserve-docker

The images live here: https://hub.docker.com/r/fabridamicelli/torchserve/tags

I'd be happy to help integrate this into pytorch/serve, since I believe it would be much better in sync with the rest of the repo there (currently the cron job checks out the repo and git resets hard to the release tag). I think it would be easier on each release to run that matrix and have all images under the same organization/dockerhubrepo

fabridamicelli avatar Dec 16 '24 13:12 fabridamicelli

@fabridamicelli Open a PR to upstream your work?

yuzhichang avatar Jan 12 '25 05:01 yuzhichang

@yuzhichang

@fabridamicelli Open a PR to upstream your work?

I would be happy to do that but I don't want to invest time without first having confirmation from the maintainers that there is real interest in pursuing that. But lately I haven't gotten feedback from torchserve maintainers regarding this topic (as you can see in #3374 and #3332), so it's difficult for me to judge it there is any interest at all or if there are any other plans regarding this

fabridamicelli avatar Jan 12 '25 17:01 fabridamicelli