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
fcec04bf
Unverified
Commit
fcec04bf
authored
Aug 05, 2025
by
Michael Yang
Committed by
GitHub
Aug 05, 2025
Browse files
gptoss: fix memory calc (#11700)
parent
ee92ca3e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fs/ggml/ggml.go
fs/ggml/ggml.go
+1
-1
No files found.
fs/ggml/ggml.go
View file @
fcec04bf
...
@@ -676,7 +676,7 @@ func (f GGML) GraphSize(context, batch uint64, numParallel int, kvCacheType stri
...
@@ -676,7 +676,7 @@ func (f GGML) GraphSize(context, batch uint64, numParallel int, kvCacheType stri
}
}
}
}
fullOffload
=
4
*
f
.
KV
()
.
HeadCountMax
()
/
cmp
.
Or
(
f
.
KV
()
.
HeadCountKVMin
(),
1
)
*
kvTotal
/
6
fullOffload
=
4
*
f
.
KV
()
.
HeadCountMax
()
/
cmp
.
Or
(
f
.
KV
()
.
HeadCountKVMin
(),
1
)
*
kvTotal
/
6
partialOffload
=
2
*
fullOffload
partialOffload
=
fullOffload
}
}
return
return
...
...
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