mirror of
https://github.com/ollama/ollama.git
synced 2025-08-29 21:31:23 +02:00
count non-repeating vision layers
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user