docs: combine docker run command into a single line for ease of running in non-linux shell (e.g windows powershell) (#563)

* chore: Added Powershell compat

* fix: docker.mdx

Fix of my previous approach

* fix: docker.mdx

this time, i swear

* Fixed Powershell instruction (again), added
command to non-cuda tab

* Update docker.mdx

* Update docker.mdx

* Update docker.mdx

---------

Co-authored-by: Meng Zhang <meng@tabbyml.com>
dedup-snippet-at-index
sensinsane 2023-10-16 10:30:15 +02:00 committed by GitHub
parent 1503ef6aba
commit a8e2aaf7d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

@ -13,19 +13,14 @@ import TabItem from '@theme/TabItem';
<TabItem value="cpu" label="CPU" default>
```bash title="run.sh"
docker run -it \
-p 8080:8080 -v $HOME/.tabby:/data \
tabbyml/tabby serve --model TabbyML/StarCoder-1B
docker run -it -p 8080:8080 -v $HOME/.tabby:/data tabbyml/tabby serve --model TabbyML/StarCoder-1B
```
</TabItem>
<TabItem value="cuda" label="CUDA (requires NVIDIA Container Toolkit)" default>
```bash title="run.sh"
docker run -it \
--gpus all -p 8080:8080 -v $HOME/.tabby:/data \
tabbyml/tabby \
serve --model TabbyML/StarCoder-1B --device cuda
docker run -it --gpus all -p 8080:8080 -v $HOME/.tabby:/data tabbyml/tabby serve --model TabbyML/StarCoder-1B --device cuda
```
</TabItem>