remove unused filetype check
This commit is contained in:
parent
29340c2e62
commit
5b4837f881
1 changed files with 0 additions and 10 deletions
10
llm/llm.go
10
llm/llm.go
|
@ -41,16 +41,6 @@ func New(workDir, model string, adapters, projectors []string, opts api.Options)
|
|||
}
|
||||
|
||||
if runtime.GOOS == "darwin" {
|
||||
switch ggml.FileType() {
|
||||
case "F32", "Q5_0", "Q5_1", "Q8_0":
|
||||
if ggml.Name() != "gguf" && opts.NumGPU != 0 {
|
||||
// GGML Q8_0 do not support Metal API and will
|
||||
// cause the runner to segmentation fault so disable GPU
|
||||
log.Printf("WARNING: GPU disabled for F32, Q5_0, Q5_1, and Q8_0")
|
||||
opts.NumGPU = 0
|
||||
}
|
||||
}
|
||||
|
||||
var requiredMemory int64
|
||||
var f16Multiplier int64 = 2
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue