Repository navigation
What to do when your model keeps treating compressed old content as fresh user instructions? #5552
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
English
Some models, especially ones with weak attention like qwen3.8 27b, always rework things once compression kicks in. The reason: the content of the compressed summary gets treated as a user instruction. There is now a pretty good solution to this problem. After a compress call, we swap the positions of compress and the recent protected user messages, so on the next request the model treats compress as historical messages, avoiding attention drift. This parameter is an experimental feature, off by default, and can be turned on by ticking "fold replacement in place (compressAtFoldPoint)" on the web config page (or JSON
compress.compressAtFoldPoint: true/ env varBILI_COMPRESS_AT_FOLD_POINT=1).中文版
一些模型尤其是注意力比如弱的模型比如qwen3.8 27b,只要一压缩,总是返工.原因是压缩摘要的内容当作用户的指令.这个问题现在有了一个比较好的解决办法.就是调用compress 后,我们把compress和最近几条用户保护消息交换位置, 这样下一次请求模型就以为compress是历史消息,从而避免注意力漂移.参数属于实验性功能,默认关闭,在 web 配置页勾选「压缩折叠是否原位置替换」(或 JSON
compress.compressAtFoldPoint: true/ 环境变量BILI_COMPRESS_AT_FOLD_POINT=1)打开.All reactions