You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an example of doing LLM inference with [Ray](https://docs.ray.io/en/latest/index.html) and [Ray Serve](https://docs.ray.io/en/latest/serve/index.html).
2
+
3
+
First, install the requirements:
4
+
5
+
```bash
6
+
$ pip install -r requirements.txt
7
+
```
8
+
9
+
Deploy a GGUF model to Ray Serve with the following command:
10
+
11
+
```bash
12
+
$ serve run llm:llm_builder model_path='../models/mistral-7b-instruct-v0.2.Q4_K_M.gguf'
13
+
```
14
+
15
+
This will start an API endpoint at `http://localhost:8000/`. You can query the model like this:
16
+
17
+
```bash
18
+
$ curl -k -d '{"prompt": "tell me a joke", "max_tokens": 128}' -X POST http://localhost:8000
0 commit comments