mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #1318] [Bug] 程序停置一段时间后对话卡住 #887
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#887
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jiyif11 on GitHub (May 18, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1318
检查清单
问题描述
停置数小时后再次调用api就处于卡住状态,日志:
INFO: 192.168.1.4:35544 - "POST /v1/chat/completions HTTP/1.1" 200 OK 2025-05-18 01:16:00,823 DEBUG /root/test/.env/lib/python3.12/site-packages/ktransformers/server/backend/interfaces/balance_serve.py[418]: get input ids of shape torch.Size([1, 135])复现步骤
deepseek R1 Q 4
`max_new_tokens: 8192
cache_lens: 65535
web:
mount: False
open_cross_domain: True
ext:
cpu_infer: 10
long_context:
max_seq_len: 32768
block_size: 128
local_windows_len: 4096
second_select_num: 32
anchor_type: DYNAMIC
kv_type: FP16
dense_layer_num: 2
anchor_num: 1
preselect_block: True
head_select_mode: SHARED
preselect_block_count: 32
layer_step: 1
token_step:
local_chat:
prompt_file: ""
async_server:
sched_strategy: "FCFS"
sched_port: 56441
sched_metrics_port: 54321
kvc2_metrics_port: 54391
max_batch_size: 4 # decode count + prefill count, in one mini batch
attn:
page_size: 256
chunk_size: 256
kvc2:
gpu_only: true
utilization_percentage: 1.0
cpu_memory_size_GB: 500`
环境信息
ubuntu-24.04
i9
ddr5 5200