-
Notifications
You must be signed in to change notification settings - Fork 933
[BugFix][Qwen3-Omni]Fixed the issue of incorrect answers for single words. #2239
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -376,9 +376,8 @@ async def benchmark( | |
| limit_per_host=max_concurrency or 0, | ||
| ttl_dns_cache=300, | ||
| use_dns_cache=True, | ||
| keepalive_timeout=60, | ||
| enable_cleanup_closed=True, | ||
| force_close=False, | ||
| force_close=True, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And why do we need this change?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To avoid server connect errors during high-concurrency benchmark runs
Comment on lines
-379
to
+380
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When a benchmark sends a large number of concurrent requests, the connection can be reused. Why delete it?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reusing connections may result in a server disconnect error. |
||
| ssl=ssl_setting, | ||
| ) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In
benchmark()this change setsaiohttp.TCPConnector(..., force_close=True), which closes every connection after each request. That disables connection reuse while this block is explicitly configured to benchmark request throughput/latency and even comments that connections are reused, so HTTPS/TCP handshakes get added to nearly every request and the measured model-serving metrics become systematically inflated/noisy under load.Useful? React with 👍 / 👎.