parent
c3d5e9aa30
commit
4d1821a7f4
|
|
@ -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.**
|
**Everything will be done in the Hugging Face UI. No local setup is needed.**
|
||||||
|
|
||||||
:::tip
|
:::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
|
### Deep Dive
|
||||||
|
|
@ -101,21 +101,12 @@ In this post, we covered the detailed steps for deploying a Tabby instance to Hu
|
||||||
```Dockerfile
|
```Dockerfile
|
||||||
FROM tabbyml/tabby
|
FROM tabbyml/tabby
|
||||||
|
|
||||||
RUN useradd -m -u 1000 user
|
USER root
|
||||||
|
RUN mkdir -p /data
|
||||||
USER user
|
RUN chown 1000 /data
|
||||||
|
|
||||||
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 1000
|
||||||
|
CMD ["serve", "--device", "cuda", "--model", "TabbyML/SantaCoder-1B"]
|
||||||
```
|
```
|
||||||
|
|
||||||
#### CURL Command
|
#### CURL Command
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue