-
Notifications
You must be signed in to change notification settings - Fork 656
推理服务‐ml
栾鹏 edited this page Nov 30, 2023
·
1 revision
ccr.ccs.tencentyun.com/cube-studio/ml-server:20231001
[
{
"name": "模型英文名",
"model_path": "模型地址",
"algorithm": "decisiontree",
"version": "20231001",
"enable": true
},
{
"name": "模型英文名",
"model_path": "模型地址",
"algorithm": "r",
"version": "20231001",
"enable": true
}
]
1、地址支持http/https在线地址 2、xgb模型需要保存为.model格式,r语言的模型需要保存为.pmml,sklearn模型需要保存为.pkl
python server.py --config_path xxx
Model status API:
GET http://host:port/v1/models/${MODEL_NAME}[/versions/${VERSION}|]
示例:
https://demo.service.kfserving.woa.com/v1/models/my_model1/versions/20210924
Model Metadata API
GET http://host:port/v1/models/${MODEL_NAME}[/versions/${VERSION}/metadata
示例:
https://demo.service.kfserving.woa.com/v1/models/my_model1/versions/20210924/metadata
Predict API
POST http://host:port/v1/models/${MODEL_NAME}[/versions/${VERSION}/predict
示例:
http://xx.xx.xx.xx/v1/models/my_model1/versions/20210924:predict