how to use speculative decoding? is there any document for understanding it better? added support in latest update
Activity
jdemouth-nvidia commentedon Dec 18, 2023
We are working on the documentation - it should be published soon.
MrD005 commentedon Dec 30, 2023
@jdemouth-nvidia is there any ETA for that? in latest commit preview speculative decoding is showing but not able to understand the steps to run it
schetlur-nv commentedon Jan 2, 2024
@MrD005 we please consider looking over https://github.com/triton-inference-server/tensorrtllm_backend/blob/main/inflight_batcher_llm/client/e2e_grpc_speculative_decoding_client.py which has an example of how to orchestrate between the draft and target models in a speculative decoding setup.
The broad idea here is that the draft and target models are decoupled and the generation is orchestrated by the client. There are more efficient ways of doing this we are working on, but this is probably the clearest/most flexible example we have.
jxchenus commentedon May 28, 2024
Any update on this? Can you share an ETA?
Any plan to support EAGLE speculative decoding?
schetlur-nv commentedon May 28, 2024
BLS backend referred to in https://github.com/triton-inference-server/tensorrtllm_backend/blob/75b0964792fdc2a9e620b7a1edd71657d0d5cf62/inflight_batcher_llm/client/end_to_end_grpc_client.py#L227 and https://github.com/triton-inference-server/tensorrtllm_backend/blob/main/README.md#tensorrt_llm_bls is the optimized version. We have no immediate plan for EAGLE speculative decoding.
jxchenus commentedon May 28, 2024
Thank you @schetlur-nv ! May I know which is the first release of TRT-LLM backend that includes this support?