Sfoglia il codice sorgente

unnecessary ReadSeeker for DecodeGGML

Michael Yang 1 anno fa
parent
commit
b2816bca67
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      llm/ggml.go

+ 1 - 1
llm/ggml.go

@@ -179,7 +179,7 @@ const (
 	FILE_MAGIC_GGUF_BE = 0x47475546
 )
 
-func DecodeGGML(r io.ReadSeeker) (*GGML, error) {
+func DecodeGGML(r io.Reader) (*GGML, error) {
 	var ggml GGML
 	binary.Read(r, binary.LittleEndian, &ggml.magic)