docling-project / docling-project/docling

Sample Code - Error

Open
#1,456 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
3d 4h
Merged PRs (30d)
95

Description

Hi Team,

I just installed the Dockling as described and attempted to run it both via CLI and using the same Python code from the website.

On both results I am having the same error. Could you please help? (running in macos arm / Ubuntu)

(.venv) root@ubuntu-linux-2404:/home/parallels# python3 calistir.py
/home/parallels/.venv/lib/python3.12/site-packages/torch/utils/data/dataloader.py:665: UserWarning: 'pin_memory' argument is set as true but no accelerator is found, then device pinned memory won't be used.
warnings.warn(warn_msg)
Illegal instruction (core dumped)

docling https://arxiv.org/pdf/2206.01062
Illegal instruction (core dumped)

additionally - I am able to run it successfully with --no-ocr argument - it returns no error
docling https://arxiv.org/pdf/2206.01062 --no-ocr

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with the documented Python example and the `docling` CLI on macOS ARM or Ubuntu. Compare the OCR-enabled commands with `--no-ocr`, and inspect the PyTorch warning and `Illegal instruction` output. Done means identifying the OCR-related cause and confirming that the affected command runs without the crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
cli, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.