Skip to content

Commit 039fe09

Browse files
authored
fix
1 parent 56e5c65 commit 039fe09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightllm/models/qwen2_vl/qwen2_visual.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def __init__(
204204
)
205205

206206
head_dim = self.embed_dim // self.num_heads
207-
self.rotary_pos_emb = VisionRotaryEmbedding(head_dim // 2).to("cuda", non_blocking=True)
207+
self.rotary_pos_emb = VisionRotaryEmbedding(head_dim // 2).cuda()
208208

209209
self.blocks = nn.ModuleList(
210210
[

0 commit comments

Comments
 (0)