mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
Update modeling_utils.py
This commit is contained in:
parent
11e378024d
commit
a6ffd7b4d2
1 changed files with 1 additions and 1 deletions
|
|
@ -4757,7 +4757,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
|
|||
# they are not in the loaded state dict)
|
||||
if low_cpu_mem_usage:
|
||||
model = move_missing_keys_back_to_cpu(
|
||||
model, missing_keys, unexpected_keys, dtype, keep_in_fp32_modules, is_quantized, hf_quantizer
|
||||
model, missing_keys, unexpected_keys, dtype, keep_in_fp32_modules, hf_quantizer
|
||||
)
|
||||
|
||||
# correctly initialize the missing keys
|
||||
|
|
|
|||
Loading…
Reference in a new issue