Skip to content

Commit 6e81b48

Browse files
committed
Lint the code
Signed-off-by: Lu Fang <lufang@fb.com>
1 parent 0194b95 commit 6e81b48

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

benchmarks/kernels/benchmark_moe.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,8 @@ def tune(
448448
if visible_device != f"{self.device_id}":
449449
need_device_guard = True
450450

451-
with torch.cuda.device(self.device_id) if need_device_guard else nullcontext():
451+
with torch.cuda.device(
452+
self.device_id) if need_device_guard else nullcontext():
452453
for config in tqdm(search_space):
453454
try:
454455
kernel_time = benchmark_config(
@@ -587,8 +588,7 @@ def main(args: argparse.Namespace):
587588
# Ray will set ROCR_VISIBLE_DEVICES for device visibility
588589
logger.warning(
589590
"Ray uses ROCR_VISIBLE_DEVICES to control device accessibility."
590-
"Replacing HIP_VISIBLE_DEVICES with ROCR_VISIBLE_DEVICES."
591-
)
591+
"Replacing HIP_VISIBLE_DEVICES with ROCR_VISIBLE_DEVICES.")
592592
val = os.environ["HIP_VISIBLE_DEVICES"]
593593
os.environ["ROCR_VISIBLE_DEVICES"] = val
594594
del os.environ["HIP_VISIBLE_DEVICES"]

vllm/platforms/rocm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@
6161
_ROCM_DEVICE_ID_NAME_MAP: Dict[str, str] = {
6262
"0x74a0": "AMD_Instinct_MI300A",
6363
"0x74a1": "AMD_Instinct_MI300X",
64-
"0x74b5": "AMD_Instinct_MI300X", # MI300X VF
64+
"0x74b5": "AMD_Instinct_MI300X", # MI300X VF
6565
"0x74a5": "AMD_Instinct_MI325X",
66-
"0x74b9": "AMD_Instinct_MI325X", # MI325X VF
66+
"0x74b9": "AMD_Instinct_MI325X", # MI325X VF
6767
"0x74a9": "AMD_Instinct_MI300X_HF",
6868
"0x74bd": "AMD_Instinct_MI300X_HF",
6969
}

0 commit comments

Comments
 (0)