-
Notifications
You must be signed in to change notification settings - Fork 10
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
Align I/O with Inference API #99
Conversation
Apparently the parameters are indeed supported via the `__call__` method of the `TokenClassificationPipeline` even if the docs say otherwise, since those are internally provided to the `_sanitize_parameters` function and then used within the `__call__` method instead of via the `__init__`
Co-authored-by: Célina <hanouticelina@users.noreply.github.com>
Hi here @hanouticelina as far as I could check the naming affects the following tasks:
AFAIK for "image-to-text", "automatic-speech-recognition", "text-to-audio", and "text-to-speech" the Thanks a ton 🤗 |
yes, correct!
yes, currently Inference API does not support (for "image-to-text", "automatic-speech-recognition", "text-to-audio", and "text-to-speech) I recommend following the current transformers implementation as you're using directly the pipelines. If you want to be forward compatible, you can handle |
Yes makes sense, then I'll just handle the current as we're pinning the Thank you so much for your time 🤗 |
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.
this should be good as far as I can tell 👍
Description
This PR aligns the I/O payloads on Inference Endpoints with the definitions for the Inference API, with the I/O payloads currently available via the
transformers.pipeline
,diffusers.pipeline
, andsentence-transformer
interfaces.Additionally, this PR also closes #72 as it includes the handling and validation of both the current
sentence-ranking
approach, as well as the approach compatible with the TEI/rank
endpoint.