-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Add AfmoeForCausalLM support #16477
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
Merged
Merged
Add AfmoeForCausalLM support #16477
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3fd69c5
Add AFMOE model support
bartowski1182 93a2fb4
Update to vocab
bartowski1182 7c5d718
Add model sizing
bartowski1182 13aaafe
Undo Rope change for ARCEE model
bartowski1182 34dc2a3
Address review comments
bartowski1182 1b9558f
Update modeling code is_sliding -> use_rope, replace hard-coded logic
bartowski1182 e41a5bd
Fix AFMOE tokenizer
bartowski1182 e27c3f1
Update convert_hf_to_gguf.py
bartowski1182 684aead
Update convert_hf_to_gguf.py
bartowski1182 ddddf8d
Update AFMoE tokenizer class identification to be more unique
bartowski1182 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
Some comments aren't visible on the classic Files Changed page.
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
CISC marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
Binary file not shown.
bartowski1182 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
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__ |
bartowski1182 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
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 @@ | ||
| 1129 252 51 252 20861 3621 | ||
| 49116 25524 343 | ||
|
|
||
| 252 | ||
| 288 | ||
| 344 | ||
| 229 | ||
| 230 | ||
| 327 | ||
| 1866 | ||
| 4402 | ||
| 14795 1117 | ||
| 30197 1117 | ||
| 14795 3295 | ||
| 30197 3295 | ||
| 30197 3295 32 | ||
| 14795 43 1117 32 | ||
| 30197 43 1117 32 | ||
| 483 351 69865 279 45 11112 | ||
| 118 18799 252 54 115 4546 30869 25372 4191 13934 | ||
| 23835 183893 7432 30515 125974 185839 20324 | ||
| 124940 92255 273 160060 191869 44968 256 188211 21207 147 142156 195704 142156 21207 127 92255 259 21207 255 190792 21207 259 195704 21207 263 | ||
| 12479 387 10171 40 22860 146 18932 15540 136 10094 387 49707 77415 91293 40 70574 387 9266 56494 384 651 692 1204 9776 40 | ||
| 14795 | ||
| 30197 | ||
| 252 30197 | ||
| 288 30197 | ||
| 344 30197 | ||
| 344 30197 230 344 30197 | ||
| 387 | ||
| 230 399 | ||
| 38 6260 | ||
| 14795 43 366 76896 32 822 429 383 22860 255 2972 111778 3712 27304 19409 48 23988 18044 13814 73996 | ||
| 183574 | ||
| 50 | ||
| 2158 | ||
| 11805 | ||
| 50 11805 | ||
| 2158 11805 | ||
| 11805 11805 | ||
| 50 11805 11805 | ||
| 2158 11805 11805 | ||
| 11805 11805 11805 | ||
| 66 70789 96 140747 | ||
| 104867 | ||
| 144635 20623 120822 22300 4402 71947 2759 24373 12479 387 10171 40 22860 146 18932 15540 136 10094 387 49707 77415 91293 40 70574 69865 279 63816 279 252 50 252 2158 252 11805 252 50 11805 252 2158 11805 252 11805 11805 252 50 11805 11805 252 2158 11805 11805 252 50 45 50 252 50 634 50 252 50 1472 50 252 124940 92255 273 160060 191869 44968 256 188211 21207 147 142156 195704 142156 21207 127 92255 259 45614 255 2972 111778 3712 27304 19409 48 23988 18044 13814 73996 79520 1235 23427 13373 183893 7432 30515 125974 185839 20324 27123 36632 25121 3124 36057 36678 183574 31148 10446 365 1908 874 578 63490 438 414 765 43 578 1954 383 2259 62 578 76 487 2259 365 2130 960 394 43 578 67 383 679 766 8748 62 1155 38 35185 290 66450 75 |
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
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.