mirror of
https://github.com/clearml/clearml-docs
synced 2025-01-31 06:27:22 +00:00
Fix spacing (#863)
This commit is contained in:
parent
a7371aebee
commit
d8963d2ea5
@ -177,19 +177,23 @@ endpoint `/test_model_sklearn/3/`.
|
||||
|
||||
Example:
|
||||
1. Add two endpoints:
|
||||
|
||||
```bash
|
||||
clearml-serving --id <service_id> model add --engine sklearn --endpoint "test_model_sklearn" --preprocess "examples/sklearn/preprocess.py" --name "train sklearn model" --version 1 --project "serving examples"
|
||||
```
|
||||
|
||||
```bash
|
||||
clearml-serving --id <service_id> model add --engine sklearn --endpoint "test_model_sklearn" --preprocess "examples/sklearn/preprocess.py" --name "train sklearn model" --version 2 --project "serving examples"
|
||||
```
|
||||
|
||||
1. Add Canary endpoint:
|
||||
|
||||
```bash
|
||||
clearml-serving --id <service_id> model canary --endpoint "test_model_sklearn_canary" --weights 0.1 0.9 --input-endpoints test_model_sklearn/2 test_model_sklearn/1
|
||||
```
|
||||
|
||||
1. Test Canary endpoint:
|
||||
|
||||
```bash
|
||||
curl -X POST "http://127.0.0.1:8080/serve/test_model" -H "accept: application/json" -H "Content-Type: application/json" -d '{"x0": 1, "x1": 2}'`
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user