[fix] baseline4 不是 CUDA 不可用,是 .so 在非主进程里被 dlopen 时段错误。需要用进程级别的判断

This commit is contained in:
root
2026-08-17 14:17:03 +00:00
parent 053dc036b8
commit 5b96a91156
2 changed files with 14 additions and 10 deletions

View File

@@ -2201,6 +2201,12 @@ class Qwen3_5ForCausalLM(nn.Module, HasInnerState, SupportsLoRA,
multimodal_config: Optional[MultiModalConfig] = None,
prefix: str = "",
) -> None:
# Apply ix_bridge operator patches on first model init (safe: GPU is ready)
try:
from vllm import ix_startup_patch
ix_startup_patch.apply()
except Exception:
pass
_bi100_model_trace("Qwen3_5ForCausalLM initialization begin")
super().__init__()
self.config = config