[BUG] beehive_v0.0.5_pt/model.pt removed in 2.10.0? It's not compatible with existing code.
Thanks for your excellent work, but the latest huggingface update seems to have removed a model file that is needed for the latest code. How is it compatible with this modification?
beehive_v0.0.5_pt/model.pt was removed from the huggingface repository in version 2.10.0, but it is required to run a 2.10.0 program. (Use safetensors (#2))
my code
pipeline_options = PdfPipelineOptions(artifacts_path="/root/models/ds4sd/docling-models/")
converter = DocumentConverter(
format_options={
InputFormat.PDF: PdfFormatOption(pipeline_options=pipeline_options)
}
)
# converter = DocumentConverter()
result = converter.convert(source)
print(result.document.export_to_markdown())
error log:
FileNotFoundError: Missing torch file: /root/models/ds4sd/docling-models/model_artifacts/layout/beehive_v0.0.5_pt/model.pt
How do I use the new model? Or do I need to download the previous model manually?
How did you download the model weights?
Each Docling version will pin a specific tag in HuggingFace, we don't advise anybody to pull from the main branch there.
The following function is taking care of pinning the correct version
from docling.pipeline.standard_pdf_pipeline import StandardPdfPipeline
StandardPdfPipeline.download_models_hf()
Thank you for your answer.
My machine is deployed on a LAN and I moved it to the machine after downloading the models via huggingface_cli, so I referred to documentation for the way I downloaded the models and had the problem of this issue.
I looked at the download_models_hf code and found that it downloads models from the v2.0.1 branch, which works fine after I download this version.
Although the problem was resolved, the inconsistency between the versions on huggingface and github did confuse me, perhaps there should be a reminder of the version difference in the FAQ question in the documentation?
Thanks again for your answers!
Yes, the documentation could be more explicit about it. Happy you could quickly resolve your issue.