Skip to content

Commit

Permalink
set CUDA_DEVICE_MAX_CONNECTIONS=1 (#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy authored Aug 15, 2024
1 parent 93d4e35 commit 0cb099e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/sglang/srt/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ def _set_envs_and_config(server_args: ServerArgs):
os.environ["NCCL_CUMEM_ENABLE"] = "0"
os.environ["NCCL_NVLS_ENABLE"] = "0"
os.environ["TORCH_NCCL_AVOID_RECORD_STREAMS"] = "1"
os.environ["CUDA_DEVICE_MAX_CONNECTIONS"] = "1"

# Set ulimit
set_ulimit()
Expand Down

0 comments on commit 0cb099e

Please sign in to comment.