Commit 8d76fa23 authored by Michael Yang's avatar Michael Yang
Browse files

count non-repeating vision layers

parent 65b88c54
......@@ -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()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment