close open files

This commit is contained in:
Michael Yang
2023-08-14 16:08:02 -07:00
parent 2ab20095b3
commit e26085b921
3 changed files with 3 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ func New(model string, adapters []string, opts api.Options) (LLM, error) {
if err != nil {
return nil, err
}
defer f.Close()
ggml, err := DecodeGGML(f, ModelFamilyLlama)
if err != nil {