Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
5b4837f8
Commit
5b4837f8
authored
Jan 03, 2024
by
Jeffrey Morgan
Browse files
remove unused filetype check
parent
29340c2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
llm/llm.go
llm/llm.go
+0
-10
No files found.
llm/llm.go
View file @
5b4837f8
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment