diff --git a/config.yaml b/config.yaml index 966b658..35c5b86 100644 --- a/config.yaml +++ b/config.yaml @@ -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