[None][fix] Fix GIL management for guided decoding host func#13251
Conversation
|
/bot run --disable-fail-fast |
|
/bot run --disable-fail-fast |
📝 WalkthroughWalkthroughRemoved explicit GIL acquisition and release guards from nanobind hostfunc bindings. The functions no longer acquire the GIL during construction and scheduling phases, while GIL acquisition remains in the trampoline during Python callback execution. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
PR_Github #44544 [ run ] triggered by Bot. Commit: |
|
PR_Github #44545 [ run ] triggered by Bot. Commit: |
|
PR_Github #44545 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #44756 [ run ] triggered by Bot. Commit: |
|
PR_Github #44756 [ run ] completed with state
|
e2dcbaf to
2e655d8
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #44832 [ run ] triggered by Bot. Commit: |
|
/bot run |
|
PR_Github #44950 [ run ] triggered by Bot. Commit: |
2e655d8 to
328e8c0
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #46167 [ run ] triggered by Bot. Commit: |
|
PR_Github #46167 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #46291 [ run ] triggered by Bot. Commit: |
|
PR_Github #46291 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #46404 [ run ] triggered by Bot. Commit: |
|
PR_Github #46404 [ run ] completed with state
|
Signed-off-by: Iman Tabrizian <[email protected]>
328e8c0 to
cd1d9c5
Compare
|
/bot run --disable-fail-fast |
|
PR_Github #48015 [ run ] triggered by Bot. Commit: |
|
PR_Github #48015 [ run ] completed with state |
…13251) Signed-off-by: Iman Tabrizian <[email protected]>
Description
When the nano bind function passes Python objects by value we need to hold GIL for the entire duration of the function body since the Python objects will be destructed after the function completes.
Test Coverage
tests/integration/defs/accuracy/test_disaggregated_serving.py::TestLlama3_1_8BInstruct::test_guided_decoding_with_eagle3- exercises the guided decoding + eagle3 + disagg path that invokeslaunch_hostfunc.PR Checklist
Summary by CodeRabbit