-
Notifications
You must be signed in to change notification settings - Fork 24
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
[P0] SPIKE: making sure the long running connection works (http/grpc streaming) #33
Comments
Ok I have verified that it works. More details:
export TEST_NS=kserve-demo
export KSVC_HOSTNAME=$(oc get ksvc caikit-example-isvc-predictor-default -n ${TEST_NS} -o jsonpath='{.status.url}' | cut -d'/' -f3)
grpcurl -insecure -d '{"text": "At what temperature does liquid Nitrogen boil?"}' -H "mm-model-id: flan-t5-small-caikit" ${KSVC_HOSTNAME}:443 caikit.runtime.Nlp.NlpService/TextGenerationTaskPredict
{
"generated_text": "74 degrees F",
"generated_tokens": "5",
"finish_reason": "EOS_TOKEN",
"producer_id": {
"name": "Text Generation",
"version": "0.1.0"
}
}
export TEST_NS=kserve-demo
export KSVC_HOSTNAME=$(oc get ksvc caikit-example-isvc-predictor-default -n ${TEST_NS} -o jsonpath='{.status.url}' | cut -d'/' -f3)
grpcurl -insecure -d '{"text": "At what temperature does liquid Nitrogen boil?"}' -H "mm-model-id: flan-t5-small-caikit" ${KSVC_HOSTNAME}:443 caikit.runtime.Nlp.NlpService/ServerStreamingTextGenerationTaskPredict
{
"details": {
}
}
{
"tokens": [
{
"text": "▁",
"logprob": -1.5990846157073975
}
],
"details": {
"generated_tokens": 1
}
}
{
"generated_text": "74",
"tokens": [
{
"text": "74",
"logprob": -3.3622496128082275
}
],
"details": {
"generated_tokens": 2
}
}
{
"generated_text": " degrees",
"tokens": [
{
"text": "▁degrees",
"logprob": -0.516351580619812
}
],
"details": {
"generated_tokens": 3
}
}
{
"generated_text": " F",
"tokens": [
{
"text": "▁F",
"logprob": -1.1749719381332397
}
],
"details": {
"generated_tokens": 4
}
}
{
"tokens": [
{
"text": "\u003c/s\u003e",
"logprob": -0.009402398951351643
}
],
"details": {
"finish_reason": "EOS_TOKEN",
"generated_tokens": 5
}
} How caikit gRPC services workCaikit automatically/dynamically creates gRPC service to expose a Caikit task of a module.
|
[Cherry-pick] Support verify variable with storage-config json style (fix-3263)
No description provided.
The text was updated successfully, but these errors were encountered: