fix(omni): Preserve caller-provided runtime device mapping (e.g. "0,1")#9034
Conversation
Signed-off-by: Thanaji Rao Thakkalapelli <thanaji.rao.thakkalapelli@intel.com>
|
👋 Hi tthakkal! Thank you for contributing to ai-dynamo/dynamo. Just a reminder: The 🚀 |
WalkthroughModified the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/ok to test c903a67 |
|
/ok to test db072f7 |
Overview:
Preserve caller-provided runtime device mapping (e.g. "0,1,2,3")
so tensor-parallel workers can initialize on all visible devices.
Fallback to "0" only when devices are not specified.
Details:
Modified the _stage_config_to_dict function to conditionally set the "devices" field to "0" only when absent, instead of forcibly overwriting any preconfigured runtime device selection.
Where should the reviewer start?
components/src/dynamo/vllm/omni/stage_worker.py
Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit
Bug Fixes