Skip to content

Commit 6b54085

Browse files
authored
chore!: remove OVMSAdapter (#425)
* Remove OvmsAdapter * Update readme
1 parent 415b7d2 commit 6b54085

18 files changed

Lines changed: 33 additions & 1553 deletions

File tree

.github/workflows/pre_commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
5353
- name: Install dependencies
5454
run: |
55-
uv sync --locked --extra tests --extra ovms
55+
uv sync --locked --extra tests
5656
- name: Run python unit tests
5757
run: |
5858
uv run pytest tests/unit --cov

.github/workflows/test_precommit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
2525
- name: Install dependencies
2626
run: |
27-
uv sync --locked --extra tests --extra ovms --extra-index-url https://download.pytorch.org/whl/cpu
27+
uv sync --locked --extra tests --extra-index-url https://download.pytorch.org/whl/cpu
2828
- name: Prepare test data
2929
run: |
3030
uv run python tests/precommit/prepare_data.py -d data -p tests/precommit/public_scope.json

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,3 @@ docs/source/_build/
145145
.vscode/
146146

147147
data/
148-
ovms_models/

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
## Introduction
1919

20-
Model API is a set of wrapper classes for particular tasks and model architectures, simplifying data preprocess and postprocess as well as routine procedures (model loading, asynchronous execution, etc.). It is aimed at simplifying end-to-end model inference for different deployment scenarios, including local execution and serving. The Model API is based on the OpenVINO inference API.
20+
Model API is a set of wrapper classes for particular tasks and model architectures, simplifying data preprocess and postprocess as well as routine procedures (model loading, asynchronous execution, etc.). It is aimed at simplifying end-to-end model inference. The Model API is based on the OpenVINO inference API.
2121

2222
## How it works
2323

@@ -35,7 +35,6 @@ Training Extensions embed all the metadata required for inference into model fil
3535

3636
- Python API
3737
- Synchronous and asynchronous inference
38-
- Local inference and serving through the rest API
3938
- Model preprocessing embedding for faster inference
4039

4140
## Installation
@@ -48,7 +47,6 @@ Training Extensions embed all the metadata required for inference into model fil
4847
from model_api.models import Model
4948

5049
# Create a model wrapper from a compatible model generated by OpenVINO Training Extensions
51-
# Use URL to work with OVMS-served model, e.g. "localhost:9000/models/ssdlite_mobilenet_v2"
5250
model = Model.create_model("model.xml")
5351

5452
# Run synchronous inference locally
@@ -60,7 +58,7 @@ print(f"Inference result: {result}")
6058

6159
## Prepare a model for `InferenceAdapter`
6260

63-
There are usecases when it is not possible to modify an internal `ov::Model` and it is hidden behind `InferenceAdapter`. For example the model can be served using [OVMS](https://github.com/openvinotoolkit/model_server). `create_model()` can construct a model from a given `InferenceAdapter`. That approach assumes that the model in `InferenceAdapter` was already configured by `create_model()` called with a string (a path or a model name). It is possible to prepare such model:
61+
There are usecases when it is not possible to modify an internal `ov::Model` and it is hidden behind `InferenceAdapter`. `create_model()` can construct a model from a given `InferenceAdapter`. That approach assumes that the model in `InferenceAdapter` was already configured by `create_model()` called with a string (a path or a model name). It is possible to prepare such model:
6462

6563
```python
6664
model = DetectionModel.create_model("~/.cache/omz/public/ssdlite_mobilenet_v2/FP16/ssdlite_mobilenet_v2.xml")

docs/source/adapters/index.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
[todo]
1212
:::
1313

14-
:::{grid-item-card} Ovms Adapter
15-
:link: ./ovms_adapter
16-
:link-type: doc
17-
1814
[todo]
1915
:::
2016
:::{grid-item-card} Onnx Adapter
@@ -45,6 +41,5 @@
4541
./inference_adapter
4642
./onnx_adapter
4743
./openvino_adapter
48-
./ovms_adapter
4944
./utils
5045
```

docs/source/adapters/ovms_adapter.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/serving_api/README.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

examples/serving_api/run.py

Lines changed: 0 additions & 34 deletions
This file was deleted.

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ dependencies = [
3131
]
3232

3333
[project.optional-dependencies]
34-
ovms = [
35-
"tritonclient[http]<2.59",
36-
]
3734
tests = [
3835
"pre-commit",
3936
"httpx",

src/README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,25 +79,13 @@ The following tasks can be solved with wrappers usage:
7979

8080
Model API wrappers are executor-agnostic, meaning it does not implement the specific model inference or model loading, instead it can be used with different executors having the implementation of common interface methods in adapter class respectively.
8181

82-
Currently, `OpenvinoAdapter` and `OVMSAdapter` are supported.
82+
Currently, `OpenvinoAdapter` and `ONNXRuntimeAdapter` are supported.
8383

8484
### OpenVINO Adapter
8585

8686
`OpenvinoAdapter` hides the OpenVINO™ toolkit API, which allows Model API wrappers launching with models represented in Intermediate Representation (IR) format.
8787
It accepts a path to either `xml` model file or `onnx` model file.
8888

89-
### OpenVINO Model Server Adapter
90-
91-
`OVMSAdapter` hides the OpenVINO Model Server python client API, which allows Model API wrappers launching with models served by OVMS.
92-
93-
Refer to **[`OVMSAdapter`](adapters/ovms_adapter.md)** to learn about running demos with OVMS.
94-
95-
For using OpenVINO Model Server Adapter you need to install the package with extra module:
96-
97-
```sh
98-
pip install <omz_dir>/demos/common/python[ovms]
99-
```
100-
10189
### ONNXRuntime Adapter
10290

10391
`ONNXRuntimeAdapter` hides the ONNXRuntime, which Model API wrappers launching with models represented in ONNX format.

0 commit comments

Comments
 (0)