Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pdf_parser = PdfParser()
env definitions:

```bash
# provider: auto | local | modelscope
# provider: auto | local | huggingface | modelscope
export DEEPDOC_MODEL_PROVIDER=auto

# shared model cache root (default: ~/.cache/deepdoc)
Expand All @@ -93,7 +93,13 @@ export DEEPDOC_MODEL_HOME=/path/to/deepdoc-models
export DEEPDOC_VISION_MODEL_DIR=/path/to/vision
export DEEPDOC_XGB_MODEL_DIR=/path/to/xgb

# single combined ModelScope repo (all bundles in one repo)
# single combined Hugging Face repo (all bundles in one repo)
# (default: Xorbits/deepdoc)
export DEEPDOC_HUGGINGFACE_REPO=Xorbits/deepdoc
# optional shared revision (default: main)
export DEEPDOC_HUGGINGFACE_REVISION=main

# optional single combined ModelScope repo (all bundles in one repo)
# (default: Xorbits/deepdoc)
export DEEPDOC_MODELSCOPE_REPO=Xorbits/deepdoc
# optional shared revision (default: master)
Expand All @@ -116,6 +122,12 @@ deepdoc-download-models
python -m deepdoc.download_models
```

This uses Hugging Face by default. To force ModelScope instead:

```bash
deepdoc-download-models --provider modelscope
```

If you want to override the cache location, set `DEEPDOC_MODEL_HOME`:

```bash
Expand Down
Loading
Loading