[Doc]: update vllm serve param and base64 data truncation (#718)
Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com> Signed-off-by: Hongsheng Liu <liuhongsheng4@huawei.com> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com> Co-authored-by: WeiQing Chen <40507679+david6666666@users.noreply.github.com>
This commit is contained in:
2 files changed
+8
-4
No files matched your search
@@ -12,6 +12,8 @@ This example demonstrates how to deploy Qwen-Image model for online image genera
|
|||||||
```bash
|
```bash
|
||||||
vllm serve Qwen/Qwen-Image --omni --port 8091
|
vllm serve Qwen/Qwen-Image --omni --port 8091
|
||||||
```
|
```
|
||||||
|
!!! note
|
||||||
|
If you encounter Out-of-Memory (OOM) issues or have limited GPU memory, you can enable VAE slicing and tiling to reduce memory usage, --vae-use-slicing --vae-use-tiling
|
||||||
|
|
||||||
### Start with Parameters
|
### Start with Parameters
|
||||||
|
|
||||||
@@ -43,7 +45,7 @@ curl -s http://localhost:8091/v1/chat/completions \
|
|||||||
"true_cfg_scale": 4.0,
|
"true_cfg_scale": 4.0,
|
||||||
"seed": 42
|
"seed": 42
|
||||||
}
|
}
|
||||||
}' | jq -r '.choices[0].message.content[0].image_url.url' | cut -d',' -f2 | base64 -d > output.png
|
}' | jq -r '.choices[0].message.content[0].image_url.url' | cut -d',' -f2- | base64 -d > output.png
|
||||||
```
|
```
|
||||||
|
|
||||||
### Method 2: Using Python Client
|
### Method 2: Using Python Client
|
||||||
@@ -146,7 +148,7 @@ Use `extra_body` to pass generation parameters:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Extract base64 from response and decode to image
|
# Extract base64 from response and decode to image
|
||||||
cat response.json | jq -r '.choices[0].message.content[0].image_url.url' | cut -d',' -f2 | base64 -d > output.png
|
cat response.json | jq -r '.choices[0].message.content[0].image_url.url' | cut -d',' -f2- | base64 -d > output.png
|
||||||
```
|
```
|
||||||
|
|
||||||
## File Description
|
## File Description
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ This example demonstrates how to deploy Qwen-Image model for online image genera
|
|||||||
```bash
|
```bash
|
||||||
vllm serve Qwen/Qwen-Image --omni --port 8091
|
vllm serve Qwen/Qwen-Image --omni --port 8091
|
||||||
```
|
```
|
||||||
|
!!! note
|
||||||
|
If you encounter Out-of-Memory (OOM) issues or have limited GPU memory, you can enable VAE slicing and tiling to reduce memory usage, --vae-use-slicing --vae-use-tiling
|
||||||
|
|
||||||
### Start with Parameters
|
### Start with Parameters
|
||||||
|
|
||||||
@@ -40,7 +42,7 @@ curl -s http://localhost:8091/v1/chat/completions \
|
|||||||
"true_cfg_scale": 4.0,
|
"true_cfg_scale": 4.0,
|
||||||
"seed": 42
|
"seed": 42
|
||||||
}
|
}
|
||||||
}' | jq -r '.choices[0].message.content[0].image_url.url' | cut -d',' -f2 | base64 -d > output.png
|
}' | jq -r '.choices[0].message.content[0].image_url.url' | cut -d',' -f2- | base64 -d > output.png
|
||||||
```
|
```
|
||||||
|
|
||||||
### Method 2: Using Python Client
|
### Method 2: Using Python Client
|
||||||
@@ -143,7 +145,7 @@ Use `extra_body` to pass generation parameters:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Extract base64 from response and decode to image
|
# Extract base64 from response and decode to image
|
||||||
cat response.json | jq -r '.choices[0].message.content[0].image_url.url' | cut -d',' -f2 | base64 -d > output.png
|
cat response.json | jq -r '.choices[0].message.content[0].image_url.url' | cut -d',' -f2- | base64 -d > output.png
|
||||||
```
|
```
|
||||||
|
|
||||||
## File Description
|
## File Description
|
||||||
|
|||||||
Reference in new issue
Block a user