Python 3.14 support
This issue is tracking the status for providing a version compatible with Python 3.14. In most cases we rely on other dependencies to provide support in their distribution, where possible we will link to the corresponding issues.
Requirements for the release
- [x] docling-core with Python 3.14 support, see https://github.com/docling-project/docling-core/pull/403
- [x] docling-parse with Python 3.14 support, see https://github.com/docling-project/docling-parse/pull/174
- [x] docling-ibm-models with Python 3.14 support, see https://github.com/docling-project/docling-ibm-models/pull/131
- [x] pyarrow (needed in
docling-ibm-modelsand vlm extra), see https://github.com/apache/arrow/issues/47438 - [x] Update
lxml(see #2232), https://github.com/docling-project/docling/pull/2530 - [x] Fix usage of torch
model.compile(), see https://github.com/docling-project/docling/pull/2530
Requirement for complete features
With this packages missing we will still make a Docling release for 3.14 but some features will not be available.
- [x] mlx (used for vlm on mac)
- [x] onnxruntime (used for more efficient rapidocr), see https://github.com/microsoft/onnxruntime/issues/26309
- [x] numba (used in asr pipeline), see https://github.com/numba/numba/issues/9957
- [x] vllm is pinning the exact torch version which is not yet 2.9 (with support for Python 3.14)
- [x] ray (used by vllm), see https://github.com/ray-project/ray/issues/56434
- [x] usage of torch.compile with Python 3.14 (not yet available in torch) (now it is: https://dev-discuss.pytorch.org/t/torch-compile-support-for-python-3-14-completed/3276)
Dependencies which build from source on Python 3.14
The following packaged don't provide yet compiled wheels for Python 3.14 but they can get compiled on the fly when installing them.
- [x] scikit-image (used by easyocr), see https://github.com/scikit-image/scikit-image/issues/7918
- [ ] watchdog, only for dev (it is used to build the docs pages from jupyter notebooks)
- [x] pyclipper (used by easyocr and rapidocr)
- With the release of vLLM v.0.17.0, it now uses pytorch 2.10.0 which supports Python 3.14 so this box can be checked.
- With the release vLLM 0.18.0, ray is no longer a default dependency so that box can be checked/removed.
- With the release of pytorch 2.10.0, torch.compile supports Python 3.14 so that box can also be checked.
@dolfim-ibm I think we can check of the last things here and close it.
Is Python 3.14 fully supported? Just curious.
@BBC-Esq yes is it, closing now! Thanks for being on it!
@PeterStaar-IBM Like Donkey Kong. ;-)