소스 검색

Add missing BF16 tensor type. (#7193)

Co-authored-by: Richard Lyons <frob@cloudstaff.com>
frob 6 달 전
부모
커밋
09035b71cd
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      llm/ggml.go

+ 2 - 0
llm/ggml.go

@@ -244,6 +244,8 @@ func (t Tensor) typeSize() uint64 {
 		return 8
 	case 29: // IQ1_M
 		return blockSize/8 + blockSize/16 + blockSize/32
+	case 30: // BF16
+		return 2
 	default:
 		return 0
 	}