Replies: 2 comments 1 reply
-
|
Nice catch on the doc note about batch shape changing kernels - that's a crucial detail. I've seen similar issues with batched requests in our production environment at Reallytics.ai, where we're processing 11M+ images. The thing is, even with identical |
Beta Was this translation helpful? Give feedback.
-
|
@rehan243 Thank you for your reply. The issue with the generated images goes far beyond minor numerical differences — the outputs no longer match the prompt description at all, suffering from either missing main subjects or incorrectly rendered characters. In my latest update at #28502 (comment), I conducted further tests. While keeping The shell script I use to start the service is shown below: #!/bin/bash
sglang serve \
--model-path /root/autodl-fs/data/z-image_turbo/Tongyi-MAI/Z-Image-Turbo \
--host 0.0.0.0 \
--port 30000 \
--batching-mode dynamic \
--batching-max-size 5 \
--batching-delay-ms 50 \
--enable-batching-metrics \
2>&1 | tee sglang_best.logAfter starting the service, I send requests to it via I currently do not know how to resolve this issue, and would sincerely appreciate any help from the community. Thank you again! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, I would like to ask for your assistance regarding an unusual issue I have encountered.
When I launch the online inference service with sglang and configure
--batching-max-sizeand--batching-mode dynamic, there is a severe discrepancy between images generated by singleton requests and batched requests. I have cross-checked the parameters for both request types and confirmed thatseed,num_inference_steps,sizeand all other relevant generation parameters are fully consistent.I referred to the documentation, which notes:
My understanding of this statement is that singleton and batched generation should only produce negligible floating-point differences at the pixel level, while the visual content and composition of the generated images should remain effectively identical.
I have researched extensively to troubleshoot this issue but have not found a solution. I have already conducted thorough testing and shared the full test details in the following issue comment:
#28502 (comment)
I would greatly appreciate any guidance or support from the community. Thank you all very much in advance!
Beta Was this translation helpful? Give feedback.
All reactions