Skip to content

Commit e42e39b

Browse files
authored
add ability to run starcoder2 (#25)
1 parent 857caa2 commit e42e39b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

generate/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ def clean_output(self, output: str, prompt: str) -> str:
338338
def get_inference_config(model_name : str, **kwargs) -> InferenceConfig:
339339
if model_name == "bigcode/starcoderbase":
340340
return StarCoderConfig(**kwargs)
341+
elif model_name in ["bigcode/starcoder2-3b", "bigcode/starcoder2-7b", "bigcode/starcoder2-15b"]:
342+
return StarCoderConfig(**kwargs)
341343
elif model_name.startswith("codellama/CodeLlama-") and 'Instruct' not in model_name:
342344
return CodeLlamaConfig(**kwargs)
343345
elif model_name == "NinedayWang/PolyCoder-2.7B":

0 commit comments

Comments
 (0)