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
17df6520
Commit
17df6520
authored
Jun 13, 2024
by
Daniel Hiltgen
Browse files
Remove mmap related output calc logic
parent
6f351bf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
llm/memory.go
llm/memory.go
+1
-2
No files found.
llm/memory.go
View file @
17df6520
...
...
@@ -197,8 +197,7 @@ func EstimateGPULayers(gpus []gpu.GpuInfo, ggml *GGML, projectors []string, opts
}
// Determine if we need to consider output then find where it fits
if
((
gpus
[
0
]
.
Library
==
"metal"
&&
opts
.
UseMMap
)
||
(
gpus
[
0
]
.
Library
!=
"metal"
||
!
opts
.
UseMMap
))
&&
memoryLayerOutput
>
0
&&
(
opts
.
NumGPU
<
0
||
layerCount
<
opts
.
NumGPU
)
{
if
memoryLayerOutput
>
0
&&
(
opts
.
NumGPU
<
0
||
layerCount
<
opts
.
NumGPU
)
{
for
j
:=
len
(
gpusWithSpace
);
j
>
0
;
j
--
{
g
:=
gpusWithSpace
[
layerCount
%
j
]
used
:=
gpuAllocations
[
g
.
i
]
+
max
(
graphPartialOffload
,
graphFullOffload
)
...
...
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