OpenVINO Model Server: Docker setup for OpenAI API code
Learn to serve an INT4 model with OpenVINO Model Server in Docker and redirect a Python OpenAI API client to localhost on port 8000.
Player not loading? Watch on YouTube
Ezequiel Lanza demonstrates how to replace a cloud model call with a local LLM served through OpenVINO Model Server. The walkthrough uses Docker on Linux. He also describes a standalone binary option and says Docker works on Windows, macOS and Linux, though those platforms are not demonstrated.
The setup starts with pulling a container image that includes the OpenVINO runtime and optimizations for Intel CPUs or GPUs. Lanza then uses the container's pull command to download an OpenVINO-compatible model from Hugging Face into a local folder. He describes the model as an INT4-optimized, 8-billion-parameter model and says quantization reduces its memory use. The tutorial does not give a minimum RAM requirement.
A second container command serves the downloaded model. The example mounts the local model folder into the container and exposes port 8000 for application requests. Lanza checks the running container with docker ps before testing a Python script that previously called GPT-4.
For that script, he changes the base URL to the local server and sets the model name to match the served model. He says the remaining code stays the same, then runs a prompt asking what OpenVINO Model Server is. This demonstrates adapting one existing OpenAI API client; it does not establish compatibility with every application or API feature.