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

Create special docker images for AVX2/FMA et al support, with special tags #2172

Open
kokroo opened this issue Aug 10, 2023 · 2 comments
Open

Comments

@kokroo
Copy link

kokroo commented Aug 10, 2023

Feature Request

Describe the problem the feature is intended to solve

Tensorflow Serving should have docker images with AVX2 and FMA et al enabled, with different tags so that people who know what they are and need them can use them. A lot of users and cloud providers do have capable CPUs now, and although I understand the default build needs to be widely compatible, it is also important to provide power users with images that can speed up their performance.

Describe the solution

Include docker images in the CI/CD pipeline with these CPU extensions enabled, so that people who are aware of their CPU capabilities can intentionally use the specially-tagged docker images and use them.

Describe alternatives you've considered

An alternative solution is rolling your own fork but that is not desirable nor does every data scientist have these skills.

@singhniraj08
Copy link

@kokroo,

You can try building Tensorflow Serving from source and if you are interested in optimized builds you can follow optimize build section to utilize platform-specific instruction sets for your processor. It is also possible to compile using specific instruction sets (e.g. AVX, AVX2. FMA).

Thank you!

@kokroo
Copy link
Author

kokroo commented Aug 16, 2023

@singhniraj08 Hello,

I can definitely do that, but for most people, it is not convenient. A lot of people are just data scientists using a docker image, and it would be really convenient if tensorflow publishes docker images with special tags, which are already compiled to utilize those specific CPU instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants