Skip to content

Commit cde6f3a

Browse files
author
Varun Sundar Rabindranath
committed
formatting
Signed-off-by: Varun Sundar Rabindranath <varun@neuralmagic.com>
1 parent 1168eda commit cde6f3a

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

benchmarks/kernels/benchmark_lora.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
from pathlib import Path
1212
from typing import Any, Callable, Optional
1313

14+
import torch
1415
import torch.utils.benchmark as TBenchmark
1516
from torch.utils.benchmark import Measurement as TMeasurement
1617
from utils import ArgPool, Bench, CudaGraphBenchParams
1718
from weight_shapes import WEIGHT_SHAPES
1819

19-
import torch
2020
from vllm.lora.ops.triton_ops import LoRAKernelMeta, lora_expand, lora_shrink
2121
from vllm.lora.ops.triton_ops.utils import _LORA_A_PTR_DICT, _LORA_B_PTR_DICT
2222
from vllm.utils import FlexibleArgumentParser

tests/lora/test_punica_ops.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import pytest
55

66
import torch
7+
78
import vllm.lora.ops.torch_ops as torch_ops
89
import vllm.lora.ops.triton_ops as triton_ops
910
from vllm.lora.ops.triton_ops import LoRAKernelMeta

vllm/lora/ops/triton_ops/lora_expand.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
from typing import List
1010

11+
import torch
1112
import triton
1213
import triton.language as tl
1314

14-
import torch
1515
from vllm.lora.ops.triton_ops.kernel_utils import do_expand_kernel
1616
from vllm.lora.ops.triton_ops.utils import _get_lora_b_ptr
1717
from vllm.utils import direct_register_custom_op

vllm/lora/ops/triton_ops/lora_shrink.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
from typing import List
1010

11+
import torch
1112
import triton
1213
import triton.language as tl
1314

14-
import torch
1515
from vllm.lora.ops.triton_ops.kernel_utils import do_shrink_kernel
1616
from vllm.lora.ops.triton_ops.utils import _get_lora_a_ptr
1717
from vllm.utils import direct_register_custom_op

vllm/lora/punica_wrapper/punica_gpu.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from typing import TYPE_CHECKING, List, Optional, Tuple, Union, final
1010

1111
import torch
12+
1213
from vllm.lora.layers import LoRAMapping
1314
from vllm.triton_utils import HAS_TRITON
1415

0 commit comments

Comments
 (0)