how_to_download_models_en.md 668 Bytes
Newer Older
1
2
### 1. Download the Model from Hugging Face
Use a Python Script to Download Model Files from Hugging Face
3
```bash
4
5
6
pip install huggingface_hub
wget https://github.com/opendatalab/MinerU/raw/master/docs/download_models_hf.py
python download_models_hf.py
7
```
8
After the Python script finishes executing, it will output the directory where the models are downloaded.
9

10
### 2. To modify the model path address in the configuration file
11
12

Additionally, in `~/magic-pdf.json`, update the model directory path to the absolute path of the `models` directory output by the previous Python script. Otherwise, you will encounter an error indicating that the model cannot be loaded.
13