Skip to content

Llama server - Update doc for slot states #10053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions examples/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,16 @@ Example:
```

Possible values for `slot[i].state` are:
- `0`: SLOT_STATE_IDLE
- `1`: SLOT_STATE_PROCESSING
- `0`: SLOT_STATE_IDLE
The slot is idle and ready to use.
- `1`: SLOT_STATE_PROCESSING_PROMPT
The slot is processing the input prompt tokens.
- `2`: SLOT_STATE_DONE_PROMPT
The slot has finished processing the input prompt. For embedding and rerank tasks the slot will be released soon, otherwise the slot will be used for generation.
- `3`: SLOT_STATE_GENERATING
The slot is generating output tokens.

[State diagram](https://github.com/ggerganov/llama.cpp/pull/9283)

### GET `/metrics`: Prometheus compatible metrics exporter

Expand Down