adapt(iluvatar): BI-V150 backend adaptation for vLLM 0.24.0 - #310
Open
physics31415926 wants to merge 11 commits into
Open
adapt(iluvatar): BI-V150 backend adaptation for vLLM 0.24.0#310physics31415926 wants to merge 11 commits into
physics31415926 wants to merge 11 commits into
Conversation
…estore TRITON_ATTN backend
…breaks triton backend selection
…e (early enough for all workers)
physics31415926
force-pushed
the
fix/iluvatar-triton-stub
branch
from
July 27, 2026 02:31
1232ee2 to
f331ac3
Compare
physics31415926
marked this pull request as ready for review
July 28, 2026 02:26
…6.x; add Worker-level inductor patch
ceci3
reviewed
Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Category
Vendor Backend Adaptation
PR Type
Bug Fix / Compatibility
Description
Adapt vllm-plugin-FL for Iluvatar BI-V150 GPUs with vLLM 0.24.0. The Iluvatar corex triton compiler (3.2.x) has several incompatibilities with vllm's triton kernels that prevent inference from running. This PR adds three targeted runtime patches applied at module import time.
Environment
dev-community-acr-registry.cn-shanghai.cr.aliyuncs.com/dev-community/dev-community:vllm-py3.12-corex.4.5.0-ubuntu24.04iluvatarbackend only)b10f1d474Changes
vllm_fl/dispatch/backends/vendor/iluvatar/iluvatar.pypatch_triton_language_for_iluvatar()tl.make_tensor_descriptorstub. vllm 0.24.0'striton_unified_attention.pyreferences this API inside@triton.jitfunctions; triton'sDependencyFinderwalks all code paths at JIT compile time and raisesAttributeErroreven whenUSE_TD=False.patch_triton_perf_model_for_iluvatar()triton.ops.matmul_perf_model.get_clock_rate_in_khz()with a fixed value (1500 MHz for BI-V150). The default implementation callsnvsmi/pynvmlwhich are unavailable on Iluvatar hardware, causing a crash during triton autotuning.patch_triton_chained_or_for_iluvatar()orexpressions (A or B or C→(A or B) or C) in vllm'striton_attention_helpers.py. Iluvatar triton 3.2.x raisesUnsupportedLanguageConstructfor chained operators inside@triton.jitfunctions. Patches the file in-place (idempotent, marker-guarded), clears__pycache__, and evicts the module fromsys.modules.get_device_uuid()All patch functions are invoked at module import time (module-level calls after function definitions), so both the main process and all TP Worker subprocesses receive the patches automatically.
vllm_fl/platform.pypre_register_and_update()patch_triton_chained_or_for_iluvatar()explicitly from the main process before Worker subprocesses are spawned, ensuring the vllm source file is patched on disk before any Worker imports it.Testing
Results
' John. I am a 25-year-old'' John. I am a 25-year-old'cudagraph_capture_sizes=[1,2,4,8,16,32]' John. I am a 25-year-old male. I have been experiencing a persistent cough for'cudagraph_capture_sizes=[1,2,4,8,16,32]' John. I am a 25-year-old male. I have been experiencing a persistent cough for'Related Issues
N/A
Checklist