Skip to content

Commit 1d34eb1

Browse files
authored
[CI] Bug: Fix triton import issue (#29202)
Signed-off-by: yewentao256 <[email protected]>
1 parent 9a3101b commit 1d34eb1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

vllm/v1/worker/gpu/block_table.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
from collections.abc import Iterable
44

55
import torch
6-
import triton
7-
import triton.language as tl
86

97
from vllm.attention.backends.utils import PAD_SLOT_ID
8+
from vllm.triton_utils import tl, triton
109
from vllm.utils.math_utils import cdiv
1110
from vllm.v1.utils import CpuGpuBuffer
1211

vllm/v1/worker/gpu/input_batch.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
import numba.types as types
88
import numpy as np
99
import torch
10-
import triton
11-
import triton.language as tl
1210

11+
from vllm.triton_utils import tl, triton
1312
from vllm.utils import random_uuid
1413
from vllm.utils.math_utils import cdiv
1514
from vllm.v1.utils import CpuGpuBuffer

0 commit comments

Comments
 (0)