TensorRT-LLMs/tensorrt_llm/_torch/models
bhsueh_NV 129bf19980
model: support Qwen3 (#4010)
* add qwen3 dense model pytorch backend support, initial commit

solve the results error issue

add qwen3 moe model pytorch backend support

reformat the code

* perf - use flash_infer rmsnorm for qwen3

* feat - support qwen3 moe rmsnorm

* Put the computation of Q and K norm (in attn) into a single CUDA stream, and get a 5% - 8% throughput improvement on Qwen3 4B and Qwen3 - moe 30B - A3B.

* Put the computation of Q and K norm (in attn) into a single CUDA stream, and get a 5% - 8% throughput improvement on Qwen3 4B and Qwen3 - moe 30B - A3B. -- Forgot to update all modifications.

* fix bugs of running qwen3 public models and fp8 models

Signed-off-by: bhsueh <11360707+byshiue@users.noreply.github.com>

* fix bugs due to rebase

Signed-off-by: bhsueh <11360707+byshiue@users.noreply.github.com>

* fix bugs captured by pre-commi

Signed-off-by: bhsueh <11360707+byshiue@users.noreply.github.com>

* fix bug of attention

Signed-off-by: bhsueh <11360707+byshiue@users.noreply.github.com>

---------

Signed-off-by: bhsueh <11360707+byshiue@users.noreply.github.com>
Co-authored-by: Keddy Jin <jin.gq@aliyun.com>
Co-authored-by: Jiying Dong <87510204+dongjiyingdjy@users.noreply.github.com>
Co-authored-by: shao <shao@nvidia.com>
2025-05-01 23:12:41 +08:00
..
__init__.py model: support Qwen3 (#4010) 2025-05-01 23:12:41 +08:00
.gitkeep Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
modeling_auto.py Fix create_weights in attention (#3692) 2025-04-24 07:30:00 +08:00
modeling_bert.py feat: Support cos_sin_cache in all cases. (#3517) 2025-04-16 13:48:44 +08:00
modeling_deepseekv3.py Clean up allreduce op in Deepseek V3 model. (#3829) 2025-05-01 07:56:36 +08:00
modeling_llama.py Llama4 processor fixes (#3994) 2025-05-01 12:45:53 +08:00
modeling_llava_next.py feat: Add multimodal embedding field in LlmRequest (#3855) 2025-05-01 12:23:30 +08:00
modeling_mamba_hybrid.py feat: Support cos_sin_cache in all cases. (#3517) 2025-04-16 13:48:44 +08:00
modeling_mistral.py feat: Mistral-Large-2 support in the Pytorch workflow 2025-04-30 20:12:39 +08:00
modeling_mixtral.py feat: Support cos_sin_cache in all cases. (#3517) 2025-04-16 13:48:44 +08:00
modeling_mllama.py chore: Use ellipsis as default value to detect whether residual argument is provided (#3626) 2025-04-17 12:31:58 +08:00
modeling_multimodal_encoder.py Update TensorRT-LLM (#2873) 2025-03-11 21:13:42 +08:00
modeling_multimodal_utils.py feat: llama4 input processor (#3383) 2025-04-25 16:47:14 -07:00
modeling_nemotron_h.py Support NemotronH FP8 Quantization 2025-04-29 18:51:43 +03:00
modeling_nemotron_nas.py Fix create_weights in attention (#3692) 2025-04-24 07:30:00 +08:00
modeling_nemotron.py feat: Support cos_sin_cache in all cases. (#3517) 2025-04-16 13:48:44 +08:00
modeling_qwen2vl.py feat: Add multimodal embedding field in LlmRequest (#3855) 2025-05-01 12:23:30 +08:00
modeling_qwen3_moe.py model: support Qwen3 (#4010) 2025-05-01 23:12:41 +08:00
modeling_qwen3.py model: support Qwen3 (#4010) 2025-05-01 23:12:41 +08:00
modeling_qwen_moe.py feat: Support cos_sin_cache in all cases. (#3517) 2025-04-16 13:48:44 +08:00
modeling_qwen.py feat: Support cos_sin_cache in all cases. (#3517) 2025-04-16 13:48:44 +08:00
modeling_utils.py model: support Qwen3 (#4010) 2025-05-01 23:12:41 +08:00
modeling_vila.py feat: Add multimodal embedding field in LlmRequest (#3855) 2025-05-01 12:23:30 +08:00