-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[Bugfix] Merge MM embeddings by index instead of token IDs #16229
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
Changes from all commits
dfebf51
437dacd
bbe7096
57e9f03
d5c9555
e08deaa
302b2c5
6a1307f
3a4740a
68c54d8
6ddc91e
28cc8cb
c335908
cbb70ea
76f2925
b6e8775
fee0d27
f71a40b
3af1bdb
003800e
975569d
8d6b6c4
c001581
9e4512c
e002d44
1934f25
573cb4b
fa5e688
0799fdb
7f58edc
1e9ec64
439b264
a9f7e84
29e0ad5
9a6768e
f6e7e62
74a4d5f
6d3a733
d30a4a6
ad27e91
028aedf
38058d1
a71a832
3d4495a
7d8f58d
e33a195
ead536d
6db35c3
7dc2675
d13fca8
beb9df0
8a6fb1b
2eefc2d
b79860e
7769ec1
aa67033
3656239
9260170
2ac91b6
3033297
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 |
---|---|---|
|
@@ -509,9 +509,14 @@ def _task_to_convert(task: TaskOption) -> ConvertType: | |
else: # task == "auto" | ||
pass | ||
else: | ||
debug_info = { | ||
"architectures": architectures, | ||
"is_generative_model": is_generative_model, | ||
"is_pooling_model": is_pooling_model, | ||
} | ||
raise AssertionError("The model should be a generative or " | ||
"pooling model when task is set to " | ||
f"{self.task!r}.") | ||
f"{self.task!r}. Found: {debug_info}") | ||
Comment on lines
+512
to
+519
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems unrelated? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It helped me find out which models failed to implement |
||
|
||
self.runner = runner | ||
self.convert = convert | ||
|
Uh oh!
There was an error while loading. Please reload this page.