fix ModelType()
This commit is contained in:
parent
7eda70f23b
commit
5ca05c2e88
1 changed files with 15 additions and 1 deletions
14
llm/llama.go
14
llm/llama.go
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue