fix ModelType()

This commit is contained in:
Michael Yang 2023-08-18 11:23:31 -07:00
parent 7eda70f23b
commit 5ca05c2e88

View file

@ -117,7 +117,21 @@ func (llm *llamaModel) ModelFamily() ModelFamily {
} }
func (llm *llamaModel) ModelType() ModelType { func (llm *llamaModel) ModelType() ModelType {
switch llm.hyperparameters.NumLayer {
case 26:
return ModelType3B
case 32:
return ModelType7B
case 40:
return ModelType13B
case 60:
return ModelType30B return ModelType30B
case 80:
return ModelType65B
}
// TODO: find a better default
return ModelType7B
} }
func (llm *llamaModel) FileType() FileType { func (llm *llamaModel) FileType() FileType {