Commit d3833b0
committed
server : keep the tokens a recompute restore replays out of the request's prompt stats
A recompute restore re-enters prompt processing to put back the cells the park dropped. Those tokens are submitted with is_prompt set, so every one of them was added to n_prompt_processed and pushed t_prompt_last to the end of the replay, while n_gen deliberately carries across the park. The reported prompt length grew with every park, and the generation time covered only the tokens after the last re-prefill, so predicted_per_second was inflated by the ratio of the two.
The replay is still counted in the server-wide prompt metrics, where it is real compute; it just no longer moves the slot's prompt count or the prompt/generation boundary.1 parent 9bcd8ab commit d3833b0
2 files changed
Lines changed: 30 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5177 | 5177 | | |
5178 | 5178 | | |
5179 | 5179 | | |
5180 | | - | |
5181 | | - | |
| 5180 | + | |
| 5181 | + | |
| 5182 | + | |
| 5183 | + | |
| 5184 | + | |
| 5185 | + | |
5182 | 5186 | | |
5183 | 5187 | | |
5184 | 5188 | | |
| |||
5918 | 5922 | | |
5919 | 5923 | | |
5920 | 5924 | | |
5921 | | - | |
| 5925 | + | |
| 5926 | + | |
5922 | 5927 | | |
5923 | 5928 | | |
5924 | 5929 | | |
| |||
5936 | 5941 | | |
5937 | 5942 | | |
5938 | 5943 | | |
5939 | | - | |
| 5944 | + | |
| 5945 | + | |
5940 | 5946 | | |
5941 | 5947 | | |
5942 | 5948 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
878 | 878 | | |
879 | 879 | | |
880 | 880 | | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
881 | 901 | | |
882 | 902 | | |
883 | 903 | | |
| |||
0 commit comments