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
Copy file name to clipboardExpand all lines: demos/common/export_models/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,9 @@ Some of the exceptions include:
55
55
56
56
### Text Generation Models
57
57
58
-
#### Text Generation CPU Deployment
58
+
When `--target_device` is omitted, no device field is written to the graph configuration and OVMS auto-detects the best available device at startup. Pass `--target_device` explicitly to pin execution to a specific device.
parser.add_argument('--weight-format', default='int8', help='precision of the exported model', dest='precision')
31
31
parser.add_argument('--config_file_path', default='config.json', help='path to the config file', dest='config_file_path')
32
32
parser.add_argument('--overwrite_models', default=False, action='store_true', help='Overwrite the model if it already exists in the models repository', dest='overwrite_models')
33
-
parser.add_argument('--target_device', default="CPU", help='CPU, GPU, NPU or HETERO, default is CPU', dest='target_device')
33
+
parser.add_argument('--target_device', default=None, help='CPU, GPU, NPU or HETERO. When not specified the server will auto-detect the best available device at startup.', dest='target_device')
34
34
parser.add_argument('--ov_cache_dir', default=None, help='Folder path for compilation cache to speedup initialization time', dest='ov_cache_dir')
@@ -127,8 +127,3 @@ cat score/openvino-qwen3-8b-int4-FC/BFCL_v4_simple_python_score.json | head -1
127
127
Those results can be compared with the reference from the [berkeley leaderbaord](https://gorilla.cs.berkeley.edu/leaderboard.html#leaderboard).
128
128
129
129
---
130
-
131
-
> **Note:** The same procedure can be used to validate vLLM component. The only needed change would be updating base_url including replacing `/v3/` with `/v1/`.
Running above command starts the container with no accelerators support.
97
-
To deploy on devices other than CPU, change `target_device` parameter in `export_model.py` call and follow [AI accelerators guide](../../../docs/accelerators.md) for additionally required docker parameters.
98
+
OVMS auto-detects the best available device at startup. To target a specific device explicitly, pass `--target_device GPU` (or `NPU`, `HETERO:GPU,CPU`, etc.) to `export_model.py` and follow the [AI accelerators guide](../../../docs/accelerators.md) for additionally required docker parameters.
98
99
:::
99
100
100
101
:::{dropdown} **Deploying on Bare Metal**
@@ -119,7 +120,7 @@ Let's check how the deployed model is doing by running performance test. For tha
Running above command starts the container with no accelerators support.
291
-
To deploy on devices other than CPU, change `target_device` parameter in `export_model.py` call and follow [AI accelerators guide](../../../docs/accelerators.md) for additionally required docker parameters.
291
+
OVMS auto-detects the best available device at startup. To target a specific device explicitly, pass `--target_device GPU` (or `NPU`, `HETERO:GPU,CPU`, etc.) to `export_model.py` and follow the [AI accelerators guide](../../../docs/accelerators.md) for additionally required docker parameters.
Copy file name to clipboardExpand all lines: docs/parameters.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,10 @@ Task specific parameters for different tasks (text generation/image generation/e
147
147
|`--enable_prefix_caching`|`bool`| Enables algorithm to cache the prompt tokens. Default: true. |
148
148
|`--max_num_batched_tokens`|`integer`| The maximum number of tokens that can be batched together. |
149
149
|`--cache_size`|`integer`| KV Cache size in GB. Default: 0 which is a dynamic allocation. |
150
-
|`--draft_source_model`|`string`| HF model name or path to the local folder with PyTorch or OpenVINO draft model. |
150
+
|`--draft_source_model`|`string`| HF model name or path to the local folder with PyTorch or OpenVINO draft model. Mutually exclusive with `--draft_model_path`. |
151
+
|`--draft_model_path`|`string`| Absolute path to an already-exported OpenVINO draft model directory. Use for local models instead of `--draft_source_model`. |
152
+
|`--draft_eagle3_mode`|`bool`| Enable EAGLE3 speculative decoding for the draft model. Default: false. |
153
+
|`--draft_device`|`string`| Device to run the draft model on. Defaults to the same device as the main model. |
0 commit comments