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
8d76fa23
Commit
8d76fa23
authored
Mar 13, 2025
by
Michael Yang
Browse files
count non-repeating vision layers
parent
65b88c54
Changes
1
Hide 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 @
8d76fa23
...
...
@@ -584,7 +584,7 @@ func (llm GGML) VisionGraphSize() (weights, graphSize uint64) {
}
for
name
,
layer
:=
range
llm
.
Tensors
()
.
GroupLayers
()
{
if
strings
.
HasPrefix
(
name
,
"v."
)
{
if
name
==
"v"
||
strings
.
HasPrefix
(
name
,
"v."
)
{
for
_
,
tensor
:=
range
layer
{
weights
+=
tensor
.
Size
()
}
...
...
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