We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56e5c65 commit 039fe09Copy full SHA for 039fe09
lightllm/models/qwen2_vl/qwen2_visual.py
@@ -204,7 +204,7 @@ def __init__(
204
)
205
206
head_dim = self.embed_dim // self.num_heads
207
- self.rotary_pos_emb = VisionRotaryEmbedding(head_dim // 2).to("cuda", non_blocking=True)
+ self.rotary_pos_emb = VisionRotaryEmbedding(head_dim // 2).cuda()
208
209
self.blocks = nn.ModuleList(
210
[
0 commit comments