Skip to content

Commit

Permalink
Fix for yapf
Browse files Browse the repository at this point in the history
  • Loading branch information
wenkaidu committed Jun 19, 2024
1 parent 77cc3fc commit 682c38e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions benchmarks/benchmark_latency.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def main(args: argparse.Namespace):
enable_chunked_prefill=args.enable_chunked_prefill,
download_dir=args.download_dir,
block_size=args.block_size,
disable_custom_all_reduce=args.disable_custom_all_reduce,
gpu_memory_utilization=args.gpu_memory_utilization)

sampling_params = SamplingParams(
Expand Down Expand Up @@ -221,6 +222,7 @@ def run_to_completion(profile_dir: Optional[str] = None):
type=str,
default=None,
help='Path to save the latency results in JSON format.')
parser.add_argument('--disable_custom_all_reduce', action='store_true')
parser.add_argument('--gpu-memory-utilization',
type=float,
default=0.9,
Expand Down
3 changes: 1 addition & 2 deletions vllm/distributed/device_communicators/custom_all_reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ def __init__(self,
logger.warning(
"Custom allreduce is disabled because your platform lacks "
"GPU P2P capability or P2P test failed. To silence this "
"warning, specify disable_custom_all_reduce=True explicitly."
)
"warning, specify disable_custom_all_reduce=True explicitly.")
return

self.disabled = False
Expand Down

0 comments on commit 682c38e

Please sign in to comment.