Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
50a53887
Commit
50a53887
authored
Jul 19, 2024
by
Ying Sheng
Browse files
Update docs
parent
11c8efff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
README.md
README.md
+1
-1
docs/sampling_params.md
docs/sampling_params.md
+2
-1
No files found.
README.md
View file @
50a53887
...
...
@@ -79,7 +79,7 @@ pip install -U --index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/
## Backend: SGLang Runtime (SRT)
The SGLang Runtime (SRT) is an efficient serving engine.
###
Launching a Server
###
Quick Start
Launch a server
```
python -m sglang.launch_server --model-path meta-llama/Meta-Llama-3-8B-Instruct --port 30000
...
...
docs/sampling_params.md
View file @
50a53887
...
...
@@ -121,6 +121,7 @@ Download an image
curl -o example_image.png -L https://github.com/sgl-project/sglang/blob/main/test/lang/example_image.png?raw=true
```
Send a request
```
python
import
requests
...
...
@@ -139,4 +140,4 @@ print(response.json())
```
The
`image_data`
can be a file name, a URL, or a base64 encoded string. See also
`python/sglang/srt/utils.py:load_image`
.
Streaming is supported in a similar manner as
[
above
](
#streaming
)
.
\ No newline at end of file
Streaming is supported in a similar manner as
[
above
](
#streaming
)
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment