Commit ecd0f7a
committed
Add class for GatedDeltaNetCache to kvcache.py
Added support for GDN to maxengine but NNX linen incompatible
Merged code from other branch Qwen3-next
Modified to accept dynamic model mode and work with maxengine changes
Fix GDN init with model_mode
Do same cache update during packed prefill as normal prefill
Convert batch to int in init for state
remove new_cache and resolve comments from pr
fix merge conflicts
use maxtext instead of MaxText
typo in import
removed testcases
remove circular import
Add support for decoding with pdb > 1
Fix slicing bug when using batch_size > 1
Fix linter issues
Fix linter issues and flatten conditionals for pylint
uncommit pre-commit check
Test for linear attention functionality
Ran linter on test file
Use global batch size instead of pdb in testcase
add logic for decoder_segment_id for gdn layer
Fix indentation
add comment to clarify edge case
Run linter
update import for maxtext_utils
update pyconfig import
undo changed imports1 parent 9f98518 commit ecd0f7a
5 files changed
Lines changed: 296 additions & 29 deletions
File tree
- src/maxtext
- inference
- maxengine
- layers
- models
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
234 | 238 | | |
235 | 239 | | |
236 | 240 | | |
| |||
290 | 294 | | |
291 | 295 | | |
292 | 296 | | |
| 297 | + | |
293 | 298 | | |
294 | 299 | | |
295 | 300 | | |
| |||
844 | 849 | | |
845 | 850 | | |
846 | 851 | | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
847 | 922 | | |
848 | 923 | | |
849 | 924 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1146 | 1146 | | |
1147 | 1147 | | |
1148 | 1148 | | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1149 | 1152 | | |
1150 | 1153 | | |
1151 | 1154 | | |
| |||
1258 | 1261 | | |
1259 | 1262 | | |
1260 | 1263 | | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
1261 | 1268 | | |
1262 | 1269 | | |
1263 | 1270 | | |
| |||
1447 | 1454 | | |
1448 | 1455 | | |
1449 | 1456 | | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
1450 | 1466 | | |
1451 | 1467 | | |
1452 | 1468 | | |
| |||
1660 | 1676 | | |
1661 | 1677 | | |
1662 | 1678 | | |
1663 | | - | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
1664 | 1686 | | |
1665 | 1687 | | |
1666 | 1688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
979 | 979 | | |
980 | 980 | | |
981 | 981 | | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
982 | 990 | | |
983 | 991 | | |
984 | 992 | | |
985 | 993 | | |
986 | 994 | | |
987 | 995 | | |
988 | 996 | | |
989 | | - | |
990 | | - | |
| 997 | + | |
991 | 998 | | |
992 | 999 | | |
993 | 1000 | | |
| |||
1000 | 1007 | | |
1001 | 1008 | | |
1002 | 1009 | | |
1003 | | - | |
1004 | | - | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
1005 | 1016 | | |
1006 | 1017 | | |
1007 | 1018 | | |
| |||
0 commit comments