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
orangecat
ollama
Commits
4458efb7
"tests/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "c36c745ceb7c6a21d25070e2918e234fd78ffdda"
Unverified
Commit
4458efb7
authored
Jan 22, 2024
by
Jeffrey Morgan
Committed by
GitHub
Jan 22, 2024
Browse files
Load all layers on `arm64` macOS if model is small enough (#2149)
parent
ceea5994
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
llm/llm.go
llm/llm.go
+2
-1
No files found.
llm/llm.go
View file @
4458efb7
...
@@ -70,7 +70,8 @@ func New(workDir, model string, adapters, projectors []string, opts api.Options)
...
@@ -70,7 +70,8 @@ func New(workDir, model string, adapters, projectors []string, opts api.Options)
break
break
}
}
opts
.
NumGPU
=
1
// TODO: implement layer splitting on macOS
opts
.
NumGPU
=
999
default
:
default
:
if
info
.
Library
==
"cpu"
{
if
info
.
Library
==
"cpu"
{
slog
.
Info
(
"GPU not available, falling back to CPU"
)
slog
.
Info
(
"GPU not available, falling back to CPU"
)
...
...
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