Repository navigation
Commit 44c74f9
moe-cache : fail the decode instead of aborting on a mailbox timeout
The mailbox's CPU op aborted the process when the GPU did not hand a layer
over within 20 s, taking llama-server down with it. Now it computes no expert
for the step (all -1 ids), sets an error flag, and llama_context::graph_compute
turns the flag into GGML_STATUS_FAILED, so llama_decode returns -3 and rolls
the step back. Later layers of the same step skip the wait once one has
timed out. The GPU-side receive is launched after the CPU split, so giving up
cannot deadlock it, and a late send carries an epoch the next step rejects.
Checked by forcing the timeout: one error line, decode fails, exit code 1
instead of 134.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 7f5581d commit 44c74f9
3 files changed
Lines changed: 28 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2768 | 2768 | | |
2769 | 2769 | | |
2770 | 2770 | | |
| 2771 | + | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
2771 | 2776 | | |
2772 | 2777 | | |
2773 | 2778 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
| |||
859 | 860 | | |
860 | 861 | | |
861 | 862 | | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
862 | 871 | | |
863 | 872 | | |
864 | 873 | | |
865 | 874 | | |
866 | | - | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
867 | 882 | | |
868 | 883 | | |
869 | 884 | | |
| |||
872 | 887 | | |
873 | 888 | | |
874 | 889 | | |
875 | | - | |
876 | | - | |
877 | 890 | | |
878 | 891 | | |
879 | 892 | | |
| |||
1461 | 1474 | | |
1462 | 1475 | | |
1463 | 1476 | | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
1464 | 1481 | | |
1465 | 1482 | | |
1466 | 1483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
0 commit comments