Where are the models stored by default? #480
-
I'm looking at these two lines in the project's Dockerfile https://github.com/DS4SD/docling/blob/main/Dockerfile#L19
When these 2 command are ran, where are the respective models being downloaded to? Are they being saved to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The first line is currently not downloading anything. We should actually remove it from the example Dockerfile. The second line is downloading the model weights with the Hugging Face Hub library. There are many options, see the documentation. In this case, they should be in Additionally, that
|
Beta Was this translation helpful? Give feedback.
The first line is currently not downloading anything. We should actually remove it from the example Dockerfile.
The second line is downloading the model weights with the Hugging Face Hub library. There are many options, see the documentation.
In this case, they should be in
~/.cache/huggingface/hub/
.Additionally, that
The function
StandardPdfPipeline.download_models_hf()
actually returns the location. So a code like this would actually print it out.StandardPdfPipeline.download_models_hf(artifacts_path="MY PATH")
accept the target location. If you specify this input argument, then you have to set it every…