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
5 changes: 4 additions & 1 deletion tensorrt_llm/_torch/autotuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,10 @@ def pure_profile(stream: torch.cuda.Stream, repeat: int):

disable_short_profile = os.environ.get(
"TLLM_AUTOTUNER_DISABLE_SHORT_PROFILE", "0") == "1"
if fewer_repeat_avg_time > short_profile_threshold_ms and not disable_short_profile:

# Disable this feature for merged tuning strategy to avoid potential hang due to asymmetric tuning.
if fewer_repeat_avg_time > short_profile_threshold_ms and not disable_short_profile \
and tuning_config.distributed_tuning_strategy != DistributedTuningStrategy.MERGE:
# directly use the few repeat estimated time to avoid redundant profiling
avg_time = fewer_repeat_avg_time
else:
Expand Down
Loading