[misc] fix lora regex (#6944)

* fix lora regex

* fix

Former-commit-id: 1d0ecbaee1b72f1e03154ddd4fcc8b7876e01f89
This commit is contained in:
hoshi-hiyouga
2025-02-14 21:38:43 +08:00
committed by GitHub
parent ed25e051a9
commit a893505924
5 changed files with 32 additions and 31 deletions

View File

@@ -77,7 +77,7 @@ def find_expanded_modules(model: "PreTrainedModel", target_modules: List[str], n
):
module_names.append(name)
logger.info_rank0("Apply lora to layers: {}".format(",".join(map(str, trainable_layer_ids))))
logger.info_rank0("Apply lora to layers: {}.".format(",".join(map(str, trainable_layer_ids))))
return module_names