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

Support method & signature name selection during Inference #7387

Open
asamadiya opened this issue Jun 27, 2024 · 0 comments
Open

Support method & signature name selection during Inference #7387

asamadiya opened this issue Jun 27, 2024 · 0 comments

Comments

@asamadiya
Copy link

Is your feature request related to a problem? Please describe.
Support loading models with multiple signatures and selection of a particular signature during model inference. This is supported by standard inference servers like TF Serving and libraries like libtensorflow & libtorch.

Our models have multiple methods (PyTorch) or signatures (TensorFlow) and based on the operation we perform, we have to choose the correct signature at inference time.

Describe the solution you'd like

  1. Support loading multiple signatures at model loading time for Tensorflow, Torch and any backend as long as it supports it.
  2. During inference time, fix a InferenceRequest.parameter key "SIGNATURE_NAME", when provided, will allow the backend to run the model on that signature. In PyTorch that would be "METHOD_NAME".

Describe alternatives you've considered
Instead of using Triton, using the model framework libraries directly such as libtensorflow and libtorch.

Additional context
Simple example is a model can do a forward pass, a forward pass with additional ranking and produce new feature tensor and these "signatures" can share most of the model graph so having them in one model is our desire.

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

No branches or pull requests

1 participant