Reorder stableCodeFimTemplate.stop order

Some providers have a limited number of STOPs that can be accepted
(e.g., NVIDIA NIMs, groq, etc). This means that the ordering of the
first 4 default STOPS is important. Starcoder has an interesting issue
where it emits <file_sep> as part of it's completion and having this
supplied as part of the 4 first stops helps to provide better
completions.

Signed-off-by: Adam Wallis <awallis@nvidia.com>
This commit is contained in:
Adam Wallis 2024-08-20 21:41:53 -04:00
parent 0db1112ccc
commit c408bf62fb

View file

@ -33,8 +33,8 @@ const stableCodeFimTemplate: AutocompleteTemplate = {
"<fim_prefix>",
"<fim_suffix>",
"<fim_middle>",
"<|endoftext|>",
"<file_sep>",
"<|endoftext|>",
"</fim_middle>",
"</code>",
],
@ -134,8 +134,8 @@ const starcoder2FimTemplate: AutocompleteTemplate = {
"<fim_prefix>",
"<fim_suffix>",
"<fim_middle>",
"<|endoftext|>",
"<file_sep>",
"<|endoftext|>",
],
},
};