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
4458efb7
"tests/git@developer.sourcefind.cn:OpenDAS/fairscale.git" did not exist on "f0a400464b4aeebc1421a128b5f48c8da358265a"
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)
break
}
opts
.
NumGPU
=
1
// TODO: implement layer splitting on macOS
opts
.
NumGPU
=
999
default
:
if
info
.
Library
==
"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