From c408bf62fbcc8877b36967fb7939dd89fd2a5c2e Mon Sep 17 00:00:00 2001 From: Adam Wallis Date: Tue, 20 Aug 2024 21:41:53 -0400 Subject: [PATCH] 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 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 --- core/autocomplete/templates.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/autocomplete/templates.ts b/core/autocomplete/templates.ts index c0e5c132a..030e0a306 100644 --- a/core/autocomplete/templates.ts +++ b/core/autocomplete/templates.ts @@ -33,8 +33,8 @@ const stableCodeFimTemplate: AutocompleteTemplate = { "", "", "", - "<|endoftext|>", "", + "<|endoftext|>", "", "", ], @@ -134,8 +134,8 @@ const starcoder2FimTemplate: AutocompleteTemplate = { "", "", "", - "<|endoftext|>", "", + "<|endoftext|>", ], }, };