From 7fd2b9ab413eb736fbe5a992642b56bc5bcaf416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=B2=D1=82=D0=BE=D0=BC=D0=B0=D1=82=D0=B0=20=D0=9A?= =?UTF-8?q?=D0=B0=D0=BB=D0=B0=D1=88=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2=D0=B0?= <3056129056@qq.com> Date: Tue, 13 Oct 2026 18:34:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E4=BF=AE=E6=94=B9config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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