ollama/llm/starcoder.go
Michael Yang c02c0cd483 starcoder
2023-10-02 19:56:51 -07:00

23 lines
336 B
Go

package llm
const (
starCoderModelType1B = 24
starCoderModelType3B = 36
starCoderModelType7B = 42
starCoderModelType15B = 40
)
func starCoderModelType(numLayer uint32) string {
switch numLayer {
case 24:
return "1B"
case 36:
return "3B"
case 42:
return "7B"
case 40:
return "15B"
default:
return "unknown"
}
}