Skip to content
Discussion options

You must be logged in to vote

Hi @gitpushmainforce! I'm Dosu and I’m helping the docling team.

This kind of hang (no CPU usage, no progress after "Accelerator device: 'cpu'") is a known issue and can be caused by a few things in Docling:

  • The default PDF backend sometimes blocks indefinitely on certain PDFs or environments. Switching to the pypdfium2 backend often resolves this. Try:

    docling --pdf-backend pypdfium2 hello.pdf
    

    This backend is faster and more robust for many PDFs, especially if the default backend hangs or is slow [source].

  • Native dependency mismatches (like ONNX Runtime or PyTorch installed for the wrong architecture) can cause silent hangs, especially in WSL2 or mixed-arch setups. Make sure all de…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gitpushmainforce
Comment options

Answer selected by gitpushmainforce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant