docs: Improve hf blog docs (#427)

* docs: improve hf blog

* fix
release-0.2
Meng Zhang 2023-09-11 12:41:07 +08:00 committed by GitHub
parent c3d5e9aa30
commit 4d1821a7f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 15 deletions

View File

@ -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