Skip to content
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

Download pretrained models for offline usage #89

Open
jgwinnup opened this issue Nov 8, 2024 · 0 comments
Open

Download pretrained models for offline usage #89

jgwinnup opened this issue Nov 8, 2024 · 0 comments

Comments

@jgwinnup
Copy link

jgwinnup commented Nov 8, 2024

Hi,

I'm attempting to use Docling on a standalone network, working through what the collection of packages is expecting for models and other files, it looks like deepsearch-glm is trying to download models (/deepsearch_glm_v1/nlp/crf_pos_model_en.bin among them)

I'm calling deepsearch.glm.utils.load_pretrained_models on an internet-connected system in an attempt to download the above for offline use but have two questions:

  • Where are these models normally cached?
  • I set DEEPSEARCH_GLM_RESOURCES to a separate directory, but when I then call load_pretrained_models, it complains about config.json not existing. When the environment variable is not set, they appear to download and I get a python list back: ['part-of-speech', 'reference', ...

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant