Install#
brew install python@3.12 # or the python.org installer
python3.12 -m venv ~/docling-env && source ~/docling-env/bin/activate
pip install -U pip
pip install "docling[ocrmac]" # Apple Vision OCR included
docling --versionNo separate PyTorch step is needed on macOS: PyPI's macOS wheels do not pull NVIDIA libraries, and they include MPS support.
Which PyTorch you will get#
| Mac | PyTorch resolved for Docling 2.148.0 | Why |
|---|---|---|
| Apple Silicon, macOS 14+ | 2.15.0 (latest) | Wheels from 2.12.0 on are tagged macosx_14_0_arm64 |
| Apple Silicon, macOS 11–13 | 2.11.0 | Last version with macosx_11_0_arm64 wheels |
| Intel (x86_64) | 2.2.2 | Last PyTorch release with Intel macOS wheels |
Resolutions checked with uv's resolver for Python 3.12 and confirmed against the wheel tags on PyPI. Docling requires torch>=2.2.2, which is why Intel Macs still work.
Apple Silicon acceleration#
- Layout, tables, OCR models: run on MPS automatically. Force with
--device mps. - Apple Vision OCR:
--ocr-engine ocrmac; languages use Apple's codes such asen-US,zh-Hans,ja-JP, oriso:tags.--ocr-option recognition=fasttrades accuracy for speed. - MLX for VLMs:
pip install "docling[vlm]"addsmlx-vlmon Apple Silicon; presets with an MLX build (Granite-Docling, SmolDocling, Qwen, Pixtral, Gemma…) use it automatically. - MLX for audio:
docling[asr]addsmlx-whisper; pick awhisper_*_mlxmodel with--asr-model.
docling convert scan.pdf --ocr-engine ocrmac --ocr-lang ja-JP
docling convert report.pdf --pipeline vlm --vlm-model granite_docling
docling convert meeting.m4a --pipeline asr --asr-model whisper_turbo_mlxOptional tools via Homebrew#
brew install tesseract tesseract-lang # Tesseract engine + all languages
brew install --cask libreoffice # .doc, .ppt, .xls, .rtf
brew install ffmpeg # audio and videoFrequently asked questions
Does Docling use the Apple Silicon GPU?
Yes. PyTorch's MPS backend ships in the standard macOS wheels, and Docling's default --device auto picks MPS when CUDA is not available. You can force it with --device mps.
What is the best OCR engine for Docling on a Mac?
ocrmac, which uses Apple's built-in Vision framework: no model download and good multilingual support. Install docling[ocrmac] and pass --ocr-engine ocrmac. On macOS the automatic engine also tries ocrmac first when it is installed.
Can I run Docling on an Intel Mac?
Yes. Docling 2.148.0 installs, but PyTorch stopped publishing Intel macOS wheels after 2.2.2, so pip installs that version. Everything runs on the CPU.
Sources
- torch on PyPI: macOS wheel tags (2.11.0: macosx_11_0; 2.12.0+: macosx_14_0)
- ocrmac on PyPI
- ibm-granite/granite-docling-258M-mlx