已修改config
This commit is contained in:
1 parent
d93cf2d5e5
commit
7fd2b9ab41
1 file changed
+5
-5
+5
-5
@@ -4,14 +4,14 @@ listen_port: 8080
|
||||
|
||||
limits:
|
||||
max_sessions: 4
|
||||
hook_timeout_seconds: 60 # guard 模型 CPU 推理慢,默认 5s 不够
|
||||
hook_timeout_seconds: 5
|
||||
upstream_timeout_seconds: 120
|
||||
|
||||
llm:
|
||||
- id: guard_model
|
||||
type: guard
|
||||
file: models/ # 待修改
|
||||
load: {device: cpu} #待修改 (cude / cpu)
|
||||
- id: guard_model
|
||||
type: guard
|
||||
file: model
|
||||
load: {device: cuda}
|
||||
limits:
|
||||
max_input_tokens: 4096
|
||||
max_new_tokens: 32
|
||||
|
||||
Reference in new issue
Block a user