Class QwenRMSNorm
java.lang.Object
smile.llm.model.qwen.QwenRMSNorm
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
QwenRMSNorm
public QwenRMSNorm(int dim, double eps) Constructor.- Parameters:
dim- feature dimension.eps- numerical stability epsilon.
-
-
Method Details
-
weight
Returns the learned offset (the effective scale is1 + weight).- Returns:
- the learned offset (the effective scale is
1 + weight).
-
eps
public double eps()Returns the numerical stability epsilon.- Returns:
- the numerical stability epsilon.
-
forward
-
module
Description copied from interface:LayerReturns the nativeST_Modulehandle for this layer.
-