TensorRT-LLMs/tensorrt_llm/_torch
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
..
attention_backend fix: change the seq_lens sync copy to an async one (#3786) 2025-04-29 23:56:49 +08:00
auto_deploy fix: [AutoDeploy] update hf loading for e_score_correction_bias (#3847) 2025-04-26 02:03:47 +08:00
compilation Unify two versions of AllReduce custom op (#3032) 2025-04-22 21:58:42 +08:00
custom_ops Clean up allreduce op in Deepseek V3 model. (#3829) 2025-05-01 07:56:36 +08:00
distributed Clean up allreduce op in Deepseek V3 model. (#3829) 2025-05-01 07:56:36 +08:00
models model: support Qwen3 (#4010) 2025-05-01 23:12:41 +08:00
modules model: support Qwen3 (#4010) 2025-05-01 23:12:41 +08:00
peft add passing E2E LoRA flow (#3788) 2025-04-23 18:38:06 +03:00
pyexecutor feat: add relaxed acceptance for DS (#3865) 2025-05-01 21:50:36 +08:00
speculative feat: add relaxed acceptance for DS (#3865) 2025-05-01 21:50:36 +08:00
__init__.py Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
autotuner.py feat: Apply the new torch-flow compatible AutoTuner to both Fused MoE and NVFP4 Linear operators. (#3151) 2025-04-08 14:28:36 +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 Fix fp8 kvcache (#3877) 2025-04-29 10:31:10 +08:00
pipeline_interface.py chore: bump version to 0.19.0 (#3598) (#3841) 2025-04-29 16:57:22 +08:00
utils.py refactor: (part1) Add contraints doc for fusedMoe module. (#3882) 2025-04-29 22:23:02 +08:00