QwenLM/Qwen2.5-Coder

如何实现行级代码补全?

Closed this issue · 2 comments

image

如上图所示,更希望CodeQwen只返回一行代码,而不是突破当前函数体。
经过翻阅文档,CodeQwen似乎没有提供“行级/块级”的参数。
请问有其他办法实现行级补全吗?
不胜感激!

you can limit the tokens of \n or " \n" during generation, and add the '\n' at the suffix part

you can limit the tokens of \n or " \n" during generation, and add the '\n' at the suffix part

你好,请问有没有更加智能的做法?
如果每次都通过判断尾部的"\n"来实现,那不是等于抛弃了多行补全么?