[v1 loader]code style (#4204)

* code style

* update
This commit is contained in:
bukejiyu
2025-09-23 19:36:00 +08:00
committed by GitHub
parent 1a6283424e
commit 62d1c48363
18 changed files with 33 additions and 33 deletions

View File

@@ -54,7 +54,7 @@ def pdparams_weight_iterator(paddle_file_list: list[str]):
del state_dict
def load_weights_form_cache(model, weights_iterator):
def load_weights_from_cache(model, weights_iterator):
params_dict = dict(model.named_parameters())
for loaded_weight_name, loaded_weight in weights_iterator:
param = params_dict[loaded_weight_name]