skillfed

openvino-tokenizers

Convert tokenizers into OpenVINO models

openvino-tokenizers v2026.3.0.0 208.0K downloads/30d#9,538 on PyPI
Permissive license Apache-2.0 Active released

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-tokenizers

uv

uv add openvino-tokenizers

poetry

poetry add openvino-tokenizers

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxOperating System :: UnixProgramming Language :: CProgramming Language :: C++Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Software Development :: Libraries :: Python Modules

Tags

tokenizer conversion openvinohuggingface to openvinotext processing openvinotokenization inference pipelineopenvino nlp modelsdetokenizer openvinoconvert tokenizers openvino
nlp-inferencemodel-conversionedge-deployment

More Python Modules packages