This code is completely incorrect, and the code of the cashe part is also incorrect. The acceleration effect shown in the figure is only because the sentence prompt is relatively short and the max_new_token setting is relatively small. When the prompt becomes longer, the running time explodes.
This code is completely incorrect, and the code of the cashe part is also incorrect. The acceleration effect shown in the figure is only because the sentence prompt is relatively short and the max_new_token setting is relatively small. When the prompt becomes longer, the running time explodes.