-
Notifications
You must be signed in to change notification settings - Fork 4
[STORY] Enable Caikit Python API library #15
Comments
Note: the code of the example is still WIP so check with @guimou before doing code changes |
Yeah, I have a few changes that I should make by the end of the day.
Principally for the channel timeout, and change some parameters to remove
anything hard coded.
…On Mon., Oct. 2, 2023, 12:56 Daniele Zonca, ***@***.***> wrote:
Note: the code of the example is still WIP so check with @guimou
<https://github.com/guimou> before doing code changes
—
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6C4YSUX7F3IEFOCUXZR63X5LW3TAVCNFSM6AAAAAA5PUMB66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTGM4TSOJQGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Quick note on this "Look into generating pb2 files during runtime. Is this an option? Is there an impact on inferencing performance?". |
This is also an interesting avenue. A wrapper around different serving providers to allow direct use of OpenAI API: https://github.com/BerriAI/litellm |
Hey @guimou - i'm the comaintainer of litellm. Happy to help out via PR. What's the problem you're hoping to solve here with litellm? |
@Xaenalt and @heyselbi, The library requirements:
The implementation:
RUNTIME_LIBRARY=caikit_nlp python -m caikit.runtime.dump_services $grpc_interface_dir
python -m grpc_tools.protoc -I./grpc/ --python_out=. --pyi_out=. --grpc_python_out=. grpc/*.proto
|
Implement insecure HTTP client |
Initial implementation (wip): opendatahub-io/caikit-nlp-client#1 |
@heyselbi I think we should still keep this open (but I will defer) to your better judgement. |
First version (0.0.2) was released on PyPi https://pypi.org/project/caikit-nlp-client/. See https://github.com/opendatahub-io/caikit-nlp-client/releases for releases. |
Caikit python library - so it can be accessed from a notebook. It would be a wrapper around grpcio/requests for the API. It can be pip installed in the notebook.
Task includes:
Related issues:
The text was updated successfully, but these errors were encountered: