TensorRT-LLMs/tensorrt_llm/_torch
Robin Kobus e12e7a753d
refactor: Expose DecoderState via bindings and integrate in TRTLLMDecoder (#3139)
* refactor: Expose DecoderState via bindings and integrate in TRTLLMDecoder

- Introduced a new `DecoderState` class in the C++ bindings, encapsulating key functionalities for managing decoding state.
- Adjusted the Python `TRTLLMDecoder` to access properties from `decoder_state`, ensuring consistency and clarity in the decoding process.

These changes streamline the decoder's architecture and enhance maintainability.

Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>

* chore: Remove unused new_tokens from DecoderState bindings

Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>

---------

Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
2025-04-05 07:42:35 +08:00
..
attention_backend feat: no-cache attention in PyTorch workflow (#3085) 2025-04-05 01:54:32 +08:00
auto_deploy fix: Fix an error related to dummy request when MTP is used (#3146) 2025-04-03 11:08:12 +08:00
compilation None - Add one-shot version for UB AR NORM FP16/BF16 (#2995) 2025-03-31 11:16:03 +08:00
custom_ops Update (#2978) 2025-03-23 16:39:35 +08:00
models fix vila test (#3042) 2025-04-04 14:30:06 +08:00
modules Fix warning (#3254) 2025-04-03 13:30:23 +08:00
pyexecutor refactor: Expose DecoderState via bindings and integrate in TRTLLMDecoder (#3139) 2025-04-05 07:42:35 +08:00
speculative perf: Use pinned H2D to reduce bubbles (#3147) 2025-04-04 22:23:10 +08:00
__init__.py Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
autotuner.py Update (#2978) 2025-03-23 16:39:35 +08:00
distributed.py Update (#2978) 2025-03-23 16:39:35 +08:00
llm.py test: [TRTLLM-4334] Create 1.0 criteria scope from API stability references (#3069) 2025-03-26 18:14:35 +08:00
metadata.py feat: no-cache attention in PyTorch workflow (#3085) 2025-04-05 01:54:32 +08:00
model_config.py feat: Optionally split MoE inputs into chunks to reduce GPU memory usage (#3104) 2025-04-01 16:07:02 +08:00
pipeline_interface.py Update (#2978) 2025-03-23 16:39:35 +08:00
utils.py feat: Optionally split MoE inputs into chunks to reduce GPU memory usage (#3104) 2025-04-01 16:07:02 +08:00