From 832a7841af93a517b2af42298eb39eacfc93c6cd Mon Sep 17 00:00:00 2001 From: p04896573 Date: Sat, 11 May 2024 17:54:49 +0800 Subject: [PATCH] Update README_LORA.md --- quick_start_clean/readmes/README_LORA.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/quick_start_clean/readmes/README_LORA.md b/quick_start_clean/readmes/README_LORA.md index 0465c13..3efbcee 100644 --- a/quick_start_clean/readmes/README_LORA.md +++ b/quick_start_clean/readmes/README_LORA.md @@ -67,12 +67,10 @@ $CMD ``` ## 合并模型 -训练好的lora delta model一般有两种方式 -- 在直接含有lora的推理代码进行推理 - 将lora delta model参数和original model merge在一起 作为新的模型,但是模型的参数数量并没有增多 - +```python python merge_lora_delta.py --base_path cpm9g-8b-sft.pt --delta_path cpm9g-lora.pt --merge_path cpm9g-8b-sft_with_lora.pt - +``` # lora 推理