-
Notifications
You must be signed in to change notification settings - Fork 164
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
format for inference in code completion #10
Comments
I have the same question. I want to complete the code through perfect code requirements, but the model cannot stop. Can you give me a perfect prompt format? |
It's the same as StarCoder, we apply FIM inside each file regardless of the repo structure(the filepath in the beginning of a file is optional) so you can do <fim_prefix>prefix<fim_suffix>suffix<fim_middle> |
yes |
Thank you so much, and the StarCoder series are really amazing! Recently I've been using them for SFT to better apply to our users' habits and witnessed great improvement. |
Not just removing them, since Starcoder2 maybe generate cross-file tokens after "<file_sep>". Ref: bigcode-project/starcoder2#10 (comment)
When using ollama, all you need to do is set
|
starcoder's format for inference in code completion is PSM, <fim_prefix> + prefix + <fim_suffix> + suffix + <fim_middle>
what's that for starcoder2?
from the paper, we could only see that
The text was updated successfully, but these errors were encountered: