mirror of
https://github.com/TabbyML/tabby
synced 2024-11-22 17:41:54 +00:00
Update README.md
This commit is contained in:
parent
495e6aaf76
commit
aa7ed053ec
14
README.md
14
README.md
@ -42,13 +42,6 @@ docker run \
|
||||
tabbyml/tabby
|
||||
```
|
||||
|
||||
You can then query the server using `/v1/completions` endpoint:
|
||||
```bash
|
||||
curl -X POST http://localhost:5000/v1/completions -H 'Content-Type: application/json' --data '{
|
||||
"prompt": "def binarySearch(arr, left, right, x):\n mid = (left +"
|
||||
}'
|
||||
```
|
||||
|
||||
To use the GPU backend (triton) for a faster inference speed:
|
||||
```bash
|
||||
docker run \
|
||||
@ -65,6 +58,13 @@ docker run \
|
||||
```
|
||||
Note: To use GPUs, you need to install the [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html). We also recommend using NVIDIA drivers with CUDA version 11.8 or higher.
|
||||
|
||||
You can then query the server using `/v1/completions` endpoint:
|
||||
```bash
|
||||
curl -X POST http://localhost:5000/v1/completions -H 'Content-Type: application/json' --data '{
|
||||
"prompt": "def binarySearch(arr, left, right, x):\n mid = (left +"
|
||||
}'
|
||||
```
|
||||
|
||||
We also provides an interactive playground in admin panel [localhost:8501](http://localhost:8501)
|
||||
|
||||
![image](https://user-images.githubusercontent.com/388154/227792390-ec19e9b9-ebbb-4a94-99ca-8a142ffb5e46.png)
|
||||
|
Loading…
Reference in New Issue
Block a user