From b2816bca67ae5e47f1c285c5ee72929769932585 Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Wed, 22 Nov 2023 12:31:07 -0800 Subject: [PATCH] unnecessary ReadSeeker for DecodeGGML --- llm/ggml.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llm/ggml.go b/llm/ggml.go index 9cb492258..608085d0e 100644 --- a/llm/ggml.go +++ b/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)