mistral3 memory

mistral3 graph is very similar to gemma3 so use that for now
This commit is contained in:
Michael Yang 2025-04-02 12:11:09 -07:00
parent 87cf2fa1b8
commit 7465c0118e

View File

@ -626,7 +626,7 @@ func (llm GGML) VisionGraphSize() (weights, graphSize uint64) {
embeddingLength*numPatches*maxNumTiles +
9*embeddingLength*numPaddedPatches*maxNumTiles +
numPaddedPatches*maxNumTiles*numPaddedPatches*maxNumTiles*headCount)
case "gemma3":
case "gemma3", "mistral3":
graphSize = 4 * (imageSize*imageSize*numChannels +
embeddingLength*patchSize +
numPatches*numPatches*headCount)