Unverified Commit 9e037c82 authored by Lianmin Zheng's avatar Lianmin Zheng Committed by GitHub
Browse files

Update README.md

parent 9076386d
......@@ -218,6 +218,10 @@ for out in state.text_iter():
print(out, end="", flush=True)
```
### Tips and Implementation Details
- The `choices` argument in `sgl.gen` is implemented by computing the normalized log probabilities of all choices and selecting the one with the highest probability.
- The `regex` argument in `sgl.gen` is implemented through autoregressive decoding with logit bias masking, according to the constraints set by the regex.
## Backend: SGLang Runtime (SRT)
The SGLang Runtime (SRT) is designed to work best with the SGLang frontend.
However, it can also be used as a standalone API server.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment