You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--weights PATH`| auto-detected | Use custom model weights instead of the default safetensor. |
22
+
|`--model-config PATH`| auto-detected | Specify the model architecture configuration file, overriding the default config.json. In offline environments, point to a pre-downloaded config file path. |
23
+
|`--device`|`cpu`| Execution backend: `cpu`, `metal`, or `cuda` (alpha). |
|`--no-repeat-ngram-size`|`20`| N-gram blocking window applied to every decode step. |
36
+
|`--seed`| – | RNG seed for reproducible sampling runs. |
36
37
37
38
> **Heads-up:** If the final markdown appears truncated, increase `--max-new-tokens`. The model stops once it has emitted the configured number of tokens even if the prompt is unfinished.
38
39
39
40
### Configuration & Overrides
40
41
41
-
| Platform | Config path | Weights cache path |
42
-
|---|---|---|
43
-
| Linux |`~/.config/deepseek-ocr/config.toml`|`~/.cache/deepseek-ocr/models/<id>/model.safetensors`|
| Windows |`%APPDATA%\deepseek-ocr\config.toml`|`%LOCALAPPDATA%\deepseek-ocr\models\<id>\model.safetensors`|
46
47
47
48
- Pass `--config /path/to/config.toml` to read or bootstrap an alternate file (created with defaults if missing).
48
49
- Runtime values resolve in this order: CLI flags → values in `config.toml` → baked-in defaults. Asset paths behave the same way: explicit flags beat config entries which beat the cache locations listed above.
0 commit comments