Stop Ray Serve from overwriting LD_LIBRARY_PATH?

1. Severity of the issue: High

2. Environment:

  • Ray version: 2.48.0
  • Python version: 3.12.10
  • OS: Red Hat Enterprise Linux 8.8
  • Cloud/Infrastructure: HPC Environment (no root)
  • Other libs/tools (if relevant):

3. What happened vs. what you expected:

  • Expected: I would like Ray to use my HPC environment’s custom LD_LIBRARY_PATH which is necessary for NCCL to work effectively
  • Actual: Ray Serve Overwrites this path

(RayWorkerWrapper pid=2590367, ip=172.23.1.76) WARNING 08-18 09:46:46 [init.py:949] Overwriting environment variable LD_LIBRARY_PATH from '…

But could you elaborate more on your setup, what are the steps to reproduce this?