[fix] baseline7 pyc清除+greedy n>1+fanout宽松+image重试+max_num_seqs env覆盖

This commit is contained in:
root
2026-08-25 02:36:29 +00:00
parent 06d56f6ff8
commit 00654476d3
5 changed files with 167 additions and 9 deletions

View File

@@ -59,8 +59,19 @@ async def async_fetch_image(image_url: str,
By default, the image is converted into RGB format.
"""
if image_url.startswith('http'):
image_raw = await global_http_connection.async_get_bytes(
image_url, timeout=VLLM_IMAGE_FETCH_TIMEOUT)
# [BI100] Retry with increasing timeout for container network issues
_last_exc = None
for _attempt in range(3):
try:
_timeout = VLLM_IMAGE_FETCH_TIMEOUT * (_attempt + 1)
image_raw = await global_http_connection.async_get_bytes(
image_url, timeout=_timeout)
_last_exc = None
break
except Exception as _e:
_last_exc = _e
if _last_exc is not None:
raise _last_exc
image = _load_image_from_bytes(image_raw)
elif image_url.startswith('data:image'):