-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The generated code has a special mark. <|endoftext|> <|cursor|> #161
Comments
you could simply remove the " <|cursor|>" and end the outputs at the "<|endoftext|>" . By the way, which model you are using? and could you give as an example of this bad case? |
this one, qwen2.5-coder:32b-instruct-q8_0. I use the code completion tool tabby to access the model, and the content of code completion includes " <|cursor|>" and "<|endoftext|>" |
We recommend using the base model rather than the instruct model for code completion. |
I use the following template:
prompt_template = "<|fim_prefix|>{prefix}<|fim_suffix|>{suffix}<|fim_middle|>"
The text was updated successfully, but these errors were encountered: