-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
78 lines (67 loc) · 2.09 KB
/
Copy pathconfig.py
File metadata and controls
78 lines (67 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
SR = 16000
fbank_config = {
"engine": "mt", # mt: 多线程, mp: 多进程
"num_workers": 4, # 后台worker数目
"stream": False,
"instance":{}
}
parajet_config = {
"engine": "mt", # mt: 多线程, mp: 多进程
"num_workers": 4, # 后台worker数目
"batch_wait_seconds": 0.1, # 聚合等待时间,越小响应越快,但也会降低推理效率
# 模型初始化配置
"instance":{
"model_dir": "models/asr/parajet",
"intra_op_num_threads": 1,
"inter_op_num_threads": 1,
"use_gpu": True,
"feed_fixed_shape": [20,30*SR]
}
}
ct_transformer_config = {
"engine": "mt", # mt: 多线程, mp: 多进程
"num_workers": 4, # 后台worker数目
"stream": False,
"instance":{
"model_dir": "models/punc/sherpa-onnx-punct-ct-transformer-zh-en-vocab272727-2024-04-12",
"intra_op_num_threads": 1,
"inter_op_num_threads": 1,
"use_gpu": True,
}
}
eres2net_config = {
"engine": "mt", # mt: 多线程, mp: 多进程
"num_workers": 4, # 后台worker数目
"stream": False,
"instance":{
"model_dir": "models/sv/speech_eres2net_large_sv_zh-cn_3dspeaker_16k_onnx",
"intra_op_num_threads": 1,
"inter_op_num_threads": 1,
"use_gpu": True,
}
}
vits_config = {
"engine": "mt", # mt: 多线程, mp: 多进程
"num_workers": 4, # 后台worker数目
"stream": False,
"instance":{
"model_dir": "models/tts/vits-thin",
"intra_op_num_threads": 1,
"inter_op_num_threads": 1,
}
}
whisper_config = {
"engine": "mt", # mt: 多线程, mp: 多进程
"num_workers": 2, # 后台worker数目
"stream": True,
"instance":{
"model_dir": "models/asr/faster-whisper-large-v3",
"device": "cuda",
"compute_type": "float16"
}
}
llm_config = {
"url": "http://localhost:9001/v1/chat/completions",
"api_key": "not empty",
"model_id": "Qwen/Qwen2.5-72B-Instruct"
}