You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi is there any update on when enc-dec models like T5 will get the TRT-LLM Triton backend support? Posting an issue for awareness and just wanted to know if its still being planned. Thanks in advance!
Hi @shannonphu , yes we're working on it. Right now it's at the stage of adding the C++ runtime. Tentative date for Triton enc-dec support is around mid to late January. Thanks for your patience
Hi @shannonphu , yes we're working on it. Right now it's at the stage of adding the C++ runtime. Tentative date for Triton enc-dec support is around mid to late January. Thanks for your patience
is it also included continuous batching?
Our current plan is to reach there by steps: (1) C++ runtime (2) regular Triton support (3) continous batching. Eventually we want to enable continus batching, but for the mid to late January release it's more likely to only have (1) and (2), with (3) coming right after it
Hi @shannonphu , @sihanwang41 , @mlmonk , @shixianc ,
We have been actively working on this support but finding the amount of work is more than expected since we want to have a good implementation to support enc-dec and in general such 2-stage pipeline.
May I use this thread to collect your feedback so we can understand your need and prioritize better. I know @sihanwang41 specifically asked about continuous batching, i.e., inflight batching, but others didn't share the request info. Can you reply by describing if any of (1), (2), (3) would be helpful and can unblock you first:
(1) a Triton Python backend support to run enc-dec model
(2) a C++ runtime (no Triton) to run enc-dec model, without inflight batching
(3) a Triton C++ backend to run enc-dec model, without inflight batching
(4) a Triton C++ backend, with paged kv cache and inflight batching for enc-dec <-- final goal
Thanks
Reacted by Le Tuan Thanh, shixianc, Nikhil Varghese and PKaralupov
@symphonylyh Thanks for the update! Starting with (3) would unblock our team.
May I assume this would also have the classic dynamic batching supported?
Got it, thanks for the input.
By dynamic batching, do you mean the Triton's dynamic batching that has nothing to do with the inflight/continuous batching concept. If so, yes.
We have been able to use Triton with enc_dec models, so I'm not sure what
the difference that and (1) is. We find that the TPS for that
implementation is quite slow are looking for ways to make it faster.
Agree that the end goal is (3).
@mlmonk Oh interesting, I was under the impression that we just couldn't serve T5 models on Triton yet because the TRT-LLM backend wasn't ready for it yet.
@symphonylyh@shannonphu We have been able to use the Flan-T5 with Triton. I believe this is (1). You can reproduce it here. Note that this is much older version of both libraries when Flan-T5 was not officially supported.
Like @shixianc mentioned, (3) would unblock us and (4) would the ideal state. It would be great if you could share how far along you are with the (3) release.
As part of today's release #1725 , enc-dec C++ runtime has been successfully implemented with inflight batching and paged kv cache. Please have a try following the README C++ runtime section . This directly corresponds to (4) above, with Triton backend being added next.
Our roadmap next pretty soon:
Triton C++ backend is almost ready and to be released soon
Multi-GPU support
Reacted by Le Tuan Thanh, Nikhil Varghese, TeamSeshDeadBoy, Inhyuk Cho, PKaralupov, Soocheol Noh and Shannon Phu
Activity
symphonylyh commentedon Jan 7, 2024
Hi @shannonphu , yes we're working on it. Right now it's at the stage of adding the C++ runtime. Tentative date for Triton enc-dec support is around mid to late January. Thanks for your patience
sihanwang41 commentedon Jan 8, 2024
is it also included continuous batching?
symphonylyh commentedon Jan 8, 2024
mlmonk commentedon Feb 1, 2024
@symphonylyh Could share if theres an update on this?
shixianc commentedon Feb 9, 2024
Hi is there an update for this?
symphonylyh commentedon Feb 22, 2024
Hi @shannonphu , @sihanwang41 , @mlmonk , @shixianc ,
We have been actively working on this support but finding the amount of work is more than expected since we want to have a good implementation to support enc-dec and in general such 2-stage pipeline.
May I use this thread to collect your feedback so we can understand your need and prioritize better. I know @sihanwang41 specifically asked about continuous batching, i.e., inflight batching, but others didn't share the request info. Can you reply by describing if any of (1), (2), (3) would be helpful and can unblock you first:
(1) a Triton Python backend support to run enc-dec model
(2) a C++ runtime (no Triton) to run enc-dec model, without inflight batching
(3) a Triton C++ backend to run enc-dec model, without inflight batching
(4) a Triton C++ backend, with paged kv cache and inflight batching for enc-dec <-- final goal
Thanks
shixianc commentedon Feb 22, 2024
@symphonylyh Thanks for the update! Starting with (3) would unblock our team.
May I assume this would also have the classic dynamic batching supported?
symphonylyh commentedon Feb 23, 2024
Got it, thanks for the input.
By dynamic batching, do you mean the Triton's dynamic batching that has nothing to do with the inflight/continuous batching concept. If so, yes.
shannonphu commentedon Feb 23, 2024
@symphonylyh (1) and/or (3). I am not super clear on the difference between the Python vs C++ backend. I was using this to build the engine https://github.com/NVIDIA/TensorRT-LLM/blob/main/examples/enc_dec/README.md
mlmonk commentedon Feb 24, 2024
shannonphu commentedon Feb 24, 2024
@mlmonk Oh interesting, I was under the impression that we just couldn't serve T5 models on Triton yet because the TRT-LLM backend wasn't ready for it yet.
mlmonk commentedon Mar 7, 2024
@symphonylyh @shannonphu We have been able to use the Flan-T5 with Triton. I believe this is (1). You can reproduce it here. Note that this is much older version of both libraries when Flan-T5 was not officially supported.
Like @shixianc mentioned, (3) would unblock us and (4) would the ideal state. It would be great if you could share how far along you are with the (3) release.
LuckyL00ser commentedon Mar 13, 2024
hey @symphonylyh , do you have any updates on the progress?
XiaobingSuper commentedon Apr 11, 2024
@symphonylyh, any progress?
TeamSeshDeadBoy commentedon May 8, 2024
Hello, @symphonylyh . Is there any progress on any of (1-4) ?
mrmuke commentedon May 13, 2024
We would love (1)
symphonylyh commentedon Jun 4, 2024
Hi @shannonphu , @sihanwang41 , @mlmonk , @shixianc, @LuckyL00ser , @XiaobingSuper @TeamSeshDeadBoy @mrmuke
As part of today's release #1725 , enc-dec C++ runtime has been successfully implemented with inflight batching and paged kv cache. Please have a try following the README C++ runtime section
. This directly corresponds to (4) above, with Triton backend being added next.
Our roadmap next pretty soon:
mlmonk commentedon Jun 5, 2024
Thanks for the update! This is excellent news, I'm sure it was a lot of effort to make it happen.
HamzaG737 commentedon Jul 9, 2024
Hello @symphonylyh,
Is there any progress on adding (1) ?
symphonylyh commentedon Jul 10, 2024
@HamzaG737 it's full-fledged now. For (1) Triton backend, you can follow the guide here: https://github.com/triton-inference-server/tensorrtllm_backend/blob/main/docs/encoder_decoder.md.
Also, closing this issue as support has been added