mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 16:26:59 +00:00
close open files
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user