question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModelName requirement in API calls

See original GitHub issue

When creating KFservers such as xgboost the modelName is taken to be metdata.Name. The user then needs to specify this twice in an API call. For example, in the xgboost sample:

MODEL_NAME=xgboost-iris
curl -v -H "Host: xgboost-iris.default.svc.cluster.local" http://$CLUSTER_IP/models/$MODEL_NAME:predict -d $INPUT_PATH
  • Should we keep this requirement or allow users to just curl their endpoint and behind the scenes add the modelName to the path as we route the request?, e.g.
curl -v -H "Host: xgboost-iris.default.svc.cluster.local" http://$CLUSTER_IP/predict 
  • If users can specify the modelName then they could try other model names that might happen to be loaded on that server which maybe not what we want.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cliveseldoncommented, Jun 10, 2019

Seldon does specify paths like /api/v0.1/predictions but for the kfserver implementation we have conformed to the tensorflow paths that allow model specification.

As the executor is optional I assume an istio VirtualService is best?

0reactions
jtfogartycommented, Jan 15, 2020

/kind feature /priority p2

Read more comments on GitHub >

github_iconTop Results From Across the Web

CreateModel - Amazon SageMaker - AWS Documentation
Specifies details of how containers in a multi-container endpoint are called. Type: InferenceExecutionConfig object. Required: No. ModelName. The name of the ...
Read more >
REST API reference - Cumulocity IoT Guides
Retrieves the model names of all the available PMML models. Use these model names as identifiers for all operations requiring the {model_name} path...
Read more >
Use Command-Line API to Document Simulink Model in ...
Document model architecture by capturing model structure in a requirement set and linking requirements entries using a script.
Read more >
Introduction: Creating flows for an API (Part 1) - IBM
In the Model name field, you need to enter a name for your model that reflects the type of object that your API...
Read more >
Parameter Binding in ASP.NET Web API - ASP.NET 4.x
When Web API calls a method on a controller, it must set values for the ... By default, Web API uses the following...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found