enhancementgood first issue
仓库指标
- 星标
- (124,043 个星标)
- PR 合并指标
- (平均合并 6天 8小时) (30 天内合并 389 个 PR)
描述
When using the server for multi-turn chat, soon or later the prompt is going to surpass the context size, the current approach truncate the prompt by half of the context size excluding n_keep:
By doing that, common_part is going to match only n_keep tokens (when cache_prompt: true):
Technically, this is not a full prompt eval, n_keep is not revaluated, but it would be better to avoid this if possible, specially because prompt eval is slow on CPU.