File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -288,14 +288,14 @@ at: [https://huggingface.github.io/text-embeddings-inference](https://huggingfac
288
288
289
289
### Using a private or gated model
290
290
291
- You have the option to utilize the ` HUGGING_FACE_HUB_TOKEN ` environment variable for configuring the token employed by
291
+ You have the option to utilize the ` HF_API_TOKEN ` environment variable for configuring the token employed by
292
292
` text-embeddings-inference ` . This allows you to gain access to protected resources.
293
293
294
294
For example:
295
295
296
296
1 . Go to https://huggingface.co/settings/tokens
297
297
2 . Copy your cli READ token
298
- 3 . Export ` HUGGING_FACE_HUB_TOKEN =<your cli READ token>`
298
+ 3 . Export ` HF_API_TOKEN =<your cli READ token>`
299
299
300
300
or with Docker:
301
301
@@ -304,7 +304,7 @@ model=<your private model>
304
304
volume=$PWD /data # share a volume with the Docker container to avoid downloading weights every run
305
305
token=< your cli READ token>
306
306
307
- docker run --gpus all -e HUGGING_FACE_HUB_TOKEN =$token -p 8080:80 -v $volume :/data --pull always ghcr.io/huggingface/text-embeddings-inference:1.2 --model-id $model
307
+ docker run --gpus all -e HF_API_TOKEN =$token -p 8080:80 -v $volume :/data --pull always ghcr.io/huggingface/text-embeddings-inference:1.2 --model-id $model
308
308
```
309
309
310
310
### Using Re-rankers models
You can’t perform that action at this time.
0 commit comments