TensorRT-LLMs/tensorrt_llm/_torch/pyexecutor
Yukun He 5fa6fbd989
feat: Enhance AutoTuner inference path and code readability (#4466)
Fix AutoTuner warmup request generating.
* The current warmup phase creates one request, which is insufficient for the warmup to cover the max_num_tokens. Revise the warmup phase to a batch of requests to cover the max_num_tokens to eliminate potential fallback cases.
Refactor AutoTuner API and reduce host overhead.

Refine (min, opt, max) values of optimization profile setup for get_valid_tactics to achieve the correct canImplement definition.
* Refine cache key assembly process to reduce host overhead and simplify API.
* Fix lru_cache usage to reduce host overhead.
* Move tuning config initialization as a one-time object in tunable runner to reduce host overhead.

Improve tuning config readability.
* Use dataclass to define tuning config.

Signed-off-by: Yukun He <23156053+hyukn@users.noreply.github.com>
2025-06-04 10:53:11 +08:00
..
__init__.py Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
_util.py fix: max_num_sequences calculation with overlap scheduling (#4532) 2025-06-03 09:31:22 +02:00
config_utils.py feat: support kv cache reuse for MLA (#3571) 2025-05-15 15:22:21 +08:00
config.py Cherry pick feat/llama4 to main (#4739) 2025-05-30 05:28:40 +08:00
cuda_graph_runner.py feat: Integration of Fused QKNorm+RoPE. (#4611) 2025-05-28 11:20:45 +08:00
guided_decoder.py feat: Support the Structural Tag in guided decoding (#4066) 2025-05-12 17:24:50 +08:00
handle_context_logits.py [TRTLLM-4987][feat] Partial support of context logits in TRTLLMSampler (#4538) 2025-06-01 03:32:43 +08:00
kv_cache_transceiver.py Agent interface impl for NIXL (#4125) 2025-05-22 09:09:41 +08:00
layerwise_nvtx_marker.py Update TensorRT-LLM (#2849) 2025-03-04 18:44:00 +08:00
llm_request.py fix: fix accuracy and illegal memory access issues when using mtp + attention dp (#4379) 2025-06-02 00:35:52 +08:00
model_engine.py feat: Enhance AutoTuner inference path and code readability (#4466) 2025-06-04 10:53:11 +08:00
py_executor_creator.py feat: estimate GPU mem. usage w/ minimal KV cache (#4574) 2025-05-30 10:40:45 +02:00
py_executor.py Refactor the first token response in PD (#4692) 2025-06-04 09:11:23 +08:00
resource_manager.py fix: fix accuracy and illegal memory access issues when using mtp + attention dp (#4379) 2025-06-02 00:35:52 +08:00
sampler.py refactor: Separate DecoderState from GptDecoderBatched (#4700) 2025-06-03 09:42:01 +02:00
scheduler.py fix: max_num_sequences calculation with overlap scheduling (#4532) 2025-06-03 09:31:22 +02:00
seq_slot_manager.py fix: skip add new slot if request has slot 0 (#3991) 2025-05-06 07:46:39 +02:00