Commit 0d1c41c
committed
Fix KeyError in MTP layer processing for DeepSeek ckpt conversion
Initializes the `mtp_block` dictionary structure inside the `has_mtp` condition in `convert_deepseek_family_ckpt.py`. This resolves a KeyError that occurs when attempting to assign parsed safetensor values to the uninitialized MTP keys.1 parent d26d2d7 commit 0d1c41c
1 file changed
Lines changed: 32 additions & 0 deletions
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
531 | 563 | | |
532 | 564 | | |
533 | 565 | | |
| |||
0 commit comments