Skip to content

Commit

Permalink
docs: combine docker run command into a single line for ease of runni…
Browse files Browse the repository at this point in the history
…ng 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 <[email protected]>
  • Loading branch information
Hypnootika and wsxiaoys authored Oct 16, 2023
1 parent 1503ef6 commit a8e2aaf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions website/docs/installation/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit a8e2aaf

Please sign in to comment.