Closed Ghy0202 closed 10 months ago
Hi, sorry for the slow response!
If I remember correctly, you'll basically want to prompt the model with:
code prefix<|mask:0|>code suffix<|mask:0|>
We have some example code here: https://github.com/dpfried/incoder/blob/main/example_usage.py in the infill
method that you could take a look at to verify this.
Hi, sorry for the slow response!
If I remember correctly, you'll basically want to prompt the model with:
code prefix<|mask:0|>code suffix<|mask:0|>
We have some example code here: https://github.com/dpfried/incoder/blob/main/example_usage.py in the
infill
method that you could take a look at to verify this.
Thank you! I solved the problem.😃~~
Hello😃 A Great job! I am reaching out to inquire about the possibility of using the pre-trained incoder model provided by your team for code infilling tasks~ However, I have been unable to locate any relevant example code or documentation regarding the usage of the pre-trained incoder model for code infilling. I'm not sure how to get a correctly formatted input〒▽〒 I expected the input like:
and the output will be like: