-
Notifications
You must be signed in to change notification settings - Fork 12.1k
llama: Attempt to add ModernBert #14014
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
Open
huydt84
wants to merge
27
commits into
ggml-org:master
Choose a base branch
from
huydt84:huydt/mb
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+331
−11
Open
Changes from 5 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
045b1ac
llama: attempt to add modern-bert
huydt-bti 95f49d9
Merge branch 'master' into huydt/mb
huydt-bti eab776e
re-format and delete unused implementations
huydt-bti 7143840
overload set_swa_pattern for modern bert
huydt-bti 6aa1335
modern-bert doesn't have bias
huydt-bti 9e1179a
delete unnecessary files
huydt-bti fa23480
add build_attn_inp_no_cache_iswa with symmetric swa
huydt-bti a72cb3b
add modern-bert to llama_model::create_memory
huydt-bti adea1c9
fix lint
huydt-bti cfebb6e
access n_swa via hparams
huydt-bti 31e87e4
revert changes in convert script
huydt-bti 1004327
add set_vocab to modernbert convert class
huydt-bti 81f4797
Merge branch 'master' into huydt/mb
huydt-bti 03693fa
parmas-related fix
huydt-bti 2f5a72f
handle mask token in modern-bert bpe
huydt-bti 68f399e
add modern-bert to pre_type check
huydt-bti ad2a19a
change log warning when no mask token of modern-bert
huydt-bti c6b84e2
fix modern-bert swa logic
huydt-bti 6751e69
fix modern-bert class register
huydt-bti 8b794f9
Merge branch 'master' into huydt/mb
huydt-bti 4d6b804
handle when no cls_b and cls_out_b
huydt-bti 5821d6c
fix unnecessary operations
huydt-bti 820cee1
revert incorrect change
huydt-bti 4fc4bf6
Merge branch 'master' into huydt/mb
huydt-bti 16b73d4
use build_ffn with LLM_FFN_GEGLU
huydt-bti 333eeed
fix for use of models without n_swa
huydt-bti 454d7b7
fix review comment
huydt-bti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
ied 4 ½ months | ||
__ggml_vocab_test__ | ||
Äpfel | ||
__ggml_vocab_test__ | ||
|
||
__ggml_vocab_test__ | ||
|
||
__ggml_vocab_test__ | ||
|
||
__ggml_vocab_test__ | ||
|
||
__ggml_vocab_test__ | ||
|
||
__ggml_vocab_test__ | ||
|
||
|
||
__ggml_vocab_test__ | ||
|
||
|
||
|
||
__ggml_vocab_test__ | ||
|
||
|
||
|
||
|
||
__ggml_vocab_test__ | ||
|
||
|
||
__ggml_vocab_test__ | ||
Hello world | ||
__ggml_vocab_test__ | ||
Hello world | ||
__ggml_vocab_test__ | ||
Hello World | ||
__ggml_vocab_test__ | ||
Hello World | ||
__ggml_vocab_test__ | ||
Hello World! | ||
__ggml_vocab_test__ | ||
Hello, world! | ||
__ggml_vocab_test__ | ||
Hello, world! | ||
__ggml_vocab_test__ | ||
this is 🦙.cpp | ||
__ggml_vocab_test__ | ||
w048 7tuijk dsdfhu | ||
__ggml_vocab_test__ | ||
нещо на Български | ||
__ggml_vocab_test__ | ||
កាន់តែពិសេសអាចខលចេញ | ||
__ggml_vocab_test__ | ||
🚀 (normal) 😶🌫️ (multiple emojis concatenated) ✅ (only emoji that has its own token) | ||
__ggml_vocab_test__ | ||
Hello | ||
__ggml_vocab_test__ | ||
Hello | ||
__ggml_vocab_test__ | ||
Hello | ||
__ggml_vocab_test__ | ||
Hello | ||
__ggml_vocab_test__ | ||
Hello | ||
__ggml_vocab_test__ | ||
Hello | ||
Hello | ||
__ggml_vocab_test__ | ||
( | ||
__ggml_vocab_test__ | ||
|
||
= | ||
__ggml_vocab_test__ | ||
' era | ||
__ggml_vocab_test__ | ||
Hello, y'all! How are you 😁 ?我想在apple工作1314151天~ | ||
__ggml_vocab_test__ | ||
!!!!!! | ||
__ggml_vocab_test__ | ||
3 | ||
__ggml_vocab_test__ | ||
33 | ||
__ggml_vocab_test__ | ||
333 | ||
__ggml_vocab_test__ | ||
3333 | ||
__ggml_vocab_test__ | ||
33333 | ||
__ggml_vocab_test__ | ||
333333 | ||
__ggml_vocab_test__ | ||
3333333 | ||
__ggml_vocab_test__ | ||
33333333 | ||
__ggml_vocab_test__ | ||
333333333 | ||
__ggml_vocab_test__ | ||
Cửa Việt | ||
__ggml_vocab_test__ | ||
discards | ||
__ggml_vocab_test__ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
🚀 (normal) 😶🌫️ (multiple emojis concatenated) ✅ 🦙🦙 3 33 333 3333 33333 333333 3333333 33333333 3.3 3..3 3...3 កាន់តែពិសេសអាច😁 ?我想在apple工作1314151天~ ------======= нещо на Български ''''''```````""""......!!!!!!?????? I've been 'told he's there, 'RE you sure? 'M not sure I'll make it, 'D you like some tea? We'Ve a'lL | ||
__ggml_vocab_test__ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
728 577 24142 2607 | ||
37515 18569 293 | ||
|
||
209 | ||
50276 | ||
50275 | ||
186 | ||
187 | ||
535 | ||
2756 | ||
186 187 | ||
12092 1533 | ||
24387 1533 | ||
12092 3645 | ||
24387 3645 | ||
24387 3645 2 | ||
12092 13 1533 2 | ||
24387 13 1533 2 | ||
436 310 22692 101 236 15 14161 | ||
88 27244 818 16853 16392 20505 4989 11917 | ||
32520 11514 1068 8713 38177 13396 3415 9925 12559 10453 1389 | ||
18081 211 18081 116 18081 230 39936 222 18081 226 39936 213 18081 233 18081 117 18081 242 39936 212 18081 242 18081 97 18081 116 18081 216 18081 212 18081 238 18081 216 39936 212 18081 220 | ||
14931 237 211 313 6320 10 49042 116 325 224 14931 223 106 171 118 226 313 34263 802 13511 261 32147 456 10 3384 239 216 313 7483 802 80 8020 326 556 697 1211 10669 10 | ||
12092 | ||
24387 | ||
50276 12092 | ||
50275 12092 | ||
50274 12092 | ||
50274 12092 187 50274 12092 | ||
313 | ||
187 426 | ||
8 8685 | ||
12092 13 340 8 455 2 1359 403 368 49042 212 3736 15367 41197 13610 19934 41869 21275 1012 1047 18795 40120 20422 241 | ||
18963 4672 | ||
20 | ||
1610 | ||
20084 | ||
26409 | ||
1610 20084 | ||
26409 1610 | ||
26409 20084 | ||
26409 26409 | ||
26409 1610 20084 | ||
36 6829 244 66 17721 35177 85 | ||
1262 2196 | ||
586 1744 33525 186 209 623 28910 187 50276 187 50275 187 50274 187 50273 187 14931 237 211 313 6320 10 49042 116 325 224 14931 223 106 171 118 226 313 34263 802 13511 261 32147 456 10 3384 239 216 22692 101 236 14931 101 236 495 5922 30057 495 20084 495 26409 30057 20084 495 26409 1610 495 26409 20084 495 15 20 495 537 20 495 1051 20 209 18081 211 18081 116 18081 230 39936 222 18081 226 39936 213 18081 233 18081 117 18081 242 39936 212 18081 242 18081 97 18081 116 18081 216 14931 235 212 3736 15367 41197 13610 19934 41869 21275 1012 1047 18795 40120 20422 241 16081 6877 12880 11514 1068 8713 38177 13396 3415 9925 12559 10453 1389 42011 35033 34842 11202 9739 9739 33021 18963 4672 25561 8220 309 1849 644 686 42618 344 434 627 13 686 1848 368 2119 32 686 46 417 2119 309 1833 1056 352 13 686 37 368 751 690 10331 32 844 8 31516 247 8 77 45 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.