peft.merge_params

peft.merge_params#

gemma.peft.merge_params(
original: dict[str, Any],
lora: dict[str, Any],
) dict[str, Any][source]

Inverse of split_params.

Parameters:
  • original – The original tree without the ‘lora’ branches.

  • lora – The tree containing the ‘lora’ branches.

Returns:

The merged tree.