Deploying Model Server on Baremetal#
OpenVINO Model Server can run outside a container using precompiled packages for Windows 11, Ubuntu 24.04, Ubuntu 26.04, and Red Hat Enterprise Linux 9.
Starting from version 2026.5, there is one package per operating system. Separate python_on and
python_off packages are no longer provided. Python integration is optional:
the same package can run without Python, or enable Python features when a
compatible Python installation and its dependencies are available.
The instructions below use the 2026.5.0 release packages. To evaluate
features before release, use the latest weekly packages
instead. Weekly packages are built from the main branch, and the contents of
latest change with each build.
Install and Verify#
Download and extract the package for your operating system. Run the executable directly from the extracted directory.
Install the Microsoft Visual C++ Redistributable (x64).
Download, extract, and verify the package in Command Prompt or PowerShell:
curl.exe -fL https://github.com/openvinotoolkit/model_server/releases/download/v2026.5.0/ovms_windows.zip -O
tar -xf ovms_windows.zip
.\ovms\ovms.exe --version
The Windows package includes an embedded Python runtime and packages in the
ovms\python subfolder; a separate Python installation is not required.
You can delete this subfolder if Python capabilities are not needed.
Optionally, install OVMS as a Windows service:
.\ovms\install_ovms_service.bat
Install system dependencies, then download, extract, and verify the package:
sudo apt update
sudo apt install -y curl ca-certificates libxml2
curl -fLO https://github.com/openvinotoolkit/model_server/releases/download/v2026.5.0/ovms_ubuntu24.tar.gz
tar -xzf ovms_ubuntu24.tar.gz
./ovms/bin/ovms --version
Install system dependencies, then download, extract, and verify the package:
sudo apt update
sudo apt install -y curl ca-certificates libxml2-16
curl -fLO https://github.com/openvinotoolkit/model_server/releases/download/v2026.5.0/ovms_ubuntu26.tar.gz
tar -xzf ovms_ubuntu26.tar.gz
./ovms/bin/ovms --version
Install system dependencies, then download, extract, and verify the package:
sudo dnf install -y curl ca-certificates libxml2
curl -fLO https://github.com/openvinotoolkit/model_server/releases/download/v2026.5.0/ovms_redhat9.tar.gz
tar -xzf ovms_redhat9.tar.gz
./ovms/bin/ovms --version
Optional Python Integration#
Python integration provides two features:
A Jinja-based chat-template engine for LLM models, using Jinja2 to render model chat templates.
Python custom nodes in MediaPipe graphs, allowing graphs to execute user-defined Python code.
Python is not required to start OVMS or serve models that do not use these
features. On Linux, install the compatible Python runtime for your package.
On Windows, use the embedded runtime in the ovms\python subfolder, which
already includes Jinja2 and MarkupSafe. On Linux, install Jinja2 for
chat-template rendering before starting OVMS; its MarkupSafe dependency is
installed automatically.
The embedded Python runtime already includes Jinja2 and MarkupSafe. No separate
Python installation or installation of these packages is required.
Keep the ovms\python subfolder
when using either Python feature; delete it only if neither feature is needed.
Install Python 3.12, its shared library, and Jinja2 from the system packages:
sudo apt install -y python3 libpython3.12 python3-jinja2
Install Python 3.14, its shared library, and Jinja2 from the system packages:
sudo apt install -y python3 libpython3.14 python3-jinja2
Install Python 3.12 and pip, then install Jinja2 for the current user:
sudo dnf install -y python3.12 python3.12-libs python3.12-pip
python3.12 -m pip install --user Jinja2
If your Python nodes use OpenVINO or OpenVINO
GenAI, also install NumPy for the same interpreter (python3-numpy on Ubuntu,
python3.12 -m pip install --user numpy on Red Hat, or
.\ovms\python\python.exe -m pip install numpy on Windows).
Do not install openvino, openvino-tokenizers, or openvino-genai via pip
for OVMS usage. These packages are already included in the OVMS package;
installing other versions can cause dependency conflicts.
If a compatible Python runtime or required Python plugins are unavailable, OVMS continues with Python features disabled. Python nodes are then unavailable, and LLM chat-template rendering has reduced functionality. Enable Python integration for advanced templates and tool-calling scenarios. Python support does not guarantee that every model’s chat template will render successfully.
For runtime diagnostics, see Python Runtime Setup and Troubleshooting.
Optional OpenCV Integration#
OpenCV decodes encoded input images for inference. It is generally faster and supports more image formats than the built-in stb_image decoder, which OVMS uses when the OpenCV plugin is not available. Without OpenCV, OVMS can still decode supported formats such as JPEG and PNG, but OpenCV-only formats and OpenCV-backed MediaPipe calculators are unavailable. See the encoded image guide for request and model requirements.
The image decoder backend is selected once, on the first encoded-image request. If the OpenCV plugin loads, OpenCV is used for all decoding. Otherwise, stb_image is used. The backend does not change afterwards, so a decoding failure is returned to the client and the image is not retried with the other decoder. Formats such as WebP, JPEG 2000, and PFM require the OpenCV plugin and corresponding codecs. Image dimensions and the per-request pixel budget are checked regardless of backend; see image decoding limits.
The decoder plugin is libovms_opencv_image_decoder.so on Linux and
ovms_opencv_image_decoder.dll on Windows. Install a plugin matching the OVMS
and OpenVINO build alongside the OVMS library, or in the release package’s
lib directory, with its OpenCV dependencies discoverable by the OS loader.
Restart OVMS after installing or replacing it.
To remove the bundled OpenCV libraries and plugins, stop OVMS and run the
following from the directory containing the extracted ovms folder.
On Linux:
rm -f ovms/lib/libopencv*.so* ovms/lib/libovms_opencv_image_decoder.so \
ovms/lib/libovms_opencv_calculators.so
On Windows, in Command Prompt:
del /Q ovms\opencv_world*.dll ovms\ovms_opencv_image_decoder.dll ovms\ovms_opencv_calculators.dll
Optional eSpeak Integration#
eSpeak NG provides phonemization for Kokoro speech generation in multiple languages and a fallback for uncommon English words. Without it, Kokoro remains available for English, but non-English phonemization and the English fallback are unavailable. See speech generation language options.
To remove the bundled eSpeak library and language data, stop OVMS and run the
following from the directory containing the extracted ovms folder.
On Linux:
rm -f ovms/lib/libespeak-ng.so*
rm -rf ovms/share/espeak-ng-data
On Windows, in Command Prompt:
del /Q ovms\espeak-ng.dll
if exist ovms\espeak-ng-data rmdir /S /Q ovms\espeak-ng-data
Removing bundled files does not remove libraries or eSpeak data installed
elsewhere on the system. OVMS may still find those through the system library
search path or ESPEAK_DATA_PATH.
Test the Deployment#
Download a ResNet50 model (use curl.exe instead of curl in Windows PowerShell):
curl -L https://huggingface.co/OpenVINO/resnet50-int8-ov/resolve/main/resnet50.bin -O
curl -L https://huggingface.co/OpenVINO/resnet50-int8-ov/resolve/main/resnet50.xml -O
Start the server on Linux:
./ovms/bin/ovms --model_name resnet --model_path resnet50.xml --mean "[123.675,116.28,103.53]" --scale "[58.395,57.12,57.375]" --layout "NHWC:NCHW" --port 9000
or on Windows:
ovms.exe --model_name resnet --model_path resnet50.xml --mean "[123.675,116.28,103.53]" --scale "[58.395,57.12,57.375]" --layout "NHWC:NCHW" --port 9000
You can also run the server as a background process, a system service on Linux, or a Windows service, depending on your hosting requirements.
Learn more about Model Server starting parameters.
NOTE: When serving models on AI accelerators, additional device drivers and dependencies may be required. See Additional Configurations for Hardware.