Skip to content

Commit

Permalink
Optimize lora (#2589)
Browse files Browse the repository at this point in the history
* 支持剪枝前热词增强

* simplify&&fix lora args

* fix lora parameters and description

* fix lora function args and description

* 修复文件

* set lora attention positional arguments

* optimize lora codes

* add init.py

* add lora_ckpt_path to recognize

* format codes

---------

Co-authored-by: fangcheng1050 <fangcheng1050@wezhuiyi.com>
  • Loading branch information
fclearner and fangcheng1050 committed Aug 5, 2024
1 parent 24375c5 commit ec3d80f
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 367 deletions.
4 changes: 4 additions & 0 deletions wenet/bin/recognize.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ def get_args():
type=bool,
default=False,
help='''Whether to use lora for biasing''')
parser.add_argument("--lora_ckpt_path",
default=None,
type=str,
help="lora checkpoint path.")
args = parser.parse_args()
print(args)
return args
Expand Down
Empty file added wenet/finetune/lora/__init__.py
Empty file.
123 changes: 0 additions & 123 deletions wenet/finetune/lora/attention.py

This file was deleted.

221 changes: 0 additions & 221 deletions wenet/finetune/lora/encoder.py

This file was deleted.

Loading

0 comments on commit ec3d80f

Please sign in to comment.