Skip to content

Commit 11cb10f

Browse files
committed
Remove gRPC mentions
1 parent 783696d commit 11cb10f

3 files changed

Lines changed: 23 additions & 23 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Training Extensions embed all the metadata required for inference into model fil
4242
from model_api.models import Model
4343

4444
# Create a model wrapper from a compatible model generated by OpenVINO Training Extensions
45-
# To work with an OVMS-served model, pass its endpoint instead of a file path, e.g. "localhost:9000/v2/models/ssdlite_mobilenet_v2"
45+
# To work with an OVMS-served model, pass its endpoint instead of a file path, e.g. "localhost:8000/v2/models/ssdlite_mobilenet_v2"
4646
model = Model.create_model("model.xml")
4747

4848
# Run synchronous inference locally

src/model_api/adapters/ovms_adapter.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ See [model server configuration parameters](https://github.com/openvinotoolkit/m
3434
### Example OVMS startup command
3535

3636
```bash
37-
docker run -d --rm -v /home/user/models:/models -p 9000:9000 openvino/model_server:latest --model_path /models/model1 --model_name model1 --port 9000 --shape auto --nireq 32 --target_device CPU --plugin_config "{\"CPU_THROUGHPUT_STREAMS\": \"CPU_THROUGHPUT_AUTO\"}"
37+
docker run -d --rm -v /home/user/models:/models -p 8000:8000 openvino/model_server:latest --model_path /models/model1 --model_name model1 --port 8000 --shape auto --nireq 32 --target_device CPU --plugin_config "{\"CPU_THROUGHPUT_STREAMS\": \"CPU_THROUGHPUT_AUTO\"}"
3838
```
3939

4040
> **Note**: In demos, while using `--adapter ovms`, inference options like: `-nireq`, `-nstreams` `-nthreads` as well as device specification with `-d` will be ignored.
@@ -49,10 +49,10 @@ To run the demo with model served in OpenVINO Model Server, you would have to pr
4949
- `<model_name>` - name of the target model (the one specified by `model_name` parameter in the model server startup command)
5050
- `<model_version>` _(optional)_ - version of the target model specified in the `/versions/<model_version>` path segment (default: latest)
5151

52-
Assuming that model server runs on the same machine as the demo, exposes gRPC service on port 9000 and serves model called `model1`, the value of `-m` parameter would be:
52+
Assuming that model server runs on the same machine as the demo, exposes service on port 8000 and serves model called `model1`, the value of `-m` parameter would be:
5353

54-
- `localhost:9000/v2/models/model1` - requesting latest model version
55-
- `localhost:9000/v2/models/model1/versions/2` - requesting model version number 2 (an optional trailing slash, e.g. `/versions/2/`, is also accepted)
54+
- `localhost:8000/v2/models/model1` - requesting latest model version
55+
- `localhost:8000/v2/models/model1/versions/2` - requesting model version number 2 (an optional trailing slash, e.g. `/versions/2/`, is also accepted)
5656

5757
## See Also
5858

tests/unit/adapters/test_ovms_adapter.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,37 @@ class TestParseModelArg:
1313

1414
def test_valid_url_with_version(self):
1515
"""Test parsing a valid URL with version specified."""
16-
target_model = "http://localhost:9000/v2/models/my_model/versions/123"
16+
target_model = "http://localhost:8000/v2/models/my_model/versions/123"
1717
service_url, model_name, version = OVMSAdapter.parse_model_arg(target_model)
1818

19-
assert service_url == "http://localhost:9000"
19+
assert service_url == "http://localhost:8000"
2020
assert model_name == "my_model"
2121
assert version == "123"
2222

2323
def test_valid_url_without_version(self):
2424
"""Test parsing a valid URL without version specified."""
25-
target_model = "http://localhost:9000/v2/models/345$%^!@#$model"
25+
target_model = "http://localhost:8000/v2/models/345$%^!@#$model"
2626
service_url, model_name, version = OVMSAdapter.parse_model_arg(target_model)
2727

28-
assert service_url == "http://localhost:9000"
28+
assert service_url == "http://localhost:8000"
2929
assert model_name == "345$%^!@#$model"
3030
assert version == ""
3131

3232
def test_valid_url_with_trailing_slash(self):
3333
"""Test parsing a valid URL with trailing slash."""
34-
target_model = "http://localhost:9000/v2/models/my_model/"
34+
target_model = "http://localhost:8000/v2/models/my_model/"
3535
service_url, model_name, version = OVMSAdapter.parse_model_arg(target_model)
3636

37-
assert service_url == "http://localhost:9000"
37+
assert service_url == "http://localhost:8000"
3838
assert model_name == "my_model"
3939
assert version == ""
4040

4141
def test_valid_url_with_version_and_trailing_slash(self):
4242
"""Test parsing a valid URL with version and trailing slash."""
43-
target_model = "http://localhost:9000/v2/models/my_model/versions/456/"
43+
target_model = "http://localhost:8000/v2/models/my_model/versions/456/"
4444
service_url, model_name, version = OVMSAdapter.parse_model_arg(target_model)
4545

46-
assert service_url == "http://localhost:9000"
46+
assert service_url == "http://localhost:8000"
4747
assert model_name == "my_model"
4848
assert version == "456"
4949

@@ -58,23 +58,23 @@ def test_valid_url_https(self):
5858

5959
def test_valid_scheme_less_url_with_version(self):
6060
"""Test parsing a valid scheme-less URL with version specified."""
61-
target_model = "localhost:9000/v2/models/my_model/versions/123"
61+
target_model = "localhost:8000/v2/models/my_model/versions/123"
6262
service_url, model_name, version = OVMSAdapter.parse_model_arg(target_model)
6363

64-
assert service_url == "localhost:9000"
64+
assert service_url == "localhost:8000"
6565
assert model_name == "my_model"
6666
assert version == "123"
6767
@pytest.mark.parametrize(
6868
("target_model", "description"),
6969
[
70-
("http://localhost:9000/models/my_model", "missing v2/models path"),
71-
("http://localhost:9000/v2/models/my_model/version/123", "wrong versions format"),
72-
("http://localhost:9000/v2/models//versions/123", "empty model name"),
73-
("http://localhost:9000/v2/models/", "no model name"),
74-
("http://localhost:9000/v2", "incomplete URL"),
75-
("http://localhost:9000/v2/models/my_model/versions/latest", "non-numeric version"),
76-
("http://localhost:9000/v2/models/my_model/extra/path", "extra path"),
77-
("http://localhost:9000/v2/models/my_model/versions/", "no version specified"),
70+
("http://localhost:8000/models/my_model", "missing v2/models path"),
71+
("http://localhost:8000/v2/models/my_model/version/123", "wrong versions format"),
72+
("http://localhost:8000/v2/models//versions/123", "empty model name"),
73+
("http://localhost:8000/v2/models/", "no model name"),
74+
("http://localhost:8000/v2", "incomplete URL"),
75+
("http://localhost:8000/v2/models/my_model/versions/latest", "non-numeric version"),
76+
("http://localhost:8000/v2/models/my_model/extra/path", "extra path"),
77+
("http://localhost:8000/v2/models/my_model/versions/", "no version specified"),
7878
("", "empty"),
7979
],
8080
)

0 commit comments

Comments
 (0)