Browse Source

Merge pull request #3496 from ollama/mxyng/cmd-r-graph

add command-r graph estimate
Michael Yang 1 năm trước cách đây
mục cha
commit
fc8e108642
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      llm/ggml.go

+ 1 - 1
llm/ggml.go

@@ -327,7 +327,7 @@ func (llm GGML) GraphSize(context, batch int) (int64, bool) {
 	}
 
 	switch llm.KV().Architecture() {
-	case "gemma":
+	case "gemma", "command-r":
 		return 4 * int64(batch) * int64(embeddingLength+uint64(vocabLength)), true
 	case "phi2":
 		return max(