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>
|
<TabItem value="cpu" label="CPU" default>
|
||||||
|
|
||||||
```bash title="run.sh"
|
```bash title="run.sh"
|
||||||
docker run -it \
|
docker run -it -p 8080:8080 -v $HOME/.tabby:/data tabbyml/tabby serve --model TabbyML/StarCoder-1B
|
||||||
-p 8080:8080 -v $HOME/.tabby:/data \
|
|
||||||
tabbyml/tabby serve --model TabbyML/StarCoder-1B
|
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="cuda" label="CUDA (requires NVIDIA Container Toolkit)" default>
|
<TabItem value="cuda" label="CUDA (requires NVIDIA Container Toolkit)" default>
|
||||||
|
|
||||||
```bash title="run.sh"
|
```bash title="run.sh"
|
||||||
docker run -it \
|
docker run -it --gpus all -p 8080:8080 -v $HOME/.tabby:/data tabbyml/tabby serve --model TabbyML/StarCoder-1B --device cuda
|
||||||
--gpus all -p 8080:8080 -v $HOME/.tabby:/data \
|
|
||||||
tabbyml/tabby \
|
|
||||||
serve --model TabbyML/StarCoder-1B --device cuda
|
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue