Compare commits

...

3 Commits

Author SHA1 Message Date
neolithic5452
c5aa6af85b
Merge 27067329f95318c2e176cec8b69500da85374fb6 into 9b4e9788e4a3a731f7567338ed15d3ec549ce03b 2025-08-28 14:35:05 +08:00
GeeeekExplorer
9b4e9788e4 Merge pull request #969 from youkaichao/rmsnorm
act_quant_kernel
2025-08-28 11:24:26 +08:00
neolithic5452
27067329f9
Fix broken TensorRT-LLM link to deepseekv3
Fix broken TensorRT-LLM link to deepseekv3
2025-08-21 18:10:39 -07:00
2 changed files with 2 additions and 7 deletions

View File

@ -322,7 +322,7 @@ For comprehensive step-by-step instructions on running DeepSeek-V3 with LMDeploy
### 6.4 Inference with TRT-LLM (recommended)
[TensorRT-LLM](https://github.com/NVIDIA/TensorRT-LLM) now supports the DeepSeek-V3 model, offering precision options such as BF16 and INT4/INT8 weight-only. Support for FP8 is currently in progress and will be released soon. You can access the custom branch of TRTLLM specifically for DeepSeek-V3 support through the following link to experience the new features directly: https://github.com/NVIDIA/TensorRT-LLM/tree/main/examples/deepseek_v3.
[TensorRT-LLM](https://github.com/NVIDIA/TensorRT-LLM) now supports the DeepSeek-V3 model, offering precision options such as BF16 and INT4/INT8 weight-only. Support for FP8 is currently in progress and will be released soon. You can access the custom branch of TRTLLM specifically for DeepSeek-V3 support through the following link to experience the new features directly: [https://github.com/NVIDIA/TensorRT-LLM/tree/main/examples/deepseek_v3](https://github.com/NVIDIA/TensorRT-LLM/tree/main/examples/models/core/deepseek_v3).
### 6.5 Inference with vLLM (recommended)

View File

@ -291,12 +291,7 @@ class RMSNorm(nn.Module):
Returns:
torch.Tensor: Normalized tensor with the same shape as input.
"""
dtype = x.dtype
# make sure rms norm is computed in fp32
x = x.to(torch.float32)
var = x.pow(2).mean(-1, keepdim=True)
x = x * torch.rsqrt(var + self.eps)
return (self.weight * x).to(dtype)
return F.rms_norm(x, (self.dim,), self.weight, self.eps)
def precompute_freqs_cis(args: ModelArgs) -> torch.Tensor: