Slime服务器永久锁死问题修复
(5/8) Permanent server lockout: if a client disconnects while megatron_server reloads weights from disk, it refuses all inference and future updates until resta
Hao AI Lab修复Slime的megatron_server永久锁死问题:客户端在权重重载时断开,会导致后续推理返回HTTP 503、更新返回409,但/healthz仍返回200。复现中2次均锁死;将重载移至独立后台任务后,断连不再中断重载,两次测试均恢复HTTP 200推理。
正文
(5/8) Permanent server lockout: if a client disconnects while megatron_server reloads weights from disk, it refuses all inference and future updates until restarted, while /healthz still passes.
During a reload, megatron_server sets a busy flag and returns HTTP 503 for inference. However, if the client disconnects early, the server cancels the request and skips normal error handling. Cleanup then crashes before clearing the busy flag or waking waiting callers. From then on, /generate returns 503 and new updates return 409, while /healthz still returns 200.
Reproduction: A single client timeout during a weight reload left the server locked out in 2 out of 2 runs, even a minute later.
Our fix: We run reloads in a background task separate from the client connection. Even if a client disconnects, reloads finish, update /info, and resume HTTP 200 inference in both runs.
PR: https://t.co/6xCTfQzc5a
AI 热点