transformers
be00f81f - [generate] Defer the stop check on CUDA for compiled generation (−15% latency) (#51485)

Commit
4 hours ago
[generate] Defer the stop check on CUDA for compiled generation (−15% latency) (#51485) * Defer the stop check on CUDA when the forward is compiled, and stream the first token right away * Narrow the streamer check so ty sees it is not None * simplify a bit * oupsi forgot --------- Co-authored-by: Cyril Vallez <cyril.vallez@gmail.com>
Author
Parents
Loading