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.
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
[LLM] support Qwen2 #8338
[LLM] support Qwen2 #8338
Changes from 1 commit
36ab9a7
3913e11
0aa1aca
a29e90d
d514dff
1e98323
f81bb43
37dd2d5
d12938a
8cc49fc
9c8222e
4d6ff87
f350a2f
c53690d
9d12995
dba0f74
e487606
cd9c753
10407c4
beb0f4c
beefee9
82ba345
d522ee4
4a1b2e3
526a9db
0c9d5ec
2bb3aba
f203983
58af3ec
c766eb5
5ddc326
de1db67
10a194c
87f0276
8d9970b
89994a6
d57a5b1
bfb65a1
4b96dd0
b274f12
1054f06
056b04c
ab08c17
ad02fdc
23e39fc
36b3897
6455445
b140df6
c08c9a6
e6de5f3
48ae2ab
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 34 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L33-L34
Check warning on line 60 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L59-L60
Check warning on line 91 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L90-L91
Check warning on line 94 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L93-L94
Check warning on line 100 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L98-L100
Check warning on line 104 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L104
Check warning on line 107 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L107
Check warning on line 110 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L110
Check warning on line 115 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L113-L115
Check warning on line 118 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L118
Check warning on line 125 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L125
Check warning on line 130 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L130
Check warning on line 137 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L137
Check warning on line 142 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L141-L142
Check warning on line 147 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L146-L147
Check warning on line 149 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L149
Check warning on line 155 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L151-L155
Check warning on line 171 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L171
Check warning on line 177 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L173-L177
Check warning on line 184 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L180-L184
Check warning on line 193 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L192-L193
Check warning on line 200 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L200
Check warning on line 205 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L204-L205
Check warning on line 208 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L207-L208
Check warning on line 210 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L210
Check warning on line 236 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L234-L236
Check warning on line 244 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L244
Check warning on line 253 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L253
Check warning on line 256 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L255-L256
Check warning on line 259 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L258-L259
Check warning on line 271 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L271
Check warning on line 277 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L277
Check warning on line 280 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L280
Check warning on line 286 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L286
Check warning on line 297 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L297
Check warning on line 305 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L304-L305
Check warning on line 312 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L312
Check warning on line 325 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L325
Check warning on line 358 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L358
Check warning on line 369 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L367-L369
Check warning on line 372 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L372
Check warning on line 402 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L402
Check warning on line 422 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L421-L422
Check warning on line 445 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L444-L445
Check warning on line 451 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L451
Check warning on line 457 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L457
Check warning on line 463 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L463
Check warning on line 490 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L489-L490
Check warning on line 526 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L526
Check warning on line 529 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L529
Check warning on line 531 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L531
Check warning on line 534 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L534
Check warning on line 539 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L538-L539
Check warning on line 543 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L543
Check warning on line 547 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L546-L547
Check warning on line 554 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L553-L554
Check warning on line 557 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L557
Check warning on line 560 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L560
Check warning on line 594 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L593-L594
Check warning on line 610 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L608-L610
Check warning on line 641 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L641
Check warning on line 713 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L713
Check warning on line 765 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L765
Check warning on line 818 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L818
Check warning on line 858 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L858
Check warning on line 871 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L871
Check warning on line 933 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L933
Check warning on line 935 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L935
Check warning on line 943 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L942-L943
Check warning on line 945 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L945
Check warning on line 954 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L952-L954
Check warning on line 958 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L957-L958
Check warning on line 964 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L960-L964
Check warning on line 970 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L966-L970
Check warning on line 973 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L973
Check warning on line 983 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L978-L983
Check warning on line 986 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L986
Check warning on line 995 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L991-L995
Check warning on line 997 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L997
Check warning on line 999 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L999
Check warning on line 1001 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1001
Check warning on line 1006 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1006
Check warning on line 1025 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1024-L1025
Check warning on line 1078 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1078
Check warning on line 1123 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1123
Check warning on line 1145 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1143-L1145
Check warning on line 1147 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1147
Check warning on line 1149 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1149
Check warning on line 1161 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1161
Check warning on line 1178 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1178
Check warning on line 1194 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1194
Check warning on line 1198 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1197-L1198
Check warning on line 1200 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1200
Check warning on line 1218 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1217-L1218
Check warning on line 1220 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1220
Check warning on line 1236 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1234-L1236
Check warning on line 1257 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1257
Check warning on line 1292 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1292
Check warning on line 1330 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1330
Check warning on line 1337 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1335-L1337
Check warning on line 1340 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1340
Check warning on line 1343 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1342-L1343
Check warning on line 1347 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1346-L1347
Check warning on line 1349 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1349
Check warning on line 1357 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1357
Check warning on line 1368 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1368
Check warning on line 1374 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1372-L1374
Check warning on line 1377 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1377
Check warning on line 1410 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1410
Check warning on line 1413 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1413
Check warning on line 1416 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1416
Check warning on line 1419 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1419
Check warning on line 1440 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1440
Check warning on line 1456 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1456
Check warning on line 1469 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1469
Check warning on line 1474 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1473-L1474
Check warning on line 1533 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1533
Check warning on line 1537 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1537
Check warning on line 1544 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1543-L1544
Check warning on line 1549 in paddlenlp/transformers/qwen2moe/modeling.py
Codecov / codecov/patch
paddlenlp/transformers/qwen2moe/modeling.py#L1549