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
parent
1503ef6aba
commit
a8e2aaf7d1
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue