-
Notifications
You must be signed in to change notification settings - Fork 788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error building extension 'MultiScaleDeformableAttention' when running sample from web site. #603
Comments
Do you get the error when installing Docling, i.e. The error you posted looks like a compilation issue which, in case, would happen in the install phase. |
It was happening when I ran the sample script:
Yeah, I didn't get that either. It seemed to be trying to compile something in C++, if I recall correctly, before running the script. At some point it ceased doing that. It now gives me this message: /doclingtest/venv/lib/python3.10/site-packages/torch/cuda/init.py:129: UserWarning: CUDA initialization: CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero. (Triggered internally at ../c10/cuda/CUDAFunctions.cpp:108.) and then it goes on to run, but without using my GPU (RTX 3050.). I have CUDA 12.6 installed and CUDA Toolkit 12.6 as well. |
We never encounter (yet) such an error. I'm a bit suspicious about the CUDA and Pytorch versions. I would recommend making sure torch and cuda are compatible, e.g. using the install methods listed on https://pytorch.org/. |
I got the same error,but i still can convert it to MarkDown.And this error may disappear after you update gcc version. /lib/python3.9/site-packages/torch/include/c10/util/C++17.h:13:2: error: #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later." |
I am having the same issue after updating the package today. |
Uninstalled and reinstalled cuda-toolkit and that seemed to have fixed it. Thanks. |
Bug
When running the sample app, I get these errors:
...
Steps to reproduce
pip install docling
Then create a script with:
Running this code produces the error above.
...
Docling version
Docling version: 2.12.0
Docling Core version: 2.10.0
Docling IBM Models version: 3.1.0
Docling Parse version: 3.0.0
...
Python version
Python 3.10.12
...
The text was updated successfully, but these errors were encountered: