Parameters
Member |
Description |
|---|---|
RmsNormParam |
RMSNORM parameter.
|
PrecisionMode |
PRECISIONMODE parameter.
|
ModelType |
MODELTYPE parameter.
|
layerType |
Normalization type. The options are as follows:
|
normParam |
NORM parameter. For details, see Table 1. |
preNormParam |
PRENORM parameter. For details, see Table 2. |
postNormParam |
POSTNORM parameter. For details, see Table 3. |
rsv[8] |
Reserved. |
Parameter |
Type |
Default Value |
Description |
|---|---|---|---|
quantType |
QuantType |
QUANT_UNQUANT |
Quantization type. Currently, the following types are supported:
|
epsilon |
float |
1e-5 |
Epsilon, added to the denominator during normalization to prevent division by 0. |
layerNormEps |
float |
1e-5 |
Epsilon, which is not used currently. |
rstd |
bool |
false |
If this parameter is set to true, the trained rmsnormforward operator is used. This operator is supported only by This parameter cannot be set together with precisionMode and modelType. rstd is not supported for quantization. |
precisionMode |
PrecisionMode |
HIGH_PRECISION_MODE |
Values:
This parameter cannot be set together with rstd and modelType. The input type can only be float16. For quantization, precisionMode is not supported. If this parameter is configured in this scenario, the error message "ERROR_INVALID_PARAM" is returned. |
modelType |
ModelType |
LLAMA_MODEL |
When the value is set to GEMMA_MODEL, the rmsnorm calculation formula of the Gemma model is used. Values:
This parameter cannot be used together with rstd and precisionMode. For quantization, modelType is not supported. If this parameter is configured in this scenario, the error message "ERROR_INVALID_PARAM" is returned. |
dynamicQuantType |
DynamicQuantType |
DYNAMIC_QUANT_UNDEFINED |
Dynamic quantization type. The default value is DYNAMIC_QUANT_UNDEFINED. The current version does not support asymmetric dynamic quantization. |
rsv[32] |
uint8_t |
{0} |
Reserved. |
In 8.0.RC2 and later versions, normParam does not support the quantInputScale and quantInputOffset quantization parameters.
Atlas 350 accelerator cards support only QUANT_UNQUANT and QUANT_INT8. epsilon and rstd can only be set to false. Other parameters do not take effect.
Parameter |
Type |
Default Value |
Description |
|---|---|---|---|
quantType |
QuantType |
QUANT_UNQUANT |
Quantization type. Currently, the following types are supported:
|
epsilon |
float |
1e-5 |
Epsilon, added to the denominator during normalization to prevent division by 0. |
hasBias |
bool |
false |
Whether to add a bias. Set this parameter to true when beta needs to be input. For quantization, hasBias is not supported. If this parameter is set in this scenario, the error message "ERROR_INVALID_PARAM" is returned. |
rsv[23] |
uint8_t |
{0} |
Reserved. |
In 8.0.RC2 and later versions, PreNormParam does not support the quantInputScale and quantInputOffset quantization parameters.
Atlas 350 accelerator cards support only QUANT_UNQUANT. epsilon and hasBias can only be set to false.
Parameter |
Type |
Default Value |
Description |
|---|---|---|---|
quantType |
QuantType |
QUANT_UNQUANT |
Quantization type. Currently, the following types are supported:
|
epsilon |
float |
1e-5 |
Epsilon, added to the denominator during normalization to prevent division by 0. |
hasBias |
bool |
false |
Whether to add a bias. Set this parameter to true when beta needs to be input. For quantization, hasBias is not supported. If this parameter is set in this scenario, the error message "ERROR_INVALID_PARAM" is returned. |
rsv[23] |
uint8_t |
{0} |
Reserved. |