Skip to content

Latest commit

 

History

History
24 lines (24 loc) · 760 Bytes

HowToDownloadModels.md

File metadata and controls

24 lines (24 loc) · 760 Bytes

Download embedding models from HuggingFace

1. Install or upgrade the huggingface_hub package

>>>pip install -U huggingface_hub

2. Use HF-Mirror to help downloading required models

>>>export HF_ENDPOINT=https://hf-mirror.com

3. Create and change the current working directory to ~/ThinkRAG/localmodels

>>>mkdir localmodels && cd localmodels

4. Create and change the current working directory to ~/ThinkRAG/localmodels/BAAI

>>>mkdir BAAI && cd BAAI

5. Download required models

>>>huggingface-cli download --resume-download BAAI/bge-small-zh-v1.5 --local-dir bge-small-zh-v1.5
>>>huggingface-cli download --resume-download BAAI/bge-reranker-base --local-dir bge-reranker-base