Skip to content

Where are the models stored by default? #480

Closed Answered by dolfim-ibm
jason-riddle asked this question in Q&A
Discussion options

You must be logged in to vote

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

  1. The function StandardPdfPipeline.download_models_hf() actually returns the location. So a code like this would actually print it out.

    artifacts_path = StandardPdfPipeline.download_models_hf()
    print(artifacts_path)
  2. 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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dolfim-ibm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants