Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/sglang/srt/layers/attention/vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ def forward(
Returns:
[b * s, h, head_size]
"""
if self.flatten_batch:
assert bsz == 1, "flatten_batch is True, bsz must be 1"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. It is beneficial for the addition of a new model.


s = q.shape[0] // bsz

Expand Down
Loading