From 4d1821a7f47dd36b003a25ec00c9078b0312149b Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Mon, 11 Sep 2023 12:41:07 +0800 Subject: [PATCH] docs: Improve hf blog docs (#427) * docs: improve hf blog * fix --- .../index.md | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/website/blog/2023-09-05-deploy-tabby-to-huggingface-space/index.md b/website/blog/2023-09-05-deploy-tabby-to-huggingface-space/index.md index 9ad6454..a87ac42 100644 --- a/website/blog/2023-09-05-deploy-tabby-to-huggingface-space/index.md +++ b/website/blog/2023-09-05-deploy-tabby-to-huggingface-space/index.md @@ -29,7 +29,7 @@ That's it! With the hosted APIs, now you can connect Tabby's [IDE extensions](/d **Everything will be done in the Hugging Face UI. No local setup is needed.** :::tip -Looking to quickly start a Tabby instance? You can skip the tutorials entirely and simply [duplicate the space](https://huggingface.co/spaces/randxie/tabbyml?duplicate=true). +Looking to quickly start a Tabby instance? You can skip the tutorials entirely and simply create space from [this template](https://huggingface.co/spaces/TabbyML/tabby-template-space?duplicate=true). ::: ### Deep Dive @@ -101,21 +101,12 @@ In this post, we covered the detailed steps for deploying a Tabby instance to Hu ```Dockerfile FROM tabbyml/tabby -RUN useradd -m -u 1000 user - -USER user - -ENV HOME=/home/user \ - PATH=/home/user/.local/bin:$PATH - -ENV TABBY_ROOT=$HOME/app - -WORKDIR $HOME/app - -COPY --chown=user . $HOME/app - -CMD ["serve", ”--device", "cuda", "--model", "TabbyML/SantaCoder-1B"] +USER root +RUN mkdir -p /data +RUN chown 1000 /data +USER 1000 +CMD ["serve", "--device", "cuda", "--model", "TabbyML/SantaCoder-1B"] ``` #### CURL Command