-
Notifications
You must be signed in to change notification settings - Fork 31.9k
🔴 VLM: compile compatibility #35724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔴 VLM: compile compatibility #35724
Changes from 13 commits
5d6c5e1
b500dcf
b56b40c
040a83c
4c8e6ab
b72d845
70a0510
17b0c8f
8ddee32
370c9d2
91d268d
fcc6454
41b50d8
2b602ba
4a3ff89
4e9cd52
1776f0f
e906616
2232f62
f84242e
e089e34
210bb5f
7271490
496fc05
45ad329
7a79bac
2f219eb
0cf1cfe
eccc5fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -187,8 +187,8 @@ def _attn(self, query, key, value, attention_mask=None, head_mask=None): | |
| batch_size, num_attention_heads, query_length, attn_head_size = query.size() | ||
| key_length = key.size(-2) | ||
|
|
||
| query = query.view(batch_size * num_attention_heads, query_length, attn_head_size) | ||
| key = key.view(batch_size * num_attention_heads, key_length, attn_head_size) | ||
| query = query.reshape(batch_size * num_attention_heads, query_length, attn_head_size) | ||
| key = key.reshape(batch_size * num_attention_heads, key_length, attn_head_size) | ||
|
||
|
|
||
| # [batch_size * num_heads, q_length, kv_length] | ||
| attn_scores = torch.zeros( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.