Skip to content

Commit a9c4772

Browse files
authored
Add note about authenticating in export docs (#1008)
1 parent b38f191 commit a9c4772

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/source/openvino/export.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ To export your model to the [OpenVINO IR](https://docs.openvino.ai/2024/document
1919
optimum-cli export openvino --model meta-llama/Meta-Llama-3-8B ov_model/
2020
```
2121

22+
To export a private model or a model that requires access, you can either run `huggingface-cli login` to log in permanently, or set the environment variable `HF_TOKEN` to a [token](https://huggingface.co/settings/tokens) with access to the model. See the [authentication documentation](https://huggingface.co/docs/huggingface_hub/quick-start#authentication) for more information.
23+
2224
The model argument can either be the model ID of a model hosted on the [Hub](https://huggingface.co/models) or a path to a model hosted locally. For local models, you need to specify the task for which the model should be loaded before export, among the list of the [supported tasks](https://huggingface.co/docs/optimum/main/en/exporters/task_manager).
2325

2426
```bash

0 commit comments

Comments
 (0)