adithya-s-k / omniparse

Ingest, parse, and optimize any data format ➡️ from documents to multimedia ➡️ for enhanced compatibility with GenAI frameworks
https://docs.cognitivelab.in
GNU General Public License v3.0
4.37k stars 350 forks source link

downloading models #25

Open linnnff opened 2 weeks ago

linnnff commented 2 weeks ago

Due to my network being disconnected, I would like to download to a local directory. Please let me know which models need to be downloaded and which directory to place them in after downloading.

hjsybyq commented 2 weeks ago

Same question as above

adithya-s-k commented 2 weeks ago

Download Models: If you want to download the models before starting the server

python download.py --documents --media --web

As we are using huggingface to download these models which has a chaching mechanism To find the downloaded models you can go to

Cache setup Pretrained models are downloaded and locally cached at: ~/.cache/huggingface/hub. This is the default directory given by the shell environment variable TRANSFORMERS_CACHE. On Windows, the default directory is given by C:\Users\username.cache\huggingface\hub. You can change the shell environment variables shown below - in order of priority - to specify a different cache directory:

source

NBdadasama commented 1 week ago

A configuration file or python's setting.py file is need. Support for modifying the model link in the configuration file to support referencing local models.