openvino-tokenizers
Convert tokenizers into OpenVINO models
What it is and what it does
OpenVINO Tokenizers bridges tokenizer conversion and OpenVINO's inference runtime by converting tokenizers into compiled OpenVINO models. This lets you perform text tokenization and detokenization as part of an OpenVINO inference graph, eliminating the need to load separate tokenizer libraries during deployment. The package provides both a CLI tool and Python API for converting tokenizers, and supports combining tokenizers with language models into single deployable units.
The package is built on openvino as its sole runtime dependency and targets modern Python (3.10+). It ships precompiled wheels for macOS (arm64, x86_64), Linux (x86_64, aarch64), and Windows. Tokenization runs on CPU only. Installation can be minimal for using pre-converted tokenizers or include extras for conversion workflows.
Use it for:
- Deploy end-to-end NLP models as a single OpenVINO artifact without external tokenizer dependencies.
- Integrate text preprocessing into OpenVINO inference pipelines for edge or server deployments.
- Convert tokenizers to OpenVINO format for use in C++ or Python inference applications.
- Add greedy decoding pipelines to text generation models within the OpenVINO framework.
- Reduce deployment footprint by eliminating separate tokenizer library installations.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts HuggingFace tokenizers into OpenVINO models for text processing, enabling tokenization and detokenization within OpenVINO inference pipelines without external tokenizer dependencies.
Yes, if you are building OpenVINO-based NLP inference pipelines and want to eliminate external tokenizer dependencies. Active maintenance, permissive Apache-2.0 license, and a recent release (10 days old) support reliability. Install with caution if you require GPU tokenization; CPU-only inference and medium install friction are real trade-offs.
Install
openvino-tokenizers on PyPI
pip
pip install openvino-tokenizersuv
uv add openvino-tokenizerspoetry
poetry add openvino-tokenizersInstalling openvino-tokenizers
Before you install
Medium install friction due to platform-specific wheels (macOS arm64, x86_64, Linux aarch64, Windows) and a required openvino runtime dependency. Active maintenance with a release 10 days old suggests ongoing support.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install openvino-tokenizers
from openvino_tokenizers import convert_tokenizer
from openvino import compile_model
ov_tokenizer = convert_tokenizer(hf_tokenizer)
compiled = compile_model(ov_tokenizer)
Requires openvino runtime dependency; inference runs on CPU device only.
Verify before relying
- Whether converted tokenizers maintain feature parity with original tokenizers across all model types.
- Performance characteristics (latency, throughput) of OpenVINO tokenizers vs. native implementations.
- Compatibility matrix between openvino-tokenizers and openvino versions beyond the first-three-digit matching guidance.
- Which tokenizer conversion extras (sentencepiece, tiktoken) are required for specific model families.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — openvino |
| Maintenance | actively maintained — 10 days since the last release |
| First released | |
| Downloads | 207,975/month — #9,538 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openvino_tokenizers-2026.3.0.0-py3-none-macosx_11_0_arm64.whl; openvino_tokenizers-2026.3.0.0-py3-none-manylinux_2_28_x86_64.whl; openvino_tokenizers-2026.3.0.0-py3-none-manylinux_2_31_aarch64.whl; openvino_tokenizers-2026.3.0.0-py3-none-win_amd64.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
openvinoOpenVINO converts and optimizes deep learning…
permissive · top 5,000 on PyPI
openvino-genaiopenvino-genai simplifies running inference on…
permissive · top 15,000 on PyPI
optimum-intelOptimum Intel bridges Hugging Face Transformers…
permissive · top 15,000 on PyPI
tokieA fast, Rust-backed tokenizer library that…
permissive · top 15,000 on PyPI
openvino-devProvides command-line tools and Python APIs to…
permissive · top 15,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
pytorch-tokenizersProvides C++ implementations of multiple…
permissive · top 15,000 on PyPI
tensorflow-textTensorFlow Text provides text preprocessing…
permissive · top 5,000 on PyPI
onnxruntime-openvinoEnables ONNX Runtime to accelerate machine…
permissive · top 15,000 on PyPI
nncfNNCF provides post-training and training-time…
permissive · top 5,000 on PyPI