Repository navigation
fix(router): skip the evict-and-retry when no other model is loaded - #3894
bernardogv wants to merge 1 commit into
Conversation
The failed server is never in loaded_servers_, so with the list empty the eviction frees nothing and the retry repeats the same launch. When a model does not fit, that is a second OOM kill. Tests cover both sides: no retry with nothing loaded, one retry when another model is loaded.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Priority: ➖ Normal Change: Bug fix Merge Risk: ⚪ Minimal · up to
|
Spec Driven Development
This PR:
Summary
Router::load_model: skip the nuclear evict-and-retry whenloaded_servers_is empty (the failed server is never in it)docs/test_failed_load_with_nothing_loaded_is_not_retried,test_failed_load_with_another_model_loaded_is_retried(mockllama-servergainsfail_startup/fail_startup_arg)Scope
Testing
Testing details:
test/test_gpu_hang_retry.pyrouter.cppreverted tomainAssertionError: 2 != 1 : Expected one backend launch, got 2 (retried)AssertionError: 2 != 3 : Expected first launch + failed load + one retry, got 2# ubuntu:26.04 container cmake --preset default -DBUILD_TESTING=ON cmake --build --preset default --target lemond lemonade python test/test_gpu_hang_retry.py --cli-binary build/lemonadeDocumentation
Breaking Changes