mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
bugfix python runtime
This commit is contained in:
parent
a20157435e
commit
17e64505e8
@ -937,7 +937,10 @@ class LLMASR4(nn.Module):
|
||||
|
||||
logging.info(f"use_lora: {llm_conf.get('use_lora', False)}")
|
||||
if llm_conf.get("use_lora", False):
|
||||
from omegaconf import OmegaConf
|
||||
|
||||
lora_conf = llm_conf.get("lora_conf", {})
|
||||
lora_conf = OmegaConf.to_container(lora_conf, resolve=True)
|
||||
from peft import get_peft_model, LoraConfig, TaskType, PeftConfig, PeftModel
|
||||
|
||||
lora_init_param_path = lora_conf.get("init_param_path", None)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user