Add support for starcoder2

This commit is contained in:
Sourab Mangrulkar 2024-02-29 17:31:25 +05:30
parent d5ab29757e
commit ab4eab3a82
4 changed files with 211 additions and 0 deletions

View file

@ -281,6 +281,8 @@ class Model:
return gguf.MODEL_ARCH.NOMIC_BERT
if arch == "GemmaForCausalLM":
return gguf.MODEL_ARCH.GEMMA
if arch == "Starcoder2ForCausalLM":
return gguf.MODEL_ARCH.STARCODER2
raise NotImplementedError(f'Architecture "{arch}" not supported!')