Skip to content

Commit 5c2d303

Browse files
committed
add comment
1 parent 759e749 commit 5c2d303

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vllm/model_executor/models/nvlm_d.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def _get_position_embedding(self, H: int, W: int) -> torch.Tensor:
6161
return self.position_embedding
6262

6363

64+
# Adpted from vllm.model_executor.models.intern_vit.InternParallelAttention
6465
class NVLMParallelAttention(nn.Module):
6566
"""Multi-headed attention from 'Attention Is All You Need' paper"""
6667

@@ -148,6 +149,7 @@ def forward(self, x):
148149
return x
149150

150151

152+
# Adpted from vllm.model_executor.models.intern_vit.InternSdpalAttention
151153
class NVLMSdpaAttention(nn.Module):
152154
"""Multi-headed attention from 'Attention Is All You Need' paper"""
153155

0 commit comments

Comments
 (0)