Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import logging
import os
from contextlib import contextmanager
from functools import partial
from typing import Any, List, Optional, Union

import torch
Expand Down Expand Up @@ -495,7 +496,11 @@ def dispatch_custom_allreduce():
)

logger.info("[AR] Using AiterCustomAllreduce (AMD default)")
return AiterCustomAllreduce
tms_cudagraph = envs.SGLANG_MEMORY_SAVER_CUDA_GRAPH.get()
return partial(
AiterCustomAllreduce,
enable_register_for_capturing=not tms_cudagraph,
)
except ImportError as e:
logger.warning(
"[AR] Aiter custom all-reduce not available; "
Expand Down
Loading