mirror of
https://github.com/ollama/ollama.git
synced 2026-10-24 12:33:48 +00:00
tweak memory requirements error text
This commit is contained in:
parent
77a66df72c
commit
c0285158a9
1 changed files with 2 additions and 2 deletions
|
|
@ -63,9 +63,9 @@ func New(workDir, model string, adapters, projectors []string, opts api.Options)
|
|||
systemMemory := int64(memory.TotalMemory())
|
||||
|
||||
if ggml.FileType() == "F16" && requiredMemory*f16Multiplier > systemMemory {
|
||||
return nil, fmt.Errorf("F16 model requires at least %s of total memory", format.HumanBytes(requiredMemory))
|
||||
return nil, fmt.Errorf("F16 model requires at least %s of memory", format.HumanBytes(requiredMemory))
|
||||
} else if requiredMemory > systemMemory {
|
||||
return nil, fmt.Errorf("model requires at least %s of total memory", format.HumanBytes(requiredMemory))
|
||||
return nil, fmt.Errorf("model requires at least %s of memory", format.HumanBytes(requiredMemory))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue