From 873573150f99c654f81b1e772a5cc7bd2226832c Mon Sep 17 00:00:00 2001 From: Merve Noyan Date: Thu, 7 Sep 2023 16:06:18 +0200 Subject: [PATCH] Update non_core_models.md --- docs/source/basic_tutorials/non_core_models.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/source/basic_tutorials/non_core_models.md b/docs/source/basic_tutorials/non_core_models.md index b60c5c3d..280c0991 100644 --- a/docs/source/basic_tutorials/non_core_models.md +++ b/docs/source/basic_tutorials/non_core_models.md @@ -14,4 +14,10 @@ If the model you wish to serve is a custom transformers model, and its weights a docker run --gpus all --shm-size 1g -p 8080:80 -v $volume:/data ghcr.io/huggingface/text-generation-inference:latest --model-id --trust-remote-code ``` +Finally, if the model is not on Hugging Face Hub but on your local, you can pass the path to the folder that contains your model like below 👇 + +```bash +docker run --platform linux/x86_64 --shm-size 1g --net=host -p 8080:80 -v $volume:/data -e CUDA_VISIBLE_DEVICES= ghcr.io/huggingface/text-generation-inference:latest --model-id +``` + You can refer to [transformers docs on custom models](https://huggingface.co/docs/transformers/main/en/custom_models) for more information.