mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 05:10:06 +06:00
Fixing Bitnet after use_rms_norm introduction (#38229)
* fix * make style
This commit is contained in:
parent
9661896083
commit
2a79471318
@ -362,8 +362,8 @@ def _replace_with_bitnet_linear(
|
||||
bias=module.bias is not None,
|
||||
device=module.weight.device,
|
||||
dtype=module.weight.dtype,
|
||||
use_rms_norm=quantization_config.use_rms_norm,
|
||||
rms_norm_eps=quantization_config.rms_norm_eps,
|
||||
use_rms_norm=quantization_config.use_rms_norm if quantization_config else False,
|
||||
rms_norm_eps=quantization_config.rms_norm_eps if quantization_config else 1e-6,
|
||||
)
|
||||
model._modules[name].requires_grad_(False)
|
||||
has_been_replaced = True
|
||||
|
Loading…
Reference in New Issue
Block a user